Two positive integers are called anagrams if every decimal digit occurs the same number of times in each of them (not counting the leading zeroes). Find all non-constant polynomials $P$ with non-negative integer coefficients so that whenever $a$ and $b$ are anagrams, $P(a)$ and $P(b)$ are anagrams as well. Proposed by Sutanay Bhattacharya
Problem
Source: India EGMO TST 2025 Day 1 P2
Tags: algebra, polynomial
14.12.2024 10:16
14.12.2024 10:25
Note that $P(9 \cdot 10^k + 1)$ and $P(10^k + 9)$ have the same number of digits, which is clearly false if $\deg P \ge 2$ since $P(9 \cdot 10^k+1)^2 > 10 \cdot P(10^k + 9)^2$ holds asymptotically. Then it's easy to see $P(x) = ax + b$ and that $a = 10^k$ must hold, and then by considering say $10^k + 10^{b} - b, 10^k + 10^{k-1-2b} \cdot (10^b - b)$ for large $k$ that $b < 10^k$.
15.12.2024 02:23
satisfies the conditions of the problem. I haven't had time to check the arguments in detail to see what the problem is. I'll post my original solution when I get the chance.
15.12.2024 02:27
Both answers above are missing some solutions (at the time of this post); here's the fix. By the same arguments as above, we have $P(x)=ax+b$ for some $a>0$, $b\ge0$. First we solve the case of $a=1$:
We now solve the general case:
15.12.2024 15:57
Solved with Nimloth149131215208 The answer is $P(x)=10^c\cdot x+d$ where $c$ and $d$ are fixed constants satusfying $d<10^c$, which can easily be checked to work. Claim 1: $P$ is a linear polynomial. Proof. Notice that if $\deg P\ge 2$, then $\lim_{k\to\infty} \tfrac{P(9\cdot10^k+1)}{P(10^k+9)}>10$ so $P(9\cdot10^k+1)$ and $P(10^k+9)$ cant have the same number of digits $\blacksquare$ This allows us to take $P(x)=ax+b$. Claim 2: $a$ being one implies that $b$ is zero Proof. Say $b>0$. If $b=1$, consider $P(12)$ and $P(23)$ to get a contradiction. Otherwise, choose a sufficiently large $k$ and consider $$P(8\underbrace{99\dots 9}_{k})$$and $$P(\underbrace{99\dots 9}_{k}8)$$to get a contradiction. $\blacksquare$ Claim 3: If $a=10^c$ for some integer $c$, then implies that $b<10^c$ Proof. Say $b\ge 10^c$ and write $b=10^c\cdot q+r$ where $r<10^c$. Now this gives that $P(x)=10^c(x+q)+r$ but since $r$ is less than $10^c$, this is basically the same as "appending" $r$ to $x+q$, but $x+q$ is not an angaram preserving polynomial by Claim 2, which is our desired contradiction. $\blacksquare$ Thus by the previous claim, it suffices to prove $a$ is a power of $10$ to finish. Now set $m = 10^{2k} - 10^{k} + 1$ and $n = 10^{2k-1} + 10^{k} - 1$. It can be shown without much effort that these are both anagrams and that $\lim_{k\to\infty}\frac{m}{n}=10$. But by considering these two numbers and limits/size, its not so hard to get the desired conclusion, and thus we are done
16.12.2024 03:39
Here's the solution I originally had in mind:
15.01.2025 13:14
solution similar to #6 but still will post it as i liked this problem a lot