The function takes a positive limit as input,
And counts how many terms must be summed in the harmonic series:
1/1, 1/2, 1/3, 1/4, ..., 1/N
until the sum of the terms in the series is greater than the given limit.
Solution Stats
Solution Comments
Show comments
Loading...
Problem Recent Solvers35
Suggested Problems
-
4183 Solvers
-
Return the largest number that is adjacent to a zero
5516 Solvers
-
Find state names that end with the letter A
1197 Solvers
-
6714 Solvers
-
Find the Oldest Person in a Room
20458 Solvers
More from this Author2
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!