Maths Olympiad Prep

Library / Putnam /11 of 60

Putnam

Number theory Difficulty 7.7 National Olympiad, round 2 Find the answer

Find all positive integers n<10100n < 10^{100} for which simultaneously nn divides 2n2^n, n−1n-1 divides 2n−12^n-1, and n−2n-2 divides 2n−22^n - 2.

A number or a short expression. Fractions can be typed as 3/2, and spacing doesn't matter.

Solution

The values of nn with this property are 22ℓ2^{2^\ell} for ℓ=1,2,4,8\ell = 1,2,4,8. First, note that nn divides 2n2^n if and only if nn is itself a power of 2; we may thus write n=2mn = 2^m and note that if n<10100n<10^{100}, then 2m=n<10100<(103)34<(210)34=2340. 2^m = n < 10^{100} < (10^3)^{34} < (2^{10})^{34} = 2^{340}. Moreover, the case m=0m=0 does not lead to a solution because for n=1n=1, n−1=0n-1 = 0 does not divide 2n−1=12^n-1 = 1; we may thus assume 1≤m≤3401 \leq m \leq 340. Next, note that modulo n−1=2m−1n-1 = 2^m-1, the powers of 22 cycle with period mm (the terms 20,…,2m−12^0, \dots, 2^{m-1} remain the same upon reduction, and then the next term repeats the initial 1); consequently, n−1n-1 divides 2n−12^n-1 if and only if mm divides nn, which happens if and only if mm is a power of 2. Write m=2ℓm = 2^\ell and note that 2ℓ<340<5122^\ell < 340 < 512, so ℓ<9\ell < 9. The case ℓ=0\ell=0 does not lead to a solution because for n=2n=2, n−2=0n-2 =0 does not divide 2n−2=22^n-2 = 2; we may thus assume 1≤ℓ≤81 \leq \ell \leq 8. Finally, note that n−2=2m−2n-2 = 2^m-2 divides 2n−22^n-2 if and only if 2m−1−12^{m-1} - 1 divides 2n−1−12^{n-1} - 1. By the same logic as the previous paragraph, this happens if and only if m−1m-1 divides n−1n-1, that is, if 2ℓ−12^\ell - 1 divides 2m−12^m-1. This in turn happens if and only if ℓ\ell divides m=2ℓm = 2^\ell, which happens if and only if ℓ\ell is a power of 2. The values allowed by the bound ℓ<9\ell < 9 are ℓ=1,2,4,8\ell = 1,2,4,8; for these values, m≤28=256m \leq 2^8 = 256 and n=2m≤2256≤(23)86<1086<10100, n = 2^m \leq 2^{256} \leq (2^3)^{86} < 10^{86} < 10^{100}, so the solutions listed do satisfy the original inequality.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: Omni-MATH, licensed Apache-2.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.