There is one part of the characteristic equation I don't quite understand. If I've been given the following equation:
$$ T(n)= \begin{cases} 1,\quad if\ n=1\\ T(n-1)+n+1 \end{cases} $$
Then, you simply it to this:
$$ T(n)-T(n-1)=n+1=(1+n)^11^n $$
This makes sense to me, but how do you go from that to this:
$$ (x-1)(x-1)^2=0 $$
Then to this:
$$ \exists c_1, c_2, c_3 \in R $$ $$ \forall n \in N $$ $$ T(n)=c_11^n+c_2n1^n+c_3n^21^n $$
I can figure out the rest from here, but I don't understand these steps. I know it's probably easier to use iteration to solve this problem, but I want to have a better understanding of how the characteristics equation works.