The first part of the question is how to solve the next relation:
$$a_n+a_{n-2}-6a_{n-3}+4a_{n-4} = 2^nn^3 + \sin\frac{2n\pi}{3}$$
the explicit exact solution of characteristic polynomial is not simple. And trigonometric nonhomogeneous part confuses me.
The second part is how to solve all of such equations with trigonometric nonhomogeneous part.