Difference between revisions of "Fermat's Little Theorem"

m (added "de" to Fermat's name)
Line 9: Line 9:
 
A frequently used corolary of Fermat's little theorem is <math> a^p \equiv a \pmod {p}</math>.
 
A frequently used corolary of Fermat's little theorem is <math> a^p \equiv a \pmod {p}</math>.
 
As you can see, it is derived by multipling both sides of the theorem by a.
 
As you can see, it is derived by multipling both sides of the theorem by a.
 +
 +
=== Example ===
 +
One of Euler's conjectures was disproved in then 1960s by three American mathematicians when they showed there was a positive integer such that <math>133^5+110^5+84^5+27^5=n^5</math>. Find the value of <math>{n}</math>. ([[AIME]] 1989 #9)<br><br>
 +
 +
By Fermat's Little Theorem, we know <math>{n^{5}}</math> is congruent to <math>n</math> [[modulo]] 5.  Hence,<br>
 +
<center><math>3 + 0 + 4 + 7 \equiv n\pmod{5}</math></center><br>
 +
<center><math>4 \equiv n\pmod{5}</math></center><br>
 +
Continuing, we examine the equation modulo 3,
 +
<center><math>-1 + 1 + 0 + 0 \equiv n\pmod{3}</math></center><br>
 +
<center><math>0 \equiv n\pmod{3}</math></center><br>
 +
Thus, <math>n</math> is divisible by three and leaves a remainder of four when divided by 5.  It's obvious that <math>n>133</math> so the only possibilities are <math>n = 144</math> or <math>n = 174</math>.  It quickly becomes apparent that 174 is much too large so <math>{n}</math> must be 144.
  
 
=== Credit ===
 
=== Credit ===

Revision as of 13:14, 18 June 2006

Statement

If ${a}$ is an integer and ${p}$ is a prime number, then $a^{p-1}\equiv 1 \pmod {p}$.

Note: This theorem is a special case of Euler's totient theorem.

Corollary

A frequently used corolary of Fermat's little theorem is $a^p \equiv a \pmod {p}$. As you can see, it is derived by multipling both sides of the theorem by a.

Example

One of Euler's conjectures was disproved in then 1960s by three American mathematicians when they showed there was a positive integer such that $133^5+110^5+84^5+27^5=n^5$. Find the value of ${n}$. (AIME 1989 #9)

By Fermat's Little Theorem, we know ${n^{5}}$ is congruent to $n$ modulo 5. Hence,

$3 + 0 + 4 + 7 \equiv n\pmod{5}$


$4 \equiv n\pmod{5}$


Continuing, we examine the equation modulo 3,

$-1 + 1 + 0 + 0 \equiv n\pmod{3}$


$0 \equiv n\pmod{3}$


Thus, $n$ is divisible by three and leaves a remainder of four when divided by 5. It's obvious that $n>133$ so the only possibilities are $n = 144$ or $n = 174$. It quickly becomes apparent that 174 is much too large so ${n}$ must be 144.

Credit

This theorem is credited to Pierre de Fermat.

See also