2011 PUMaC Number Theory A7
Source:
September 24, 2019
number theory
Problem Statement
Let be a sequence of positive integers such that and the following recursions hold for every positive integer : \begin{align*}
g_{2n+1} &= g_{2n-1}^2+g_{2n-2}^2 \\
g_{2n} &= 2g_{2n-1}g_{2n-2}-g_{2n-2}^2
\end{align*}
Compute the remainder when is divided by .