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

Learn moreOpportunities for recent engineering grads.

Apply Today**New to MATLAB?**

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

84 correct solutions
73 incorrect solutions

Last solution submitted on Mar 15, 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