hi guy's

i need some help on making a formula for this 1/3+1/5+1/7...............=2

i need to be able to fill in any number e.g 1/3+1/5+1/7...............=45

thanks

kingping

Printable View

- June 18th 2010, 03:18 AMkingping1/3+1/5+1/7...............=2
hi guy's

i need some help on making a formula for this 1/3+1/5+1/7...............=2

i need to be able to fill in any number e.g 1/3+1/5+1/7...............=45

thanks

kingping - June 18th 2010, 03:56 AMmr fantastic
There is no formula for the exact sum of the first n terms of this particular series (called a harmonic series). Your best bet is to write a simple program to sum the terms and to terminate after reaching the required sum. The output would be how many terms were summed.

- June 18th 2010, 04:25 AMBacterius
And note that usually the sum of the harmonic series will not be an integer. So you should allow input for real numbers :)

- June 18th 2010, 05:44 AMebaines
- June 18th 2010, 05:46 AMBacteriusQuote:

Yes - in fact, the sum of the first N terms of this series can never be an integer.

Thanks for the precision though Ebaines, I would have thanked your post in normal circumstances :(