i need to solve this recursive equation, but im get stuck in the non homogeneous part:
$$T_{n}=T_{n-1}+\frac{n^2}{2}+\frac{n}{2}$$
according to theory must be: $$ a_{0}T_{n}+...+a_{k}T_{n-k}=b^{n}p(n)$$
$$(a_{0}x^{k}+...+a_{k})(x-b)^{d+1}=0 $$ $$d:degree$$
$$(x-1)(x-\frac{1}{2})^3=0$$
$$T_{n}=C_{1}*1^{n}+C_{2}*(\frac{1}{2})^{n}+C_{3}*(\frac{1}{2})^{n}*n+C_{4}*(\frac{1}{2})^{n}*n^{2}$$
dont know if this procedure is right, the result must be $$T_{n}=\frac{n(n+1)(n+2)}{6}$$ but cant rech it. Thanks for help.
We have $$ T_k-T_{k-1} = \binom{k+1}{2}\tag{1} $$ hence by summing both sides of $(1)$ over $k=1,2,\ldots,n$ and exploiting the Hockey stick identity (and the fact that the sum of the LHSs is a telescopic sum) we get: $$ T_n-T_0 = \binom{n+2}{3} = \frac{(n+2)(n+1)n}{6}\tag{2} $$ as wanted.