DR.WANG Mathematics中文

2021 AIME I · Question 3

Number theory · power of 2 · factoring · casework · algebra · problem-solving

Problem outline

How many different integers NN with 1≤N<10001\le N<1000 admit a representation N=2r−2sN=2^r-2^s with integer exponents r,sr,s?

Show answer and methods 1 methods

Answer

050

Method 1 Recover the exponents from the odd part

Positivity forces r>sr>s. Factor N=2s(2r−s−1)N=2^s(2^{r-s}-1). The parenthesis is odd, so s<0s<0 would leave a power of two in the denominator. Hence s≥0s\ge0, and ss is exactly the exponent of 22 in NN. The odd part then determines r−sr-s, so no two exponent pairs produce the same NN.

For fixed rr, the smallest difference is 2r−2r−1=2r−12^r-2^{r-1}=2^{r-1}. Hence r≤10r\le10. For 1≤r≤91\le r\le9, every s=0,…,r−1s=0,\ldots,r-1 works, giving 1+2+⋯+9=451+2+\cdots+9=45 choices. For r=10r=10 the condition is 1024−2s<10001024-2^s<1000, or 2s>242^s>24. Precisely s=5,6,7,8,9s=5,6,7,8,9 work. The total is 5050.

Source and attribution

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

Original question (external)