A=1+2+22+23+...+299+2100
A=1+(2+22+23+24+25)+(26+27+28+29+210)+...+(296+297+298+299+2100)
A=1+2(1+2+22+23+24)+25(1+2+22+23+24)+...+296(1+2+22+23+24)
A=1+2.31+25.31+...+296.31
A=1+[31(2+25+...+296)]
Vì 31(2+25+...+296) chia het cho 31
Nên 1+[31(2+25+...+296)] chia 31 dư 1
Vậy A chia 31 dư 1