9. Let k be a positive integer and let x0,x1,x2,⋯ be an infinite sequence defined by the relationship
x0=0
x1=1
xn+1=kxn+xn−1
For all n ≥ 1
(a) For the special case k = 1, prove that xn−1xn+1 is never a perfect square for n ≥ 2
(b) For the general case of integers k ≥ 1, prove that xn−1xn+1 is never a perfect square for n ≥ 2 difference equationsalgebra