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

Finding specific solution for second order nonhomogeneous recurrence equation

$\ x(n+2)−1/2x(n+1)+1/8x(n)=cos(nπ/2)$ Guess a solution -$\ Acos(nπ/2)+Bsin(nπ/2)$ where A and B are constants There were a question about this exact problem yersterday - Need help finding specific solution for second order nonhomogenous recurrence…
polyx
  • 25
0
votes
1 answer

Need help finding specific solution for second order nonhomogenous recurrence relation

$x(n+2)-\frac{1}2x(n+1)+\frac{1}8x(n)=\cos(n\pi/2)$ Guess a solution -- $Acos(n\pi/2)+Bsin(n\pi/2)$ where A and B are constants How do I go about this? Any help is appreciated
-1
votes
4 answers

How do I find $f(4)$ when $f(n)= f(n-1)+ 2n$?

Can somebody please help me find $f(4)$ when $f(n)= f(n-1)+ 2n$? $f(1)$ equals $16$ by the way.
-1
votes
1 answer

Understanding non homogeneous recurrence

Find a particular and then the general solution for the recurrence relation $a_n = 7\cdot a_{n−1} − 30 \cdot 2^n$ Trying to understand this equation.... We have been given a general formula for this format of the equation $2^n\cdot p = 7 \cdot…
-1
votes
2 answers

Upper and Lower bounds for the function

Please find the upper and lower bounds of the recurrence relations. $T(n)= 4T(n−2) + 6T(n-3) + 3^n $ if $n>=3$ $T(n)= 1 $ if $ n <=2$ I am confused. Thanks a lot :)
-1
votes
1 answer

Recurrence relation with complex roots

$$a_n=4a_{n-1}+5a_{n-2},\quad a_1=2,a_2=6$$ $$x^2-4x-5=0$$ $$x=-2+i,-2-i$$(complex roots) as per the quadratic equation for the roots, $$x=\frac{-b\pm\sqrt{b^2-4ac}}{2a}$$ Then what is the formula ? thank for confirming the roots just need one more…
Monica
  • 1
-1
votes
3 answers

Find a sequence such that $a_n^2=(a_{n-1}^2+a_{n+1}^2)/2$ for $n=2,3,\ldots$

Suppose $a_n \in \mathbb{N}$ are natural numbers such that: $$a_n^2=\frac{a_{n-1}^2+a_{n+1}^2}{2}\quad (n=2,3,\ldots), \quad a_1=10 $$ Find $a_n$ Progress: So far I had come up with $a_n^2=100+(n-1)(a_2^2-100)$ result.
Young
  • 5,492
-1
votes
1 answer

Solving recursion formula with sum

I am trying to solve the following recurrence, but i am stuck... $$t(n)=n + \sum_{j=1}^n t(n-j)$$ I really appreciate your help, Tarcísio.
-1
votes
2 answers

Closed form expression of the nth term

We have to find the closed form of the nth term of the recurrence relation:$$a_n = 2 a_{n-1} + a_{n-2}$$ $\forall n > 1$ It is given that $a_0 = 0, a_1 = 1$ I got the characteristics equation to be $x^2-2x-1=0$ and it has $2$ roots $1\pm √2$. But…
Ellie_Wong
  • 222
  • 8
-1
votes
1 answer

Solving recurrence relation T(n) = T(n − 2) + n log n

So I have the following recurrence relation which I am trying to solve: T(n) = T(n − 2) + n log n, T(0) = T(1) = 1. While usually if it is T(n-1) + log n it would just be T(n) = T(n-i) + log(n-i) + log(n-i-1) + ... log(n), and I can say n-i = 1…
-1
votes
1 answer

How to guess the form of the particular solution in a Non-Homogeneous Linear Recurrence Relation?

When determining the form of the particular solution for a recurrence relation is quiet simple, I use the following table: $f(n)$ $a^p_n$ c c $n$ $cn+d$ $n^2$ $cn^2+dn+e$ $r^n$ $cr^n$ These generally work for most of my problems…
-1
votes
1 answer

Solve recurrence relation with a polynomial term

How can I solve the recurrence relation $f(n) = f(n-1) - f(n-2) + n$, given $f(1) = 1$ and $f(2) = 1$? I know how to solve the characteristic equation however I don't know how to deal with the n term. Any help? I know this can be solved generally…
jujumumu
  • 101
-1
votes
1 answer

Solving closed form expression (or simplify) a recurrence relation

I encountered such a recurrence relation: $$ f(n, k) = k f(n - 1, k) + f(n - 1, k - 1), \text{for } 1 \lt n, 1 \le k \le n \\ f(1,1) = 1 \\ f(1,k) = 0, \text{for } k \ne 1 $$ This looks like a binomial expansion recurrence, but with an extra $k$ in…
Rui Liu
  • 567
-1
votes
2 answers

How can we solve this recurrence relation?

My friends and I are having trouble resolving this... T1 = 1, T(n) = 2T(n/2) + 1, n > 1. I would appreciate if anyone could help us solve this, and explain how to.
-1
votes
3 answers

Having difficulty solving a recurrence relation

Given that $a_{n+1}=\dfrac{a_{n-1}}{1+n\cdot a_{n-1}a_{n}}$ for $n=1,2,3,....$ and $a_0=a_1=1$. Find the value of $a_{199}\cdot a_{200}$. Also give with proof the general formula of $a_{n}a_{n+1}$?