MathDB
(A,B)-polynomial on a board

Source: RMM 2021/6

October 14, 2021
polynomialalgebraRMM

Problem Statement

Initially, a non-constant polynomial S(x)S(x) with real coefficients is written down on a board. Whenever the board contains a polynomial P(x)P(x), not necessarily alone, one can write down on the board any polynomial of the form P(C+x)P(C + x) or C+P(x)C + P(x) where CC is a real constant. Moreover, if the board contains two (not necessarily distinct) polynomials P(x)P(x) and Q(x)Q(x), one can write P(Q(x))P(Q(x)) and P(x)+Q(x)P(x) + Q(x) down on the board. No polynomial is ever erased from the board.
Given two sets of real numbers, A={a1,a2,,an}A = \{ a_1, a_2, \dots, a_n \} and B={b1,,bn}B = \{ b_1, \dots, b_n \}, a polynomial f(x)f(x) with real coefficients is (A,B)(A,B)-nice if f(A)=Bf(A) = B, where f(A)={f(ai):i=1,2,,n}f(A) = \{ f(a_i) : i = 1, 2, \dots, n \}.
Determine all polynomials S(x)S(x) that can initially be written down on the board such that, for any two finite sets AA and BB of real numbers, with A=B|A| = |B|, one can produce an (A,B)(A,B)-nice polynomial in a finite number of steps.
Proposed by Navid Safaei, Iran