How Do You Solve the Recurrence Relation a_n = a_{n-1} + n?

Click For Summary
SUMMARY

The recurrence relation a_n = a_{n-1} + n with initial condition a_0 = 0 can be solved by recognizing it as an arithmetic series. The solution is given by the formula a_n = n(n + 1)/2, which represents the sum of the first n natural numbers. The discussion highlights the unnecessary complexity introduced by attempting to solve the relation using a nonhomogeneous approach, when a direct calculation of values yields the correct result efficiently.

PREREQUISITES
  • Understanding of recurrence relations
  • Familiarity with arithmetic series
  • Basic algebraic manipulation
  • Knowledge of mathematical induction (optional for verification)
NEXT STEPS
  • Study the derivation of the formula for the sum of the first n natural numbers
  • Learn about solving linear recurrence relations
  • Explore the concept of homogeneous and nonhomogeneous recurrence relations
  • Investigate mathematical induction for proving formulas
USEFUL FOR

Students in mathematics, educators teaching recurrence relations, and anyone interested in combinatorial mathematics or algorithm analysis.

Darth Frodo
Messages
211
Reaction score
1

Homework Statement


a_{n} = a_{n-1} + n
a_{0} = 0

The Attempt at a Solution


h_{n} = h_{n-1}
t^{2} - t = 0
t=0 t=1
h_{n} = B

p_{n} = bn + c
p_{n} = p_{n-1} + n
bn + c = b(n-1) + n
bn + c = (b+1)n -b

I'm sure I've gone wrong somewhere, I just can't figure out where!
 
Physics news on Phys.org
Darth Frodo said:
bn + c = b(n-1) + n
I think there is a "+c" missing on the right side.

I have no idea how the first 2 and the following 4 lines are related to the other groups.
 
Ok sorry I should have explained.

Basically, how I solve a nonhomogenous RR is by ignoring the nonhomogenous term, and solving the homogenous term, 1st group.

Then I solve the homogenous term by picking a particular function of the same order of the nonhomogenous part and call this Pn. This is the second group.

Then, the General Solution to the RR is h_{n} + p_{n}


Yes you're right. So with the correction I get the following.

p_{n} = bn + c
p_{n} = p_{n-1} + n
bn + c = b(n-1) + c + n
bn + c = (b+1)n -b + c

I don't know how to solve for b and c I'm afraid.
 
Hi Darth Frodo, aren't you just trying to solve a simple arithmetic serie ?
u(n)=n
a(n)=1+2+...+n=n(n+1)/2 ?
 
The solution for a_n cannot be expressed as sum of a constant (h_n) and bn+c with constant b and c.

oli4 said:
Hi Darth Frodo, aren't you just trying to solve a simple arithmetic serie ?
Right.
 
Darth Frodo said:

Homework Statement


a_{n} = a_{n-1} + n
a_{0} = 0
Please, give a complete statement of the problem.

My mind-reading skills seem to be eroding lately.
 
If the problem is to solve a_n= a_{n-1}+ n, a_0= 0, then most of what you are doing is unnecessary. Instead, first calculate a few values directly:
a_1= a_0+ 1= 0+ 1= 1
a_2= a_1+ 2= 1+ 2= 3
a_3= a_2+ 3= 3+ 3= 6
a_4= a_3+ 4= 6+ 4= 10
a_5= a_4+ 5= 15

In other words, a_n= 1+ 2+ 3+ 4+ \cdot\cdot\cdot+ n[/tex], an arithmetic series as both oli4 and mfb said, for which there is a well known formula
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
1
Views
2K
Replies
6
Views
2K
Replies
8
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
3
Views
2K
  • · Replies 35 ·
2
Replies
35
Views
6K