

| > | total:=0:
for i from 1 to 1000000 by 1 do total:=evalf(total+1/(i^2+i)): end do: print(total); |
What do you think the true answer is? Looks like 1.
How far off are we? 6 * 10-6.
Larger than our theoretical prediction! Why?
Is there a better way? Yes!
Using partial fractions, we can write
The function f (in red) has zeroes at a, b, and c.