the question is stated as above.
What I have tried:
I have tried to use the remainder theorem to restate the problem. Hence, it would look like this, $\frac {10^m-1}{9}=\frac {k(10^n-1)}{9}$. Clearly, I can get rid of the $9$ and I would have obtained $10^m-1 = k(10^n-1)$. Rearranging the terms would produce
$k.10^n - 10^m = k - 1$ and factorizing it (not sure if it would help); I will get $10^n(k-10^{m-n}) = k-1$.
I am stuck at this line. I was thinking if I were to use Euclid's Lemma to show that $10^n$ does not divide $k-1$, then it must be that $k-10^{m-n}$ divides $k-1$, which would produce $m=n$. However, I clearly cannot prove that $10^n$ does not divide $k-1$ as it is untrue.
Any suggestions how I can prove that the end result is $n|m$? Or should I look at things in another perspective?