Hi, I found the following theorem, a^(P-1) congruent 1 (mod P) if 'P' is prime and 'a' is a positive integer not divisible by P. Zulfi.