show that if $N$ is relatively prime to 10, then there exists a multiple that consists only of 1s.
The multiple can be expressed as :
$$\frac{(10^a-1)}{9}$$
thus if $\gcd(N,3)$ is not 3, using the totient function it would be easy to find $a$ such that this is $0\bmod N$
If $\gcd(N,3)$ is 3, then we would need to find $10^a-1$ divisible by $3N$ which is also possible.
from https://artofproblemsolving.com/articles/files/SatoNT.pdf. It is said that:
"If N is relatively prime to 10, then we may divide out all powers of 10, to obtain an integer of the form 111...1 that remains divisible by N."
which I'm not sure I follow. I would want to know what this means since the answer seems concise