Fermat's theorem, also called Fermat's little theorem, states that
Additionally, an alternate form of the above-mentioned equation exists. The mathematical form of Fermat's alternate form is as follows:
It is valid only if the integer
We can check the validity of Fermat's theorem's original and alternate forms by applying different combinations of
To validate the original form, we consider two examples:
Given
Now, we simplify it by writing the equation in its original form
We can verify that
This proves that Fermat's original theorem is valid when
Given
Now, we simplify it by writing the equation in its original form
We can verify that
This proves that Fermat's original theorem is valid when
To validate the alternate form, we consider two examples.
Given
Now, we simplify it by writing the equation in its original form
We can verify that
This proves that Fermat's alternate form is valid when
Given
Now, we simplify it by writing the equation in its original form
We can verify that
Fermat's theorem is used as an underlying base for Euler's theorem. Euler's theorem is a generalization of Fermat's theorem. It extends Fermat's theorem, which allows it to be used as the base for the RSA algorithm. Thus, Fermat's theorem is a core part of modern-era cryptography.
Free Resources