DR.WANG Mathematics中文

2024 AIME II · Question 14

Number theory · number base · digits · Chinese Remainder Theorem · arithmetic

Problem outline

In base b≥2b\ge2, count a two-digit positive integer nn as a match if its digit sum equals n\sqrt n. Find the first base with more than ten matches.

Show answer and methods 1 methods

Answer

211

Method 1 Count idempotent residues modulo the base minus one

Let the digits be x,yx,y with sum ss. Since n=s2<b2n=s^2<b^2, necessarily 1≤s≤b−11\le s\le b-1. Also s2=bx+y=(b−1)x+ss^2=bx+y=(b-1)x+s, so b−1b-1 must divide s(s−1)s(s-1). The case s=1s=1 has zero leading digit and is excluded.

Conversely, every 2≤s≤b−12\le s\le b-1 meeting the divisibility condition gives the integer x=s(s−1)/(b−1)x=s(s-1)/(b-1) with 1≤x≤s−11\le x\le s-1 and the legal units digit y=s−xy=s-x. Distinct ss yield distinct squares.

Each prime power in b−1b-1 must divide one of the coprime neighbours s,s−1s,s-1. The Chinese remainder theorem gives 2r2^r classes if there are rr distinct primes; s=1,…,b−1s=1,\ldots,b-1 covers them once. After excluding one, 2r−1>102^r-1>10 first requires r=4r=4. The smallest possible b−1b-1 is 2⋅3⋅5⋅7=2102\cdot3\cdot5\cdot7=210, yielding 211211.

Source and attribution

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

Original question (external)