Ta có: B=(1+3)+(32+33)+..........+(398+399)
=> B=1.(1+3)+32.(1+3)+............+398.(1+3)
=> B=1.4+32.4+.......+398.4
=> B=4.(1+32+..........+398)
Vậy B chia hết cho 4 ĐPCM
\(B=1+3+3^2+3^3+...+3^{98}+3^{99}\)
=> \(B=\left(1+3\right)+\left(3^2+3^3\right)+\left(3^4+3^5\right)+...+\left(3^{98}+3^{99}\right)\)
=> \(B=4+3^2\left(1+3\right)+3^4\left(1+3\right)+...+3^{98}\left(1+3\right)\)
=> \(B=4+3^3.4+3^4.4+...+3^{98}.4\)
=> \(B=4\left(3^2+3^4+...+3^{98}\right)\)
Vì 4 chia hết cho 4 => \(4\left(3^2+3^4+...+3^{98}\right)\) chia hết cho 4 => B chia hết cho 4