I've been trying for a couple of hours to find a way to prove the next claim:
$$\gcd(n-1,a) = \gcd(\frac{(n^a-1)}{n-1},n-1)$$
I have already proven that $$\frac{(n^a-1)}{n-1}$$ is always divisible by $(a-1)$.
which means I can set define $$\frac{(n^a-1)}{n-1}=\frac{c(n-1)}{n-1}=c$$
then I get : $$ \gcd(n-1,a)=\gcd(c,n-1)$$
but that's it, I'm stuck.