Find all positive integers $a$ for which there exists a polynomial $p(x)$ with integer coefficients such that $p(\sqrt{2}+1)=2-\sqrt{2}$ and $p(\sqrt{2}+2)=a$
Source: Belarusian olympiad 2022
Tags: algebra, polynomial
Find all positive integers $a$ for which there exists a polynomial $p(x)$ with integer coefficients such that $p(\sqrt{2}+1)=2-\sqrt{2}$ and $p(\sqrt{2}+2)=a$