Solution: Day 1, problem 2


We certainly cannot prove this, since the case k=1k = 1 would be the assertion that there are infinitely many Fermat primes, so we must disprove it. This uses "covering congruences" and Euler's observation that Fermat's claim that Fr=22r+1F_{r} = 2^{2^r} + 1 is always prime fails for r=5r = 5, as follows:

The value of 2nk+12^{n}k + 1 modulo F0=3F_{0} = 3 depends on nmodulo2n modulo 2, so by choosing kk congruent to 1 (respectively to 2) modulo 3 we can arrange that all of the values of 2nk+12^{n}k + 1 with kk odd (respectively even) are divisible by F0F_{0} and hence composite. The value of 2nk+12^{n}k + 1 modulo F1=5F_{1} = 5 depends on nn modulo 4, so by choosing kk congruent to 1, 2, 3 or 4 modulo 5 we can ensure that all of the values of 2nk+12^{n}k + 1 with nn in any fixed residue class mod 4 are divisible by F1F_{1} and hence composite. We choose the residue class of kk mod 5 so that the values of nn with 2nk+12^{n}k + 1 = 0 (modulo 5) are disjoint from those already eliminated by the choice of kmod3k mod 3. For instance, we could choose k=2k = 2 (modulo 3) to make the values of 2nk+12^{n}k + 1 with nn even divisible by 3, and then choose k=3k = 3 (modulo 5) to eliminate the residue class n=3n = 3 (modulo 4). At this point we have fixed kmodF0F1k mod F_{0} F_{1} = 15 = 24 - 1 (more specifically, we have 4 ways of choosing the residue class of kk mod 15) and have eliminated 3 /4 of the values of nn.

Continuing, we find that, since the order of 2 mod FrF_{r} is exactly 2r+12^{r+1}, we can choose kk modulo F2F_{2} in two ways (given the previous choices modulo F0F_{0} and F1F_{1} ) in such a way as to eliminate one of the remaining two residue classes of nn mod 8, then choose kk modulo F3F_{3} in two ways to eliminate half of the remaining values of nn, and then again modulo F4F_{4}.

At this stage we have chosen kk modulo F0F1F2F3F4=2321F_{0} F_{1} F_{2} F_{3} F_{4} = 2^{32} - 1 (more precisely, we have found 32 possible choices, one for each residue class n0n_{0} mod 32) in such a way that the numbers 2nk+12^{n}k + 1 with nn0n ≠ n_{0} (modulo 32) are always divisible by one of the primesF0,F1,F2,F3F_{0}, F_{1}, F_{2}, F_{3} or F4F_{4} and hence are composite. If all FrF_{r} were prime, we would continue this way indefinitely and never eliminate all nn. But Euler's discovery that F5F_{5} factorizes as 641 × 6700417 means that at the next stage we can choose kk modulo 641 to eliminate one of the two surviving residue classes of n modulo 64 and independently choose kk modulo 6700417 to eliminate the other one, thus giving finally 64 choices of kk moduloF0F1F2F3F4F5F_{0} F_{1} F_{2} F_{3} F_{4} F_{5} = 264 - 1 such that all members of the sequence 2nk+12^{n}k + 1 have a factor in common with 264 - 1 and hence are composite. The smallest kk which works is k0 = 201446503145165177, which is congruent to 217 modulo (264 - 1)/641 and to -217 modulo 641.

Using covering congruences to composite moduli different from 264 - 1 we can get somewhat smaller values of kk which also work, but this requires some numerical computations, while the argument using Fermat primes needs only "pure thought" plus the fact that there is at least one composite Fermat number. Note, too, that similar arguments apply for 2nk12^{n}k - 1 or any similar sequence.