Harmonic series counting - MATLAB Cody - MATLAB Central

Problem 57422. Harmonic series counting

Difficulty:Rate
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

50.77% Correct | 49.23% Incorrect
Last Solution submitted on Jan 07, 2025

Solution Comments

Show comments
Primes and Rough Numbers, Basic ideas
What is a rough number? What can they be used...
3
5

Problem Recent Solvers31

Suggested Problems

More from this Author1

Problem Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Go to top of page