A= \(\left(2+2^2+2^3\right)+\left(2^4+2^5+2^6\right)+\left(2^7+2^8+2^9\right)\)
\(=2.7+2^4.7+2^7.7\)
\(=7.\left(2+2^4+2^7\right)\)
Chia het cho 7
21+22+23+........+29
=(21+22+23)+(24+25+26)+(27+28+29)
=2.(1+2+22)+24.(1+2+22)+27.(1+2+22) chia het cho 7
=>dpcm