B= 1+ 5+ 5^2+ 5^3+ ... + 5^96+ 5^97+ 5^98
=(1+5+52)+(53+54+55)+....+(596+597+598)
=31+(53.1+53.5+53.52)+....+(596.1+597.5+598.52)
=31+53.(1+5+52)+....+596.(1+5+52)
=31.1+53.31+...+596.31
=31.(1+53+...+596)
=> B chia hết cho 31
B = 1+5+52+53+....+598
B = (1+5+52)+(53+54+55)+....+(596+597+598)
B = 1(1+5+52)+53(1+5+52)+....+596(1+5+52)
B = 1.31 + 53.31+.......+596.31
B = 31.(1+53+.....+596) chia hết cho 31 (đpcm)
B = 1+5+52+53+....+598
B = (1+5+52)+(53+54+55)+....+(596+597+598)
B = 1(1+5+52)+53(1+5+52)+....+596(1+5+52)
B = 1.31 + 53.31+.......+596.31
B = 31.(1+53+.....+596) chia hết cho 31 (đpcm)