\(\Leftrightarrow\left(\sqrt{2}+1\right)^n+\left(\sqrt{2}-1\right)^n=6\)
Đặt \(\left(\sqrt{2}+1\right)^n=t>0\Rightarrow\left(\sqrt{2}-1\right)^n=\frac{1}{t}\)
\(t+\frac{1}{t}=6\Leftrightarrow t^2-6t+1=0\Rightarrow\left[{}\begin{matrix}t=\left(\sqrt{2}+1\right)^2\\t=\left(\sqrt{2}-1\right)^2\end{matrix}\right.\)
\(\Rightarrow\left[{}\begin{matrix}\left(\sqrt{2}+1\right)^n=\left(\sqrt{2}+1\right)^2\\\left(\sqrt{2}+1\right)^n=\left(\sqrt{2}-1\right)^2\end{matrix}\right.\)
\(\Rightarrow\left[{}\begin{matrix}n=2\\n=-2\left(l\right)\end{matrix}\right.\)