let us suppose that we have following recurrence relation
$a_n-a_{n-1}=2*n$ where $a_0=0$
as i know solution is following
$a_n=a_0+\sum\limits_{i=1}^n 2n $
which is the same as $a_n=2*\sum\limits_{i=1}^n n $
but this term
$ \sum\limits_{i=1}^n n=n^2$
therefore $a_n=2*n^2$
but youtube says that
and also wolfram alpha says that solution is $a_n=n*(n+1)$ how?
