Solution 1
We know that n2−41=(n+2)(n−2)1. We can use the process of fractional decomposition to split this into two fractions: (n+2)(n−2)1=(n+2)A+(n−2)B for some A and B.
Solving for A and B gives 1=(n−2)A+(n+2)B or 1=n(A+B)+2(B−A). Since there is no n term on the left hand side, A+B=0 and by inspection 1=2(B−A). Solving yields A=4−1,B=41
Therefore, n2−41=(n+2)(n−2)1=(n−2)41+(n+2)4−1=41(n−21−n+21).
And so, 1000∑n=310,000n2−41=1000∑n=310,00041(n−21−n+21)=250∑n=310,000(n−21−n+21).
This telescopes into:
250(1+21+31+41−99991−100001−100011−100021)=250+125+83.3+62.5−250(99991+100001+100011+100021)
The small fractional terms are not enough to bring 520.8 lower than 520.5, so the answer is 521
Solution 2
Using the fact that n(n+k)1=k1(n1−n+k1) or by partial fraction decomposition, we both obtained x2−41=41(x−21−x+21). The denominators of the positive terms are 1,2,..,9998, while the negative ones are 5,6,...,10002. Hence we are left with 1000⋅41(1+21+31+41−99991−100001−100011−100021). We can simply ignore the last 4 terms, and we get it is approximately 1000∗4825. Computing 4825 which is about 0.5208.. and moving the decimal point three times, we get that the answer is 521