Ta có :
\(S=1+5+5^2+5^3+5^4+5^5+5^6+5^7+5^8+5^9\)
\(\Rightarrow S=1+\left(5+5^2+5^3\right)+\left(5^4+5^5+5^6\right)+\left(5^7+5^8+5^9\right)\)
\(\Rightarrow S=1+5\left(1+5+5^2\right)+5^4\left(1+5+5^2\right)+5^7\left(1+5+5^2\right)\)
\(\Rightarrow S=1+5.31+5^4.31+5^7.31\)
\(\Rightarrow S=1+31\left(5+5^4+5^7\right)\)
Vậy \(S:31\)dư \(1\)
\(S=1+5+5^2+5^3+...+5^9\)
Đặt \(A=5+5^2+5^3+...+5^9\)
\(=\left(5+5^2+5^3\right)+...+\left(5^7+5^8+5^9\right)\)
\(=\left(5.1+5.5+5.5^2\right)+...+\left(5^7.1+5^7.5+5^7.5^2\right)\)
\(=5.\left(1+5+5^2\right)+...+5^7.\left(1+5+5^2\right)\)
\(=5.31+...+5^7.31\)
\(=\left(5+5^7\right).31\)
Thay A vào S, ta có:
\(S=1+\left(5+5^7\right).31\)
Vì \(\left(5+5^7\right).31⋮31\)mà \(S=1+\left(5+5^7\right).31\)
Suy ra S chia cho 31 dư 1.
hok tốt nha !