Assume that n is an integer variable whose value is some integer N greater than 1.   Assume also that hn is a double variable whose value is the Nth harmonic number.  Write an expression whose value is the (n-1)th harmonic number.

Assume that n is an integer variable whose value is some integer N greater than 1.   Assume also that hn is a double variable whose value is the Nth harmonic number.   Write an expression whose value is the (n-1)th harmonic number.

LANGUAGE: Visual Basic

CHALLENGE:

In mathematics, the Nth harmonic number is defined to be 1 + 1/2 + 1/3 _ 1/4 + … + 1/n.  
So, the first harmonic number is 1, the second is 1.5, the third is 1.833… and so on.  

Assume that n is an integer variable whose value is some integer N greater than 1.  
Assume also that hn is a double variable whose value is the Nth harmonic number.
Write an expression whose value is the (n-1)th harmonic number.

This content requires that you purchase additional access. The price is $2.99 or free for our Make Life Easier and 30 Days – Not Recurring members.

Purchase this Content ($2.99) Choose a Membership Level