Problem 824: (1988 AIME, 13)
Find $a$ if $a$ and $b$ are integers such that $x^2 - x - 1$ is a factor of $ax^{17} + bx^{16} + 1$.
- For a root of $x^2=x+1$, $x^n=F_nx+F_{n-1}$ (Fibonacci numbers).
- So we need $a(F_{17}x+F_{16})+b(F_{16}x+F_{15})+1=0$ for both roots: $aF_{17}+bF_{16}=0$ and $aF_{16}+bF_{15}=-1$.
- $a=F_{16}=987$, $b=-F_{17}=-1597$ works, by $F_{16}^2-F_{17}F_{15}=-1$. The answer is $\boxed{987}$.
Find $a$ if $a$ and $b$ are integers such that $x^2 - x - 1$ is a factor of $ax^{15} + bx^{14} + 1$.