Problem

Source: Saint Petersburg 2016

Tags: algebra, polynomial



A polynomial $P$ with real coefficients is called great, if for some integer $a>1$ and for all integers $x$, there exists an integer $z$ such that $aP(x)=P(z)$. Find all great polynomials. Proposed by A. Golovanov