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

90 correct solutions
79 incorrect solutions

Last solution submitted on Jul 20, 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