Recurrence Relation Problem

In summary, the problem is to solve a_n= a_{n-1}+ n, a_0= 0. The first few values of a_n are 1+ 2+ 3+ 4+ 5. There is a well known formula for this series, a_n=n.
  • #1
Darth Frodo
212
1

Homework Statement


[itex]a_{n} = a_{n-1} + n[/itex]
[itex]a_{0} = 0[/itex]

The Attempt at a Solution


[itex] h_{n} = h_{n-1}[/itex]
[itex] t^{2} - t = 0[/itex]
[itex] t=0 t=1 [/itex]
[itex] h_{n} = B[/itex]

[itex] p_{n} = bn + c [/itex]
[itex] p_{n} = p_{n-1} + n [/itex]
[itex] bn + c = b(n-1) + n [/itex]
[itex] bn + c = (b+1)n -b [/itex]

I'm sure I've gone wrong somewhere, I just can't figure out where!
 
Physics news on Phys.org
  • #2
Darth Frodo said:
[itex] bn + c = b(n-1) + n [/itex]
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.
 
  • #3
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 [itex]h_{n} + p_{n}[/itex]


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

[itex] p_{n} = bn + c [/itex]
[itex] p_{n} = p_{n-1} + n [/itex]
[itex] bn + c = b(n-1) + c + n [/itex]
[itex] bn + c = (b+1)n -b + c [/itex]

I don't know how to solve for b and c I'm afraid.
 
  • #4
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 ?
 
  • #5
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.
 
  • #6
Darth Frodo said:

Homework Statement


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

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

In other words, [itex]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
 

1. What is a recurrence relation problem?

A recurrence relation problem is a mathematical problem that involves finding a sequence of numbers or values based on a given set of initial conditions and a recursive rule. The recursive rule defines how each term in the sequence is related to the previous terms.

2. How do you solve a recurrence relation problem?

To solve a recurrence relation problem, you can use various methods such as substitution, iteration, or generating functions. These methods involve finding a pattern in the sequence and using it to derive a general formula that can be used to calculate any term in the sequence.

3. What are some real-world applications of recurrence relation problems?

Recurrence relation problems have various real-world applications, including in computer science, physics, economics, and biology. For example, recurrence relations are used in analyzing the efficiency of algorithms, modeling population growth, and predicting stock prices.

4. Can a recurrence relation problem have multiple solutions?

Yes, a recurrence relation problem can have multiple solutions. This is because there can be different recursive rules or initial conditions that can result in the same sequence of numbers. It is important to carefully analyze the problem and check for any restrictions or assumptions to determine the unique solution.

5. How does a recurrence relation problem differ from a recursive algorithm?

A recurrence relation problem is a mathematical problem that is solved using a recursive rule, while a recursive algorithm is a computer program that uses the same concept of self-reference or self-calling function to solve a problem. Recurrence relation problems are more theoretical and do not necessarily involve computer programming.

Similar threads

  • Precalculus Mathematics Homework Help
Replies
1
Views
1K
  • Precalculus Mathematics Homework Help
Replies
4
Views
1K
  • Advanced Physics Homework Help
Replies
1
Views
712
  • Precalculus Mathematics Homework Help
Replies
1
Views
529
  • Precalculus Mathematics Homework Help
Replies
3
Views
633
  • Precalculus Mathematics Homework Help
Replies
6
Views
687
Replies
5
Views
1K
  • Precalculus Mathematics Homework Help
Replies
2
Views
2K
  • Precalculus Mathematics Homework Help
Replies
8
Views
1K
  • Precalculus Mathematics Homework Help
Replies
5
Views
1K
Back
Top