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),....

78 correct solutions
65 incorrect solutions

Last solution submitted on Sep 25, 2014

1 player likes this problem

1 Comment

Christopher
on 25 Jun 2012

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

1 Comment