I am dealing with the test of the OBM (Brasilian Math Olympiad), University level, 2016, phase 2.
As I've said at this topic (question 1), this other (question 2) and this (question 3, yet open), I hope someone can help me to discuss this test. Thanks for any help.
The question 4 says:
Let $A=\begin{pmatrix}4&-\sqrt5\\ 2\sqrt5&-3\end{pmatrix}$.
Find all the pairs of numbers $(n,m)\in\mathbb{N}\times \mathbb{Z}$ with $|m|\leq n$ such that $A^n-(n^2+m)A$ has all the coordinates integers.
I'm trying solving this and I'd like a lot to have clues.
I'm doing some "simulations" and have an ideia about $a_{n21}$ (entry $21$ of the matrix $A^n$). It seems $x_n\sqrt{5}$ where $x_n=2$ to $n=1,2$ and $x_{n+2}=x_{n+1}+2x_n$. Maybe we can use something about recurrence. I'm trying.
Thank you.
This is a pure computation.
$A$ has characteristic polynomial $\chi_A(t)=t^2-t-2$, so has eigenvalues $2,-1$. By Cayley-Hamilton, $\chi_A(A)=0$ and so $$ A^{n+2}=A^{n+1}+2A^n. $$ Hence the diagonals are integers for all $n\in\mathbb{N}$. Also, we have an explicit formula for $A^n$:
The upshot is that we want
for which there are only finitely many solution $\lvert m\rvert\leq n$:
It is easy enough to estimate when to stop looking:
The result is:
The examiner seems to have a sense of humour: Note that the only nontrivial solution gives $A^n-(n^2+m)A=42I$, so maybe this is motivated by the "Answer to the Ultimate Question of Life, the Universe, and Everything" in Hitchhiker's Guide to the Galaxy?