Problem:
Let bβ₯2 be an integer. Call a positive integer nb-eautiful if it has exactly two digits when expressed in base b, and these two digits sum to nβ. For example, 81 is 13-eautiful because 81=6β3β13β and 6+3=81β. Find the least integer bβ₯2 for which there are more than ten b-eautiful integers.
Solution:
Let uβvβbβ be a b-eautiful integer. Then 1β€uβ€bβ1,0β€vβ€bβ1, and
u+v=sandub+v=s2
for some positive integer s.
Solving this system for u and v in terms of s and b gives
u=bβ1s(sβ1)βandv=bβ1s(bβs)β.
Thus 1<s<b and s(sβ1) must be a multiple of bβ1. Conversely, if s satisfies these conditions, then u=bβ1s(sβ1)β is an integer satisfying 1β€uβ€sβ1 and thus v=sβu is a positive integer less than b. Hence for a given base b, the number of b-eautiful integers is equal to the number of positive integers s such that 1<s<b and bβ1β£s(sβ1).
Let the prime factorization of bβ1 be p1e1ββp2e2βββ¦pkekββ, where k is the number of distinct prime numbers in the factorization. Then
sβ‘0 or 1(modpieiββ)for all iβ{1,2,β¦,k}.
By the Chinese Remainder Theorem, there are exactly 2k solutions for s in the interval [1,bβ1]. However, one of these solutions is s=1, which does not lead to valid u and v. Hence the number of b-eautiful integers is equal to 2kβ1. The required condition on b is equivalent to
2kβ1β₯10, implying that kβ₯4.
The least possible value of bβ1 is then 2β 3β 5β 7=210, so the least possible value of b is 210+1=211β.