Hello,
I just wanted to ask if anybody knew how to write a recursive function to find a range of harmonic numbers.
A Harmonic number is the sum of the first n reciprocals (n is a positive integer, and the reciprocal of k is 1/k).
For example: H3 = 1 + 0.5 + 0.333333… = 1.833333….
Any help will be appreciated
I just wanted to ask if anybody knew how to write a recursive function to find a range of harmonic numbers.
A Harmonic number is the sum of the first n reciprocals (n is a positive integer, and the reciprocal of k is 1/k).
For example: H3 = 1 + 0.5 + 0.333333… = 1.833333….
Any help will be appreciated