Number System

Fermat Prime

Students add one small block to a doubled stack of colored blocks.

Fermat Prime definition

A Fermat prime is a prime number of the form 2 raised to 2 raised to n, plus 1, where n is a nonnegative integer.

In Spanish
primo de Fermat
Topic
Prime numbers and number theory

Fermat Prime in a picture

Fermat Prime diagramFor n = 2, the inner power is 4, so the Fermat number is 2⁴ + 1 = 17.Choose n = 2Compute the inner exponent first2² = 4Use 4 as the exponent of the outer 22⁴ + 1 = 1717 is prime
For n = 2, the inner power is 4, so the Fermat number is 2⁴ + 1 = 17.

How it works

Compute 2ⁿ first, then raise 2 to that result and add 1. This gives the Fermat number for n. When a Fermat number is prime, it is a Fermat prime. The first few examples are 3, 5, and 17.

Worked examples

Find the Fermat number for n = 0.

2⁰ = 1, and 2¹ + 1 = 3.

Find the Fermat number for n = 3.

2³ = 8, and 2⁸ + 1 = 257, which is prime.

Are all Fermat numbers prime?

No. The Fermat number 2³² + 1 is divisible by 641.

Common mistake

Evaluate the inner exponent first. The Fermat number for n = 3 uses exponent 8 on the outer 2.

Quick check

What Fermat number comes from n = 1?

Is a Fermat number automatically prime?

Show answer

No. Check whether it has a nontrivial factor.

What is the inner power for n = 4?

Show answer

2⁴ = 16.

Sources

Flashcard

Fermat Prime

Reveal the definition

A Fermat prime is a prime number of the form 2 raised to 2 raised to n, plus 1, where n is a nonnegative integer.

Effortless Math. “Fermat Prime.” Math Dictionary.