Find all primes that satisfy congruency 100^p\equiv1\mod p
I've tried reducing it to the fact that 100^p=(10^p)^2 so then 10^p \equiv 1 \mod p or -1 \mod p.
I've also attempted writing this as 100^p-np=1, so that leads me to \gcd(100^p,n)=1 but I don't see where to go from here.
Would appreciate some help with this! I only know a little bit about number theory so preferably an answer using more basic stuff (Like Fermat's little theorem, linear diophantine equations, gcd's)
Edit after reading comments: Following from Fermat's little theorem, since we know 100^p\equiv100\mod p for all prime p, but 100^p\equiv1\mod p only if 100-np=1 so np=99 so p=11,3 are the only solutions? Is this correct?
Answer
You are correct that 3 and 11 are the only solutions.
If p is prime then 100^p\equiv 100\pmod p by Fermat's little theorem. So 100^p\equiv1\pmod p would mean 100\equiv1\pmod p, i.e., p divides 100-1=99. The prime factorization of 99 is 3^2\times11; i.e., the prime factors of 99 are 3 and 11. So if 100^p\equiv1\pmod p then p\in{3,11}.
No comments:
Post a Comment