Question: $x^{13}+x+90$ is divisible by $x^2-x+a$ $(a\in\mathbb N)$. Find $a$.
What I did was: \begin{align} &x^{13}+x+90 = Q(x)(x^2-x+a)\\ &\text{Let $t$ be one of roots of }x^2-x+a=0\\ &t^2=t-a\\ &t^4=(t-a)^2=t^2-2at+a^2=(1-2a)t+a(a-1)\\ \\ &t^8=((1-2a)t+a(a-1))^2=(1-2a)^2t^2+2(1-2a)a(a-1)t+a^2(1-a)^2\\ &=(1-2a)^2(t-a)+2(1-2a)a(a-1)t+a^2(1-a)^2\\ &=(1-2a)((1-2a)+2a(a-1))t+a^2(1-a)^2-a(1-2a)^2\\ \\ &t^{12}={(1-2a)t+a(a-1)}{(1-2a)((1-2a)+2a(a-1))t+a^2(1-a)^2-a(1-2a)^2}\\ &=(1-2a)^2((1-2a)+2a(a-1))t^2\\ &+ (a(a-1)(1-2a)((1-2a)+2a(a-1))+(1-2a)(a^2(1-a)^2-a(1-2a)^2))t\\ &+ a^2(a-1)(a(1-a)^2-(1-2a)^2)\\ &=(1-2a)^2((1-2a)+2a(a-1))(t-a)\\ &+(a(a-1)(1-2a)((1-2a)+2a(a-1))+(1-2a)(a^2(1-a)^2-a(1-2a)²^2))t\\ &+ a^2(a-1)(a(1-a)^2-(1-2a)^2)\\ &=\left((1-2a)^2((1-2a)+2a(a-1))+a(a-1)(1-2a)((1-2a)+2a(a-1))+(1-2a)(a^2(1-a)^2-a(1-2a)^2)\right)t\\ &+ a^2(a-1)(a(1-a)^2-(1-2a)^2)-a(1-2a)^2((1-2a)+2a(a-1))\\\\ &t^{13}=((1-2a)^2((1-2a)+2a(a-1))+a(a-1)(1-2a)((1-2a)+2a(a-1))+(1-2a)(a^2(1-a)^2-a(1-2a)^2))t^2\\ &+ (a^2(a-1)(a(1-a)^2-(1-2a)^2)-a(1-2a)^2((1-2a)+2a(a-1)))t\\ &=((1-2a)^2((1-2a)+2a(a-1))+a(a-1)(1-2a)((1-2a)+2a(a-1))+(1-2a)(a^2(1-a)^2-a(1-2a)^2))(t-a)\\ &+ (a^2(a-1)(a(1-a)^2-(1-2a)^2)-a(1-2a)^2((1-2a)+2a(a-1)))t\\ &=((1-2a)^2((1-2a)+2a(a-1))+a(a-1)(1-2a)((1-2a)+2a(a-1))+(1-2a)(a^2(1-a)^2-a(1-2a)^2)+a^2(a-1)(a(1-a)^2-(1-2a)^2)-a(1-2a)^2((1-2a)+2a(a-1)))t\\ &-a((1-2a)^2((1-2a)+2a(a-1))+a(a-1)(1-2a)((1-2a)+2a(a-1))+(1-2a)(a^2(1-a)^2-a(1-2a)^2))\\ &=-t-90\\\\ &(1-2a)^2((1-2a)+2a(a-1))+a(a-1)(1-2a)((1-2a)+2a(a-1))\\ &+(1-2a)(a^2(1-a)^2-a(1-2a)^2)\\ &+a^2(a-1)(a(1-a)^2-(1-2a)^2)-a(1-2a)^2((1-2a)+2a(a-1))\\&=-1\\ \\&\text{with an aid of Wlofram Alpha,}\\ &(a-2)(a^5-19a^4+32a^3-20a^2+5a-1)=0\\ &\therefore a=2 \end{align}
Is there a smarter way to get to the answer? Thanks.
(*) Any solution is welcomed, but this question was given to high school students who didn't learn calculus.