I am supposed to find a recursion for the following sequence: $$a_{n} = (1+\sqrt{s})^{n} + (1-\sqrt{s})^{n}$$ where $s \in \mathbb{N}$ fixed. I tried playing around with it using the binomial theorem, however, I was not able to find a solution! I'd greatly appreciate help/hints/solutions! Thanks in advance
2026-04-02 23:16:07.1775171767
On
Finding a recursion
86 Views Asked by Bumbble Comm https://math.techqa.club/user/bumbble-comm/detail At
3
There are 3 best solutions below
0
On
$a_n$ is the trace of the matrix $M^n$, where $M$ is the companion matrix of the polynomial: $$ p(t) = (t-1-\sqrt{s})(t-1+\sqrt{s}) = t^2-2t+(1-s)\tag{1}$$ hence the Cayley-Hamilton theorem applied to: $$ a_n = \text{Tr}\left(\begin{array}{cc}0 & s-1\\ 1 & 2 \end{array}\right)^n \tag{2}$$ gives:
$$ a_{n+2} = 2\, a_{n+1} + (s-1)\, a_n. \tag{3} $$
$$\begin{align}a_{n+2}&=(1+\sqrt s)^{n+2}+(1-\sqrt s)^{n+2}\\&=(1+\sqrt s)^n(1+\sqrt s)^2+(1-\sqrt s)^n(1-\sqrt s)^2\\&=(1+\sqrt s)^n(1+2\sqrt s+s)+(1-\sqrt s)^n(1-2\sqrt s+s)\\&=(1+\sqrt s)^n(2(1+\sqrt s)+s-1)+(1-\sqrt s)^n(2(1-\sqrt s)+s-1)\\&=2(1+\sqrt s)^{n+1}+(s-1)(1+\sqrt s)^{n}+2(1-\sqrt s)^{n+1}+(s-1)(1-\sqrt s)^n\\&=2a_{n+1}+(s-1)a_{n}\end{align}$$