p is a prime, a be any integer,
We have

Example

It is a special case for Euler phi