2^0 + 2^1 + 2^2+ 2^3 + ..... +2^100
= (2^1+2^2+2^3+2^4) + ... + (2^97 + 2^98 + 2^99 + 2^100) + 1
= 2.15 + 2^5.15+...+2^97.15 + 1
= 15.(2+2^5+...+2^97) + 1
Chia 15 dư 1
2^0+2^1+2^2+2^3+...+2^100
=1+(21+22+23+24)+.....+(297+298+299+2100)
=1+2.(1+2+22+23)+....+297.(1+2+22+23)
=1+2.15+....+297+15
=1+15.(2+...+297)
=>số dư là 1