Problem 46000. Compute the harmonic numbers
The first four harmonic numbers are 1, 3/2, 11/6, and 25/12. The harmonic numbers appear in several interesting identities, including this one for Apery's constant:
Compute the nth harmonic number.
Solution Stats
Problem Comments
-
1 Comment
Binbin Qi
on 18 Nov 2020
There is something wrong. The solution I submit is not the solution I edited instead of original file.
Solution Comments
Show commentsProblem Recent Solvers73
Suggested Problems
-
Back to basics 22 - Rotate a matrix
887 Solvers
-
Determine Whether an array is empty
763 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
802 Solvers
-
Generate a random matrix A of (1,-1)
294 Solvers
-
848 Solvers
More from this Author249
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!