Fermat Numbers (Important Theorems & Examples)

In this note/article, I will discuss what Fermat Numbers are and what some important theorems & examples are associated with them.

[wp_reusable_render id=’1101606′]

Fermat
Pierre de Fermat

Definition and Examples

Fermat Numbers, a class of numbers, are the integers of the form Fn=22n+1  n0 F_n=2^{2^n} +1 \ \ n \ge 0 .

For example: Putting n:=0,1,2 n := 0,1,2 \ldots in Fn=22n F_n=2^{2^n} we get F0=3 F_0=3 , F1=5 F_1=5 , F2=17 F_2=17 , F3=257 F_3=257 etc.

Pierre de Fermat observed that all the integers F0,F1,F2,F3, F_0, F_1, F_2, F_3, \ldots were prime numbers and announced that Fn F_n is a prime number for each natural value of n n .

In writing to Prof. Mersenne, Fermat had confidently announced:

I have found that numbers of the form 22n+1 2^{2^n}+1 are always prime numbers and have long since signified to analysts the truth of this theorem.

However, he also accepted that he was unable to prove it theoretically.

Leonhard Euler in 1732, negated Fermat’s fact and told that F1F4 F_1 -F_4 are primes but F5=225=4294967297 F_5=2^{2^5} =4294967297 is not a prime since it is divisible by 641.

Euler also stated that all Fermat numbers are not necessarily primes and the Fermat number, which is a prime, might be called a Fermat Prime. Euler used division to prove the fact that F5 F_5 is not a prime.

The elementary proof of Euler’s negation is due to G. Bennett.

Example Theorem on Fermat Numbers

The Fermat number F5 F_5 is divisible by 641 641 i.e., 641F5 641|F_5 .

Proof

As defined F5:=225+1=232+1 (1) F_5 :=2^{2^5}+1=2^{32}+1 \ \ldots (1)Factorising 641 641 in such a way that 641=640+1=5×128+1=5×27+1 641=640+1 =5 \times 128+1 \\ =5 \times 2^7 +1

Assuming a=5b=27 a=5 \bigwedge b=2^7 we have ab+1=641 ab+1=641

Subtracting a4=54=625 a^4=5^4=625 from 641, we get

ab+1a4=641625=16=24 (2) ab+1-a^4=641-625= \\ 16=2^4 \ \ldots (2)

Now again, equation (1) could be written as

F5=232+1 F_5=2^{32}+1

=24×(27)4+1=2^4 \times {(2^7)}^4+1

=24b4+1 =2^4 b^4 +1

=(1+aba4)b4+1 =(1+ab-a^4)b^4 +1

=(1+ab)[a4+(1ab)(1+a2b2)] =(1+ab)[a^4+(1-ab)(1+a^2b^2)]

=641×anInteger =641 \times \mathrm{an \, Integer}

Which gives 641Fn 641|F_n

Mathematics is in its progression and well developed now, but it is yet not confirmed whether there are infinitely many Fermat primes or, for that matter, whether there is at least one Fermat prime beyond F4 F_4 .

The best guess is that all Fermat numbers Fn>F4 F_n>F_4 are composite (non-prime).

A useful property of Fermat numbers is that they are relatively prime to each other; i.e., for Fermat numbers Fn,Fm m>n0 F_n, F_m \ m > n \ge 0 , gcd(Fm,Fn)=1 \mathrm{gcd}(F_m, F_n) =1 .

The following two tests/theorems are very useful in determining the primality of Fermat numbers:

Pepin Test

For n1 n \ge 1 , the Fermat number Fn F_n is prime     3(Fn1)/21(modFn) \iff 3^{(F_n-1)/2} \equiv -1 \pmod {F_n}

Proof

Euler- Lucas Theorem

Any prime divisor p p of Fn F_n , where n2 n \ge 2 , is of form p=k2n+2+1 p=k \cdot 2^{n+2}+1 .

Proof

Conclusions

  • Fermat numbers (Fn F_n ) with n=0,1,2,3,4 n=0, 1, 2, 3, 4 are prime
  • n=5,6,7,8,9,10,11 n=5,6,7,8,9,10,11 have completely been factored
  • n=12,13,15,16,18,19,25,27,30 n=12, 13, 15, 16, 18, 19, 25, 27, 30 have two or more prime factors known
  • n=17,21,23,26,28,29,31,32n=17, 21, 23, 26, 28, 29, 31, 32 have only one prime factor;
  • n=14,20,22,24 n=14,20,22,24 have no factors known but proved composites.
  • F33 F_{33} has not yet been proved either prime or composite.
Join Circle

My private community designed for growth, collaboration, and exclusive insights.

Limited to 100 members. Signup today!