Problem 620: (2021 AIME I, 3)
Find the number of positive integers less than $1000$ that can be expressed as the difference of two integral powers of $2.$
- $2^a-2^b=2^b(2^c-1)$ with $c=a-b\ge1$. By unique factorization (power of $2$ times odd number), different pairs $(b,c)$ give different numbers.
- For each $c$, count $b\ge0$ with $2^b(2^c-1)<1000$, so $c=1,\dots,9$ give $10,9,8,7,6,4,3,2,1$ values (the odd parts $1,3,7,15,31,63,127,255,511$), and $c\ge10$ gives none.
- Total $50$. The answer is $\boxed{050}$.
Find the number of positive integers less than $2025$ that can be expressed as the difference of two integral powers of $2.$