Good evening, experts
I want to solve recurrence equation using mathematica,
x(n) = x(n − 1) + n
for n > 0,
x(0) = 0
And i need to find x(1), x(2), x,(3)
This is my input and it gives me errors
n > 0
a[0] := 0
RSolve[x == a[n - 1] + n, a[n], n]
How can I rewrite the equation using the mathematica?
Thanks in advance
An example of this very pattern is the 2nd example in the documentation for RSolve:
For your problem, that’d be: