Problem

Source: OLCOMA Costa Rica National Olympiad, Final Round, 2022 p2

Tags: algebra, polynomial



Find all functions $f$, of the form $f(x) = x^3 +px^2 +qx+r$ with $p$, $q$ and $r$ integers, such that $f(s) = 506$ for some integer $s$ and $f(\sqrt3) = 0$.