The real sequence yk,k=1,2,… satisfies the difference equation
yk+2−yk+1+yk=0
Show that the general solution can be written
yk=acos3πk+bsin3πk,
where a and b are arbitrary real constants.
Now let yk satisfy
yk+2−yk+1+yk=k+21
Show that a particular solution of (∗) can be written in the form
yk=n=1∑kk−n+1an,
where
an+2−an+1+an=0,n≥1
and a1=1,a2=1.
Hence, find the general solution to (∗).