Basically, I'm trying to add up the sum of 1 divided by every number between X an Y.

For instance, if X = 5 and Y = 10, this would add (1/5+1/6+1/7+1/8+1/9+1/10). I could simply make a recursive function, but if there is a simple way to do this it would be a lot more efficient (as the X and Y could theoretically get up in the thousands).

Is there a simple way to find this (preferable in a normal y = ?x kind of equation -- though logs, exponents and other things like that are fine)?

Thanks!

- Submerged

P.S. If this belongs in a different thread, I'm sorry . This could be answered via calc, but I figured looking for a simpler answer meant going to a simpler forum.