For $n\geq 1$, show (without expanding brackets) that $(1+\sqrt{2})^n+(1-\sqrt{2})^n$ is an integer, and that moreover it is the nearest integer to $(1+\sqrt{2})^n$.
This is a (non-assessed) problem in an example sheet I am working on. The example sheet is for an algebraic number theory course so I imagine that we are expected to use some tools from algebraic number theory to attack this.
I've tried some things but I can't make any progress in even showing that it's an integer (though it's obvious if you expand the brackets). I wonder if we're expected to do something a bit creative like showing that it's the norm/trace of some algebraic integer or the discriminant of some number field, which would suffice but sounds a bit far-fetched. Taking a more elementary approach I realise we have $a^n+b^n$ where $a+b=2,ab=-1$ and we could consider odd and even $n$ separately but I can't do anything with this. I don't want to completely waste this problem, so instead of looking at the solution I'd appreciate being given a small hint to get me started.
HINT: The number $(1+\sqrt{2})^n+(1-\sqrt{2})^n\in\Bbb{Z}[\sqrt{2}]$ is unchanged by substituting $\sqrt{2}$ by $-\sqrt{2}$.
My original (over)complete answer:
To show that it's an integer...
To show that it is the nearest integer to $(1+\sqrt{2})^n$...