Define
Sk(x)=xk+xk1
And set S1(x)=a. We remark that S2(x)=a2−2.
We have
Sk(x)=(xk−1+xk−11)(x+x1)−(xk−2+xk−21)
whence the recursion
Sk(x)=aSk−1−Sk−2
Note: we really only care about this (mod10).
It's now a simple matter to check each value of a(mod10). For instance, if a≡0(mod10), the Sk(x)(mod10) are periodic with period 4 and the sequence they form is
{0,8,0,2}
(Note that all odd indexed numbers in the sequence end in 0 which is stronger than we need).
Similarly, if a≡1(mod10) we get the periodic block
{1,9,8,9,1,2}
from which the relevant claim follows at once.
And similarly for the rest.