how should I write the recursion relation using the $\Sigma$ ?
we have $\begin{equation*} T(n) = \begin{cases} 1 &n=0\\ T(n-1)+n &n>0 \end{cases} \end{equation*}$
so if we suppose we reached the end, the recursion relation is : $T(n)=T(n-k)+(n-(k-1))+(n-(k-2))+...+(n-1)+n$
I'm not sure show to do it since the $k$ was decreasing