finding the least residue

snejes

New member
Joined
Apr 14, 2015
Messages
1
Using Fermat’s little theorem, find the least residue of 5^38 modulo 13.

I know that the theorem states to use a^p-1 is congruant to 1 (mod p)
but how do i apply this using the above 5^38 mod 13?
any help would be great
snejs
 
Using Fermat’s little theorem, find the least residue of 5^38 modulo 13.

I know that the theorem states to use a^p-1 is congruant to 1 (mod p)
but how do i apply this using the above 5^38 mod 13?
any help would be great
snejs
Actually Fermat's little theorem is, if p is a prime
ap = a mod(p)
We can write that as
ap-1 = 1 mod(p)
only if a and p are relatively prime. In any case
528 = 512 512 52 52
 
Top