Equation...

I'm working on a problem that needs me to write a program that will compute this:
1.0/n + 2.0/(n-1) + 3.0/(n-2) + .... + (n-1)/2 + n/1

n is a positive integer that the user will punch in.

I don't really understand what the equation is, or what the "...." in the middle is supposed to imply. I'm not so great with math logic, obviously...

Is that space supposed to be (n-2)/3? Is it that simple? lol
For example:

(n={user input} ; r={what you need to calculate})
n=1 ; r=1/1
n=2 ; r=1/2+2/1
n=3 ; r=1/3+2/2+3/1
n=4 ; r=1/4+2/3+3/2+4/1
Et cetera.
Topic archived. No new replies allowed.