\(A=3+3^2+3^3+3^4+...+3^{100}\)
\(=\left(3+3^2+3^3+3^4\right)+...+\left(3^{97}+3^{98}+3^{99}+3^{100}\right)\)
\(=3.\left(1+3+3^2+3^3\right)+...+3^{97}.\left(1+3+3^2+3^3\right)\)
\(=3.\left(1+3+9+27\right)+...+3^{97}.\left(1+3+9+27\right)\)
\(=3.40+3^5.40+...+3^{97}.40\)
\(=40.\left(3+3^5+...+3^{97}\right)\) chia hết cho 40
=> A chia hết cho 40
=> đpcm.