Better Experience Download iQuanta App

Google PlayApp Store
Learner
2h
#Doubt Responded

Fermat number

<p>Can you explain why exactly 2^2^n+1 is used and what is its relation with prime number </p>

Comments1

Superman - iQuanta

Superman - iQuanta

A number of the form 2^n + 1 can only possibly be prime if n itself is a power of 2. If n has any odd factor d > 1, say n = d×k, then 2^n + 1 = (2^k)^d + 1, and since a^d + 1 is divisible by a + 1 whenever d is odd, the whole thing factors and is composite. So the only candidates worth checking are n = 1, 2, 4, 8, 16, ... giving F_0 = 3, F_1 = 5, F_2 = 17, F_3 = 257, F_4 = 65537, all prime. Fermat conjectured all such numbers are prime, but F_5 = 2³² + 1 = 641 × 6700417, composite. For CAT this mostly shows up as: if the exponent is NOT a power of 2, the expression 2^n + 1 is definitely composite, which is the useful factoring trap in number system questions.

Log in to join the discussion.