S = 4+4^2 +4^3 +4^4 +..........+4^30 +4^31
S = ( 4 + 4^2) + ( 4^3 + 4^4) + ... + ( 4^30 + 4^31 )
S = 4.(1 + 4) + 4^3.(1 + 4) +...+ 4^30 .(1 + 4)
S = 4 . 5 + 4^3 . 5 + ... + 4^30 . 5
S = 5 . ( 4 + 4^3 + ... + 4^30) chia hết cho 5
=> S chia hết cho 5 ( chia 5 dư 0 )