Since
n2−41=41(n−21−n+21), the sum telescopes:
1000n=3∑10000n2−41=250(1+21+31+41−99991−100001−100011−100021).
Let
r be
250 times the sum of the four positive tail fractions. Then
0<r<250⋅99994<31. The value of the expression is
520+65−r, so it lies strictly between
520+21 and
520+65. Hence the closest integer is
521.