MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn moreOpportunities for recent engineering grads.

Apply TodayGiven inputs a, d and n, return the sum of the first n terms of the harmonic progression a, a/(1+d), a/(1+2d), a/(1+3d),....

82 correct solutions
72 incorrect solutions

Last solution submitted on Jan 28, 2015

1 player likes this problem

1 Comment

Christopher
on 25 Jun 2012

I don't think the second test case is correct.

1 Comment