Find $a$ such that $ax^{17}+bx^{16}+1$ is divisible by $x^2-x-1$.
I tried taking the roots of the polynomial which are $\frac{1±\sqrt{5}}{2}$
And I got the equation $a(\frac{1±\sqrt{5}}{2})^{17}+b(\frac{1±\sqrt{5}}{2})^{16}+1=0$
Now I don't know what to do next.
Any help would be appreciated.
The given divisor has roots $\varphi=\frac{1+\sqrt5}2$ and $-\frac1\varphi$, so the $17$th-degree polynomial must also have these roots. This gives a system of equations for $a$ and $b$, which can then be solved.
The high exponents can be simplified by using the property $\varphi^2=\varphi+1$: $$\varphi^4=3\varphi+2$$ $$\varphi^8=21\varphi+13$$ $$\varphi^{16}=987\varphi+610$$ $$\varphi^{17}=1597\varphi+987$$ Thus $$a\varphi^{17}+b\varphi^{16}+1=0\implies a(1597\varphi+987)+b(987\varphi+610)=-1$$ $$-a\varphi^{-17}+b\varphi^{-16}+1=0\implies -a+b\varphi=-1597\varphi-987$$ We can see that $a=987,b=-1597$ is a solution to this system, and hence the original problem.