I have been trying to solve this question for hours. But can't seen to figure out how to solve it by backtracking. Is my current step correct? May I get some help how to continue and derive the simplified solution. thanks!
Question: \begin{align} a_{n} &= a_{n-1}+n ,\\ a_{0} &= 1 \end{align}
My attempt: \begin{align} a_{n}&=a_{n-1}+n\\ &= a_{n-2}+(n-1)+n\\ &= a_{n-2}+2n-1\\ &= a_{n-3}+(n-2)+2n-1\\ &= a_{n-3}+3n-1-2\\ &= a_{n-4}+(n-3)+3n-1-2\\ &= a_{n-4}+4n-1-2-3\\ &= a_{n-5}+(n-4)+4n-1-2-3\\ &= a_{n-5}+5n-1-2-3-4\\ &...\\ &...\\ \end{align}
Edited: Hi All, Thanks for your help. But I need to do it using backtracking.