Maths Olympiad Prep

Track / Stage 5 / 247 of 400 #847 of 1964

Problem 847

AIME late
Number theory Difficulty 5.6 Prove it

2. Let pp be a prime number greater than 3, and for some natural number nn, the number pnp^{n} is exactly a 20-digit number. Prove: This number contains at least three identical digits.

This one wants a proof. Work it on paper, then read the official solution and mark yourself. Be honest about it: the record is only any use to you if it is.

Official solution

Proof by contradiction. Assume that among the 20 digits of pnp^{n}, no three or more are the same, then at most two digits are the same. Thus, the 10 digits {0,1,2,,9}\{0,1, 2, \cdots, 9\}, in the 20 positions of pn\boldsymbol{p}^{n}, each digit appears exactly twice (otherwise, pnp^{n} would have fewer than 20 digits). Therefore, the sum of the digits of pnp^{n} is 2×(0+1+2++9)=902 \times(0 +1+2+\cdots+9)=90. So, pnp^{n} is divisible by 3. Thus, pp is divisible by 3. But it is given that pp is a prime number greater than 3, which is a contradiction. Therefore, pnp^{n} must have at least three identical digits.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.