(a) Consider the homogeneous k th-order difference equation
akyn+k+ak−1yn+k−1+…+a2yn+2+a1yn+1+a0yn=0
where the coefficients ak,…,a0 are constants. Show that for λ=0 the sequence yn=λn is a solution if and only if p(λ)=0, where
p(λ)=akλk+ak−1λk−1+…+a2λ2+a1λ+a0
State the general solution of (∗) if k=3 and p(λ)=(λ−μ)3 for some constant μ.
(b) Find an inhomogeneous difference equation that has the general solution
yn=a2n−n,a∈R