Fermat's Little Theorem

Introduction

  Fermat's Little Theorem, a fundamental result in number theory, provides a powerful tool for understanding the behavior of integers modulo a prime number. It has far-reaching implications in various fields, including cryptography, computer science, and pure mathematics.

The Theorem

Fermat's Little Theorem states that if is a prime number and is an integer not divisible by , then:

In other words, if we raise to the power of and divide the result by , the remainder will always be .

Proof

  To prove Fermat's Little Theorem, we will consider the set of integers . We will multiply each element of this set by modulo :

No two of these numbers are congruent modulo . To see why, suppose that for some . Then, would divide . Since does not divide , it must divide . However, , so this is impossible.

Therefore, the set is a rearrangement of the set modulo . Multiplying all the elements of these sets together, we get:

Simplifying, we obtain:

Since is not divisible by , we can cancel it from both sides, leaving us with:

This completes the proof of Fermat's Little Theorem.

Problems and Solutions

Problem 1:

Find the remainder when is divided by .

Solution:

Since is a prime number, we can apply Fermat's Little Theorem:

Therefore,

So, the remainder when is divided by is .


Problem 2:

Find the last digit of .

Solution:

The last digit of a number is equivalent to its remainder when divided by . So, we need to find .

We can not use Fermat's Theorem in this problem. Because is not prime. Think another way:

Note that . Therefore,

Hence, the last digit of is .

Conclusion

  Fermat's Little Theorem is a powerful tool with wide-ranging applications in number theory and computer science. Its elegant proof and practical utility make it a cornerstone of modern mathematics.

As we continue to explore the depths of number theory, Fermat's Little Theorem will undoubtedly remain a valuable asset in our mathematical toolkit.