I'm trying to solve this recurrence: $$a_{n+2}+2a_{n+1}-3a_{n}=n+n(-3)^{n-1},\ a_0=0, a_1=1$$
However, the algorithm in my textbook doesn't seem to mention this case with multiple quasi-polynomials on the right side. How should I gues the particular solution?
Use linearity. The solution will be of the form $a_n = A(n) + B(n) + C(n)$ where $a_n = A(n)$ is a solution of the recurrence with right-hand-side $n$, $a_n = B(n)$ is a solution of the recurrence with right-hand-side $n (-3)^{n-1}$, and $a_n = C(n)$ is a solution of the homogeneous recurrence (i.e. with right-hand-side $0$).