Problem

Source: Romania 2017 IMO TST 3, problem 2

Tags: irrational number, polynomial, number theory



Determine all intergers $n\geq 2$ such that $a+\sqrt{2}$ and $a^n+\sqrt{2}$ are both rational for some real number $a$ depending on $n$