What is the remainder when the sum 1^{2}+2^{2}+3^{2}+...+2016^{2} + 2017^2 + 2018^2 +2019^2 +2020^2 is divided by 17?
What is the remainder when the sum
12+22+32+...+20162+20172+20182+20192+20202
is divided by 17?
12(mod17)=122(mod17)=432(mod17)=942(mod17)=1652(mod17)=862(mod17)=272(mod17)=1582(mod17)=1392(mod17)=13102(mod17)=15112(mod17)=2122(mod17)=8132(mod17)=16142(mod17)=9152(mod17)=4162(mod17)=1172(mod17)=0
cycle mod 17: (1,4,9,16,8,2,15,13,13,15,2,8,16,9,4,1,0)
circle mod 17
1+4+9+16+8+2+15+13+13+15+2+8+16+9+4+1+0(mod17)=136(mod17)=0(mod17)
2020/17 = 118 cycles remainder 14
remainder 14, this is the sum in the cycle from 1 to 14 mod 17
1+4+9+16+8+2+15+13+13+15+2+8+16+9(mod17)=131(mod17)=12(mod17)
12+22+32+...+20162+20172+20182+20192+20202(mod17)=0∗118(mod17)⏟118 cycles+12(mod17)⏟remainder 14=12(mod17)
The remainder when the sum 12+22+32+...+20162+20172+20182+20192+20202 is divided by 17 is 12