Fermat's Little Theorem and Exponential Congruences

  • Thread starter Thread starter kmeado07
  • Start date Start date
  • Tags Tags
    Theorem
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
6 replies · 3K views
kmeado07
Messages
40
Reaction score
0

Homework Statement



From fermat's little theorem deduce that when p is prime,

n^p is equivalent to n (mod p)

for all integers n.

Homework Equations





The Attempt at a Solution



I know from Fermat's Little Theorem that ,

n^(p-1) is equivalent to 1 (mod p),

but i don't know how to use it for this particular question.
 
Physics news on Phys.org
ok, so in my question, c=n ?
So by dividing by n i would get,

1^p is equiavlent to 1 (mod p)

How do i reach n^(p-1) on the left hand side?
 
sorry, silly mistake.
dividing by n would give me,

n^(p-1) equivalent to 1 (mod p)

which is fermat's little theorem. so is this all i need to do?
 
This is ok if p doesn't divide n, but the question asks me for all integers n.
So how do i show it's also true for when p divides n?
 
kmeado07 said:
This is ok if p doesn't divide n, but the question asks me for all integers n.
So how do i show it's also true for when p divides n?

You actually want to go the other way. Start with Fermat's little theorem and then go to your conclusion. Multiply by n, you can always do that.