We can express the sum as (n-4999)²+(n-4998)²+...+(n+4999)² and we wish to show that it cannot be B to the P for integer B, P (P>1).
The sum is 9999n²+2(1²+2²+...+4999²)=
9999n²+2x4999x5000x9999/6 =
3333(3n²+4999x5000)
If this is B to the P, then 3 must divide B, and thus 3 to the P divides B to the P. However, 3333(3n²+4999x5000) can only be divided by 3, so P=1. |