It is well known that if $\gcd(a,n)=1$, then $a^{ϕ(n)}=1$ mod $n$.
Are there any results similar to Euler's theorem that can be used when $a$ and $n$ are not coprime.
Feel free to add any restrictions on $a$, $n$ other than $a$, $n$ being coprime.
Thank you.