Problem 566. Sum of first n terms of a harmonic progression
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),....
Solution Stats
Problem Comments
-
14 Comments
Show
11 older comments
mario alonzo
on 16 Jul 2018
This test has a problem with roundn function. I have also tried to use elseif and insert the exact values of s, but it doesn't work.
Srishti Saha
on 8 Aug 2018
@srivardhini Kindly look into the issue
goc3
on 10 Aug 2018
The test suite has been updated and the problem should function properly now. Various recent solutions were tested and did work. Feel free to resubmit prior solutions.
Solution Comments
Show commentsGroup

Magic Numbers
- 19 Problems
- 84 Finishers
- Find the 9's Complement
- Bell Number calculator
- Is this number Munchhausen?
- Smith numbers
- Generate a Parasitic Number
- Armstrong Number
- nth Rational Number
- Generate a Parasitic Number
- Compute Fibonacci Number
- Find vampire numbers
- N-th Odious
- Evil Number
- Armstrong Number
- Generalised Hamming Number
- Polite numbers. Politeness.
- Polite numbers. N-th polite number.
- Bell Number calculator
- Narcissistic number ?
- Is this number Munchhausen?
- Compute Fibonacci Number
- Smith numbers
- Find vampire numbers
- Polygonal numbers
- Generate a Parasitic Number
- nth Rational Number
- Kaprekar numbers
- Parasitic numbers
- Determine if a Given Number is a Triangle Number
Problem Recent Solvers446
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!