If your recurrence relation's characteristic equation factorizes to
$$(x+1)(x-5)^3 = 0$$
and
- $h(n) = 3+2n \implies f_p(n) = d_0+d_1n$
- $h(n) = 7n+3^n \implies f_p(n) = d_0+d_1n+d_23^n$
- $h(n) = 3n^2+5^n \implies f_p(n) = d_0+d_1n+d_2n^2+d_3n^35^n$
I understand the first one, because:
$$h(n) = 3 + 2n$$
Has one constant $3$, so the particular solution has a constant $d_0$. It also has a constant $2$ multiplied by $n$, so the particular solution should have a constant $d_1$ multiplies by $n$, so
$$f_p(n) = d_0+d_1n$$
But I don't get the second and third ones.
For the second one, why is there a $d_0$ there? There are no "lonely" constants in $h(n)$.
For the third, I don't get any of the results at all.