a) f(2) = 1 + 2 + 22 + ...+ 22015
2 x f(2) - f(2) = 2(1 + 2 + 22 + ...+ 22015) - (1 + 2 + 22 + ...+ 22015)
f(2) = 2 + 22 + 23 + ...+ 22016 - 1 - 2 - 22 -...- 22015
f(2) = 22016 - 1 = (24)504 - 1 = 16504 - 1 = ...6 - 1 = ....5
=> f(2) chia cho 3 thì dư 2
b) f(2) = 1 + 2 + 22 + ...+ 22015 = (1 + 2 + 22) + (1 + 2 + 22 ).23 +...+ (1 + 2 + 22).22013
<=> (1 + 2 + 22).(1 + 23 +....+ 22013) = 7.(1 + 23 +....+ 22013) chia hết cho 7
=> f(2) chia hết cho 7