\(B=2+2^2+2^3+2^4+...+2^{99}+2^{100}=2\left(1+2^2+2^3+2^4\right)+...+2^{96}\left(1+2^2+2^3+2^4\right)=2.31+2^6.31+...+2^{96}.31=31\left(2+2^6+...+2^{96}\right)⋮31\)
B=2+22+23+24+...+299+2100=2(1+22+23+24)+...+296(1+22+23+24)=2.31+26.31+...+296.31=31(2+26+...+296)⋮31