DR.WANG Mathematics中文

2011 USAMO · Question 4

Number theory · modular arithmetic

Problem outline

For n≥2n\ge2, divide 22n2^{2^n} by 2n−12^n-1 and take its least nonnegative remainder. Is this remainder always a power of four? Prove the assertion or exhibit a counterexample and verify it.

Show answer and methods 1 methods

Answer

No. Taking n=25n=25 gives the remainder 128=27128=2^7.

Method 1 Reduce the exponent first

Set M=2n−1M=2^n-1. Since 2n≡1(modM)2^n\equiv1\pmod M, exponents differing by nn give the same residue for powers of two. In particular, if rr is the remainder of 2n2^n modulo nn, then 22n≡2r(modM)2^{2^n}\equiv2^r\pmod M. As 0≤r<n0\le r<n and n≥2n\ge2, we have 0<2r≤2n−1<M0<2^r\le2^{n-1}<M, so 2r2^r is the actual remainder.

For n=25n=25 we have 210=1024≡−1(mod25)2^{10}=1024\equiv-1\pmod{25}. Thus 225=25(210)2≡32≡7(mod25)2^{25}=2^5(2^{10})^2\equiv32\equiv7\pmod{25}. The required remainder is 27=1282^7=128. Every integral power of four that is a positive integer has even exponent in its prime factorisation at 22, whereas 128128 has exponent seven.

Source and attribution

The outline and worked methods on this page were prepared for DR.WANG Mathematics.

Original question (external)