Prove that every positive integer having $3^m$ equal digits is divisible by $3^m$
I haven't really done anything substantial to solve this but here's what I have:
Let the positive integer be $aaa....aaa$ or simply $A$.
$A=a\cdot10^{3^m}+a\cdot10^{3^m-1}+a\cdot10^{3^m-2}+....+a$
This forms a GP, hence,
$A=x\frac{10^{3^m+1}-1}{10-1}=\frac{x}{9}\ [10^{3^m+1}-1]$
Now the question wants us to prove
$3^m|A$
$3^m|\frac{x}{9}\ [10^{3^m+1}-1]$
$3^{m+2}|\ x (10^{3^m+1}-1)$
But x can be any digit so,
$3^{m+2}|\ 10^{3^m+1}-1$
I can't figure out a way to solve further. Can I get a hint as to how I can proceed with this question
I have tried induction too, but didn't really reach the conclusion:
Let P(n) be
$10^{3^n+1}-1=3^{n+2}a$
P(1):
$10^{3+1}-1$
$=10^4-1$
$=10,000-1$
$=9999$, which is divisible by $3^3=27$
Let p(m) be true,
$10^{3^m+1}-1=3^{m+2}b$
To prove: P(m+1) is also true
$10^{3^{m+1}+1}-1$
$=10^{3*3^m+1}-1$
$=10^{2*3^m}\cdot10^{3^m+1}-1$
$=10^{2*3^m}(3^{m+2}b+1)-1$
I am not able to go further...