DR.WANG Mathematics中文

2014 USAJMO · Question 4

Number theory · digits

Problem outline

Fix an integer base b≥2b\ge2. For each positive integer nn, write sb(n)s_b(n) for the sum of its base-bb digits. Prove that infinitely many positive integers are missing from the list of values n+sb(n)n+s_b(n) as nn runs through all positive integers.

Show answer and methods 1 methods

Answer

For each positive integer MM, at least MM of the positive integers below b2Mb^{2M} are missing.

Method 1 Count the inputs that cross a power of the base

Let MM be any positive integer and set L=b2ML=b^{2M}. We count the possible inputs for the L−1L-1 target numbers from 11 through L−1L-1. An input n≥Ln\ge L cannot work because sb(n)≥1s_b(n)\ge1.

Consider the last MM smaller inputs, n=L−jn=L-j with 1≤j≤M1\le j\le M. Since M≤bMM\le b^M, we may write L−j=(bM−1)bM+(bM−j)L-j=(b^M-1)b^M+(b^M-j), where the second summand fits in MM digits. The leading MM digits of L−jL-j are therefore all b−1b-1. This guarantees sb(L−j)≥M(b−1)≥M≥js_b(L-j)\ge M(b-1)\ge M\ge j.

It follows that (L−j)+sb(L−j)≥L(L-j)+s_b(L-j)\ge L for every one of these inputs. Only the L−M−1L-M-1 positive inputs below L−ML-M are available to hit L−1L-1 targets, and each input can hit at most one target. At least MM targets are missed. As MM can be arbitrarily large, the total number of missed integers is infinite.

For odd bases there is also a quick parity check. Each power of an odd bb is odd, so the base expansion gives n≡sb(n)(mod2)n\equiv s_b(n)\pmod2. Every output is then even, and every positive odd integer is missed.

Source and attribution

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

Original question (external)