I have tried to solve a very simple recursive equation:))), but I don't know what's wrong with my brain but I got other solution when I partially solve the equation.
Equation: $$T(n) = (n+2) + \sum^{n-1}_{i=0}T(i)\\ T(0) = 1$$
What I've tried:
$T(n) = (n+2) + \sum^{n-1}_{i=0}T(i)$
$T(n-1) = (n+1) + \sum^{n-2}_{i=0}T(i)$
--------------------------------------------(-)
$T(n) - T(n-1) = (n+2) - (n + 1) + \sum^{n-1}_{i=0}T(i) - \sum^{n-2}_{i=0}T(i)$
T(n) = 1 + 2 * T(n-1)
Bit I think this is wrong, because If I put in 1 to the original equation I got 4 but If I put 1 to the last equation I got 3. Or if I try with 2,3,4,5 I got other values.
I know that this is very easy stupid bug somewhere, tomorrow I will go to the brain medic:)))).