I would like to prove the following:
Let $p$ and $q$ different prime numbers and let $a$ be an integer such that $a < p$ and $a < q$.
I want to prove that $$pq \; | \; a^{pq} - a^p - a^q + a$$
i.e. I would like to prove: $$ \frac{a^{pq} - a^p - a^q + a}{pq} \in \mathbb{Z}$$.
Can any body help me to prove this?
Use lil' Fermat:
Since $p$ is prime, $a^p\equiv a\mod p$, so $a^{pq}-a^p-a^q+a\equiv a^q-a-a^q+a\equiv 0\mod p$
Similarly $a^{pq}-a^p-a^q+a\equiv 0\mod q$.
So $a^{pq}-a^p-a^q+a\equiv 0\mod pq$ by the Chinese remainder theorem.