Problem

Source: Turkey Olympic Revenge 2023 P3

Tags: number theory, olympic revenge, Polynomials, sum of digits



Find all polynomials $P$ with integer coefficients such that $$s(x)=s(y) \implies s(|P(x)|)=s(|P(y)|).$$for all $x,y\in \mathbb{N}$. Note: $s(x)$ denotes the sum of digits of $x$. Proposed by Şevket Onur YILMAZ