I understand how to solve a recurrence relation of the form:
$ U_n = 7U_{n-1} + 18U_{n-2} $
which becomes
$ U_n - 7U_{n-1} - 18U_{n-2} = 0 $
and to characteristic form
$ x^2 - 7x - 18 = 0 $
However i do not understand what to do when there are extras added not of the form "$U_{n-a}$" for example:
$ U_n = 3U_{n-1} - 3U_{n-2} + U_{n-3} + 17 $
or
$ U_n = 7U_{n-1} + 18U_{n-2} + 3^n $
i assume i follow the procedure of
$ U_n - 3U_{n-1} + 3U_{n-2} - U_{n-3} - 17 = 0 $
but from here i do not know how to continue