Skip to main content

2021 AIME I Problem 3

Problem 3 of 15EasierAlgebraNumber TheoryProblem-Solving Techniques

Find the number of positive integers less than 10001000 that can be expressed as the difference of two integral powers of 2.2.

Your answer

Integer from 0 to 999
Show solution

Solution

A difference of powers of 22 is 2a−2b=2b(2c−1)2^a - 2^b = 2^b(2^c - 1) where c=a−b≥1.c = a - b \ge 1. Since 2c−12^c - 1 is odd, the odd part of the number determines cc and the power of 22 determines b,b, so distinct pairs (b,c)(b, c) yield distinct integers. It suffices to count pairs with 2b(2c−1)<1000.2^b(2^c - 1) \lt 1000. For c=1,2,…,9c = 1, 2, \ldots, 9 the factor 2c−12^c - 1 is 1,3,7,15,31,63,127,255,511,1, 3, 7, 15, 31, 63, 127, 255, 511, and the number of allowed values of bb is 10,9,8,7,6,4,3,2,110, 9, 8, 7, 6, 4, 3, 2, 1 respectively (the count for 6363 drops to 44 because 63⋅16=1008>1000,63 \cdot 16 = 1008 \gt 1000, while 31⋅32=99231 \cdot 32 = 992 still fits). The total is 10+9+8+7+610 + 9 + 8 + 7 + 6 +4+3+2+1=50.+ 4 + 3 + 2 + 1 = 50.
AoPS wiki

Tagged: power of 2 · factoring · casework

More practice