Olympiad Maths Prep

Track / Stage 6 / 384 of 400 #1384 of 2000

Problem 1384

National olympiad, first round
Number theory Difficulty 6.9 Prove it

Show that for every polynomial f(x)f(x) with integer coefficients, there exists a integer CC such that the set
{nZ:\{n \in Z : the sum of digits of f(n)f(n) is C}C\} is not finite.

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

1. **Consider the polynomial f(x) f(x) with integer coefficients.**
We need to show that there exists an integer C C such that the set {nZ: the sum of digits of f(n) is C} \{ n \in \mathbb{Z} : \text{ the sum of digits of } f(n) \text{ is } C \} is not finite.

2. Handle the case of constant polynomials.
If f(x) f(x) is a constant polynomial, say f(x)=c f(x) = c where c c is an integer, then the sum of the digits of f(n) f(n) is simply the sum of the digits of c c for all n n . Thus, the set {nZ: the sum of digits of f(n) is C} \{ n \in \mathbb{Z} : \text{ the sum of digits of } f(n) \text{ is } C \} is infinite for C C equal to the sum of the digits of c c .

3. **Assume deg(f)1 \deg(f) \geq 1 .**
Without loss of generality, assume the leading coefficient of f f is positive. If not, consider f -f instead, which will not change the sum of digits property we are interested in.

4. **Express f(x) f(x) in its general form.**
Let f(x)=anxn+an1xn1++a1x+a0 f(x) = a_n x^n + a_{n-1} x^{n-1} + \dots + a_1 x + a_0 where aiZ a_i \in \mathbb{Z} .

5. **Choose a sufficiently large mN m \in \mathbb{N} .**
We can choose m m such that all the coefficients of f(x+m) f(x + m) are non-negative. This is possible because shifting the polynomial horizontally by a large enough integer m m will ensure that the polynomial evaluated at any integer x x will have non-negative coefficients.

6. **Define a new polynomial g(x)=f(x+m) g(x) = f(x + m) .**
Since g(x)=f(x+m) g(x) = f(x + m) , the coefficients of g(x) g(x) are non-negative. This transformation does not change the degree of the polynomial or the nature of its coefficients being integers.

7. **Consider the values of g(10k) g(10^k) for sufficiently large k k .**
For sufficiently large k k , the value 10k 10^k will be large enough such that the polynomial g(10k) g(10^k) will have a predictable pattern in its digit sum. Specifically, the leading term an(10k)n a_n (10^k)^n will dominate the value of g(10k) g(10^k) , and the sum of the digits of g(10k) g(10^k) will stabilize to a constant value C C .

8. Conclude that the set is infinite.
Since g(10k) g(10^k) for sufficiently large k k will have the same digit sum C C , the set {nZ: the sum of digits of f(n) is C} \{ n \in \mathbb{Z} : \text{ the sum of digits of } f(n) \text{ is } C \} is infinite.

\blacksquare

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