Đặt \(A=1+5+5^2+5^3+...+5^{402}+5^{403}+5^{404}\)
\(\Rightarrow A=\left(1+5+5^2\right)+\left(5^3+5^4+5^5\right)+...+\left(5^{399}+5^{400}+5^{401}\right)+\left(5^{402}+5^{403}+5^{404}\right)\)
\(\Rightarrow A=31.1+31.5^3+...+31.5^{402}\)
\(\Rightarrow A=31\left(1+5^3+5^6+...+5^{402}\right)\)
\(\Rightarrow A⋮31\left(đpcm\right)\)