Suppose n is a product of distinct odd primes. Show $a^{\phi(n)+1}\equiv a $ (mod $n$). Let $\phi(n)$ be the Euler Totient function.
I let $n = p_1p_2\cdot\cdot\cdot p_k$ for $p_i > 2$ and each of the $p_i$ are distinct.
I let $a = q_1^{r_1}q_2^{r_2}\cdot\cdot\cdot q_m^{r_m}$ for primes $q_i$.
There are two cases: either gcd(a, n) = 1 or gcd(a, n) is a product of some of the primes.
I can easily figure Case 1 by using Euler's Theorem and the Chinese Remainder Theorem.
I'm having problems figuring out the second case. Any suggestions of where I might start?