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

How to check the solution to a difference equation

Suppose we are given a difference equation, for instance: $z(k+2) - 2z(k+1) +z(k) = 0$ and the two solutions to the difference equation: $z_1(k) =1$ $z_2(k) = k$ How am I supposed to check that the given solutions are indeed solutions to the…
Dean P
  • 548
0
votes
2 answers

How to solve a recurrence relation with a constant factor?

How do you solve a linear recurrence relation with a constant factor? For example, given the sequence $f(n)=f(n-2)+f(n-1)+1$ how do you find the characteristic equation? When I try to solve $r^n=r^{n-2}+r^{n-1}+1 $ I can’t factor out a term to…
0
votes
1 answer

How To Solve $f(n)=6f(n-1)-8f(n-2)+7*2^{4n-8}-3*2^{3n-5}$

The initial values are $f(0)=f(1)=0$. Are there any relatively simple ways to solve the problem? I am almost certain that the solution is, $\frac {2^n(2^n - 1)(2^n - 2)(2^n - 3)}{24}$, but I don't know how to solve it since I couldn't think of any…
0
votes
1 answer

Find the general solution of non homogeneous recurrence relation

Find the general solution of the following non homogeneous recurrence relation with constant coefficient: $$a_n − 11a_{n−1} + 30a_{n−2}= n^2(5^n)$$ I tried the homogeneous part. $a_n−11a_{n−1}+30a_{n−2}=0$ and i get C=5 and D=6 I need full solution
happy
  • 1
  • 2
0
votes
2 answers

How am I supposed to read this

So we started difference equations and im having a very very hard tome wrapping my head around it, im using our assigned textbook. How am I supposed to read 2^t(2) Image: https://500px.com/photo/1009285382/-image-jpg-by-mmm-aly
0
votes
3 answers

General formula for pattern $1-\frac{1}{2^n}$

Given this pattern $\frac{1}{2},\frac{1}{2}\left(\frac{1}{2}\right)+\frac{1}{2},\frac{1}{2}\left(\frac{1}{2}\left(\frac{1}{2}\right)+\frac{1}{2}\right)+\frac{1}{2}\dots$ In other words $a_1=\frac{1}{2},a_n=\frac{1}{2}a_{n-1}+\frac{1}{2}$ The formula…
johnson
  • 482
0
votes
1 answer

Why is $(N+\sqrt{N^2-1})^k + (N+\sqrt{N^2-1})^{-k}$ the solution to the recurrence sequence $ x_n=x_{n-1} + x_{n-2}$

May I know why is that so? Because I was trying to prove $(N+\sqrt{N^2-1})^k$, where k is a positive integer, differs from the integer nearest to it by less than $(2N-\frac{1}{2})^{-k}$. I checked the answer, and it said that $(N+\sqrt{N^2-1})^k +…
Henry Cai
  • 633
0
votes
1 answer

How to solve a first order recurrence relation when the coefficient of $U_n$ is one?

Solve $U_{n+1}=U_n+2n^2+3n+4, U_1=2$ My problem occurs when trying to find the particular equation, as the variable start to cancel out. This is my working: Reduced form: $U_{n+1}=U_n$ Auxiliary equation: $r^{n+1}=r^n$, so…
Jamminermit
  • 1,923
0
votes
0 answers

Solving Vector Recurrence Involving Normalized Vectors

I am dealing with the following recurrent form: \begin{equation} \forall t \geq 1 \,;\, \boldsymbol{x}_t = \boldsymbol{x}_{t-1} - \epsilon \frac{\boldsymbol{a} \circ \boldsymbol{x}_{t-1}}{\| \boldsymbol{a} \circ…
Golabi
  • 387
0
votes
1 answer

Proving that $Ar_1^n + Br_2^n$ gives the solutions to a homogeneous recurrence equation

Show that the general solution to the recurrence equation $a_n+ba_{n-1} + ca_{n-2} = 0$ can be written as $a_n = Ar_1^n + Br_2^n$ if the roots $r_1$ and $r_2$ of the characteristic equation are unequal. Also account for the case where the roots are…
0
votes
0 answers

A recurrence relation departed in odd and even cases

During my investigation on order of monomials (came from an $I$-adic topology on $\mathbb{F}_2[x]$) I encounter the recurrence relation $$c_{2n+1}=n^2+c_{n+1},\\ c_{2n}=n^2-n+1+c_n.$$ Unfortunately, I have no idea, how to proceed, well I never face…
Qurultay
  • 5,224
0
votes
2 answers

What is the maximum number of the pieces that a watermelon can be cut into 10 knife cuts? (circle cutting problem extension)

I saw this problem in a game "Brain out" level 85. In this game, the answer is 1024, simply 10th power of 2. But I learned circle cutting problem in school and by solving recurrence formula, I could get explicit formula for the problem. I think this…
ye jun
  • 1
0
votes
1 answer

recurrence relation of $x^p$

I'm trying to find the recurring relation of $x^p$. $x$ is in the set of the real numbers and $p$ is in the set of natural numbers.
0
votes
1 answer

How to use undetermined coefficient in Difference Equations (Recurrence Relation)

I have $a_n-a_{n-1}=n$ with some initial conditions $a_0=1, a_2=2, a_3=4, a_4=7$ since there exist $n$, it's inhomogeous equation isn't it? I know from ODE i can bring the homogenous solution and differentiate it and do a substitution into the…
user516076
  • 2,200
0
votes
2 answers

Finding a solution to the recurrence relation $T(n) = T(n-1) + T(n/2) + n$

I have the following recurrence relation $$T(n) = T(n-1) + T(n/2) + n .$$ I know that I cannot use Master's theorem here and by intuition I can see the relation will be of order $O(n^2)$. But how to solve it, I have tried iterative method which was…