Show that if $(a,n)=d>1$ and $k$ is any positive integer, then $a^{k} \not\equiv 1 \pmod n$.
I know that the order divisibility property states the following.
If $(a,n)=1$ and $k$ is the order of $a \pmod n$, then for any positive integer $j$, we know that $a^{j} \equiv 1 \pmod n$ if and only if $k \mid j$.
It seems like I could somehow use the "if an only if" part to prove that $k$ does not divide $j$, which would imply the conclusion. But how can I show it formally?
Suppose for the sake of contradiction that there is a positive integer $k$ such that $a^k\equiv 1$ (mod $n$). This means that $n$ divides $a^k-1$, so there is an integer $b$ such that $$ nb=a^k-1$$ or $$a^k-nb=1$$ But this implies that $(a^k,n)=1$, which in turn implies that $(a,n)=1$, contrary to the hypothesis on $a$.