Questions tagged [recurrence-relations]

Questions regarding functions defined recursively, such as the Fibonacci sequence.

A recurrence relation is an equation that recursively defines a sequence or multidimensional array of values: once one or more initial terms are given, each further term of the sequence or array is defined as a function of the preceding terms.

Simple examples include the geometric sequence $a_{n}=r a_{n-1}$, which has the closed-form $a_{n}=r^n a_0$, the aforementioned Fibonacci sequence with initial conditions $f_0=0,f_1=1$ and recurrence $f_{n+2}=f_{n+1}+f_n$, and series: the sequence $S_n =\sum_{k=1}^{n} a_k$ can be written as $S_n= S_{n-1}+a_n$.

The term order is often used to describe the number of prior terms used to calculate the next one; for instance, the Fibonacci sequence is of order 2.

See the Wikipedia page for more information.

8985 questions
0
votes
1 answer

Recurrence Relation Theta bound

I have a recurrence of type T(n)T(n) = T(n/2)T(2n) − T(n)T(n/2) How to find a theta bound for T(n)?
0
votes
2 answers

What's the procedure for solving recurrence relations without coefficients?

I've a recurrence relation $$a_{2n}=(2n-1) a_{2n-2}$$ (intial condition $a_2 = 1$) which has no coefficients, so I can't follow the standard procedure where I find the roots from which we can set up the general solution and then proceed to…
John
  • 139
0
votes
1 answer

proving a sequence is increasing defined by a recurrence relation.

Given the recurrence relation $b_{1}=0$ and $$3b_{n+1} = \frac{b_{n}}{12} + \sqrt{\frac{17+b_{n}^{2}}{12}}$$ Show that this recurrence relation is increasing. Note $36b_{n+1} = b_{n} + \sqrt{204+12b_{n}^{2}}$ So I have started as such: I have found…
user2850514
  • 3,689
0
votes
1 answer

Solving I. y[n+2]-(1/3)y[n+1]=sin(n) and II. y[n+2]+3y[n+1]-4y[n]=n-1 difference equations

I have two difference equations, which I just can't solve. I hardly even get the method, so if you could help me with the steps, I would be grateful. $y_{n+2}-\frac{1}{3}y_{n+1}=\sin(n)$ $y_{n+2}+3y_{n+1}-4y_{n}=n-1$
0
votes
2 answers

a simple recurrence problem

Here's the problem: 1.Find a recurrence relation for the number of ways to climb n stairs if the person climbing the stairs can take one, two, or three steps at the time. 2.Explain how the relation is obtained 3.What are the initial condition (base…
tenam
  • 3
0
votes
3 answers

This recurrence relation will evaluate to?

T(n) = 2T(n-1)+n, n>=2 T(1) = 1 What will this recurrence relation equation evaluate to ? I used substitution method and found out that this relation takes the form 2^k T(n-k) + 2^(k-1) * (n-(k-1)) + 2^(k-2) * (n-(k-2)) + ... + n
Rakesh
  • 99
0
votes
2 answers

solving recurrence relation.

Solve the following recurrence relation $$P(1)=2$$ $$P(n)=2P(n-1)+2^n\cdot n$$ for $n\ge 2$ I know I need to expand to look for a pattern but it's not clicking for me. I don't see the pattern that will simplify this recursive statement. Any help is…
Tim
  • 11
0
votes
2 answers

Recurrence Relation $T(n) = T(\frac{n}{2}) + \sqrt{n}$

$T(n) = T(\frac{n}{2}) + \sqrt{n}$ and $T(1) = 1$. Assume $n = 2^k$. $$T(2^k) = T(2^{k-1}) + 2^{k/2}$$ $$T(2^{k-1}) = T(2^{k-1}) + 2^{k/4}$$ ... $$T(2) = T(1) + 2^{k/k} $$ $$T(1) = 1$$ I'm just really confused about how to go about finishing this.…
0
votes
1 answer

How do I solve this recurrence relation

How do I solve the following recurrence relation: T(n)=4T(n-1) - 3T(n-2) I tried using substitution but failed as I was unable to find any "general" i-th term for it. Any help? Edit: Sorry, I forgot to mention the base case: T(0)=0 T(1)=2
0
votes
1 answer

recursive definition of the relation

Give a recursive definition of the relation greater than on N X N using the successor operators s? I answered this question throw this way: Basis: o ∈ N X N recursive step: if n ∈ N X N, then s(n) ∈ N X N Can anyone plz help me out further with this…
0
votes
1 answer

Solution of the difference equation $c(x+h)-c(x)=f(x)$ when $f(x)$ is a polynomial function

Consider the difference equation $c(x+h)-c(x)=f(x)$, where $f(x)=\sum\limits_{i=1}^{s}f_ix^i$ is a polynomial. What is the solution of this equation?
LJR
  • 14,520
0
votes
1 answer

Recursive Relationship: Paper Towels

A standard roll of paper towels consists of a cardboard tube with outer diameter $4$ cm. Imagine the paper being wound onto the cardboard tube. After each complete winding, the total diameter of the roll increases by an amount $2t$, where $t$ cm is…
user162592
0
votes
3 answers

Recurrence relations for students of the third year of secondary school.

I am not able to solve this problem in order to find a explicit form for the recurrence relation (note: in the original text I can read "a with n" and "a with n-1", but I am not able to format here) a(0) = 2 3 a(n) = a(n-1) + 6 I have to find the…
0
votes
1 answer

How $L_n = L_{n-1} + n $ become $L_{n-2} + (n-1) +n $ and So on?

I am currently reading 'concrete mathematics' of knuth. I don't know how $L_n = L_{n-1} + n $ become $L_{n-2} + (n-1) +n $ and finally $L_0+1+2...+(n-2)+(n-1)+n $ can you please tell me?
user1444692
  • 231
  • 1
  • 2
  • 9
0
votes
1 answer

Recurrence relation task

Can someone explain me this: $T(n)=-T(n-1)+2\times T(n-2)+3 \times 2^n+n$ According to Wolfram Alpha the answer is: $$ T(n) = c_1(-2)^n + c_2 + \dfrac{1}{18}n(3n + 7) + 3 \times 2^n - \dfrac{5}{27}$$ but can someone explain me how it is…