For what values of $n$ (positive integer) does 19 divide $10^n-1$ evenly? The question arises in my fooling around with $2$-parasitic numbers. And I know this is true for $n = 18, 36, 54$ (by computing!) I expect this to be so for all multiples of $18.$ Would appreciate any feedback.
Thanks in advance.
It is indeed.
A proof relies on lil' Fermat: we know that $\varphi(19)=18$, hence for all $N$ coprime to $19$, we have $N^18\equiv 1$\mod 19. This is true for $10$, which means its order modulo $19$ is a divisor of $18$, i.e. one of $2,3,6, 9$ or $18$. It is straightforward to check recursively it is $18$.