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
2 answers

Is there a difference for discount per unit and discount per purchase total?

I can't find relevant tags for my question so I wonder if this is a good place to ask. I wanted to ask this a long time ago but keep forgetting. Let's suppose when shopping for 3 units of specific good with same price, I am being offered one of the…
Boris_yo
  • 125
0
votes
1 answer

Geometric recurrence, prove $g(k)=3g(k-1)-2g(k-2) is g(n)=2^n+1$

Geometric recurrence, prove gk = 3g(k-1) - 2g(k-2) is gn = 2n+1 using iteration. g1 = 3, g2 = 5 So, g3 = 3g(2) - 2g(1) = 3(5) - 2(3) = 9 <---- *which is 23+1 = 8+1 = 9 I'm unsure how to prove this? As k as an exponent not a multiplication?
0
votes
1 answer

Solving Recurrence Relation Question

How do i solve recurrence relations like $a(n) = 3a(n/2) - 2a(n/4); a(1)=3; a(2)=5$? I don't think I can draw a recursion tree since there's no function like $2n$ at the end.
0
votes
3 answers

Given initial conditions and a recurrence relation, what is closed form in terms of n?

We are given that $a_0$ = 1000, and $a_1$ = 3000, and that $\forall n \geq 2$, $a_n = \frac{a_{n-1} + a_{n-2}}{2}$. What is the value when $n$? I've determined that, in the long run, it converges to ~2290. So, there must be some equation that…
compguy24
  • 421
0
votes
0 answers

Inhomogenous Recurrence Relation: Looks correct?

I'm working on the problem below currently. I feel that I am doing everything correctly, but I just have this tiny problem that's causing me issues! I've attached my working out below. As tedious as it may be, it works out quite nicely in the end…
Trogdor
  • 10,331
0
votes
2 answers

Is it a solution of the recurrence relation?

I am given a recurrence relation such that $a_n = 2a_{n-1} - a_{n-2}$ for $n = 2, 3, 4...$ I am to test whether $a_n = 2^n$ is a solution to the recurrence relation. I am new to this, but it seems like there are two ways of doing this. Given the…
compguy24
  • 421
0
votes
1 answer

Difference equations and dimension argument

I have this difference equation: $$c_0 x_n+c_1x_{n+1}+\cdots+c_m x_{n+m} = \sum\limits_{i=0}^m c_i x_{n+i} = 0 $$ And I have problem with understanding the dimension argument. Dimension argument Given $x_1,\ldots,x_m \Rightarrow x_{m+1} =…
user12358
  • 289
0
votes
2 answers

Recurrence for number of strings of length n without consecutive vowels

Someone asked almost the same question recently, but I'm having a ton of trouble trying to calculate the rest of the problem.
albaba
  • 1
0
votes
1 answer

Recurrence formulae help

I need help with the following recurrence problem. Suppose we have a vector with n integers $\langle x_1,x_2,\ldots,x_n\rangle$. For this vector we calculate the relative parts of the even numbers and the odd numbers: $$m_0= \frac{\text{number of…
0
votes
2 answers

Domain and range transformation

How can I solve this recurrence relation using Domain and Range transformations: $$ \begin{array}{rcl} n^2 a_n &=& 5(n-1)^2 a_{n-1} +2 \\ a_0 &=& 0 \\ \end{array} $$
Lisa
  • 145
0
votes
1 answer

Recurrence relations :rate of growth

Consider the multiplication of bacteria in a controlled environment. Let ar denote the number of bacteria there are on the r-th day. We denote the rate of growth on the r-th day to be ar- 2(ar- 1). If it is known that the rate of growth doubles…
0
votes
3 answers

How to find the particular solution of a second order difference equation

I am trying to solve the second order difference equation, $$\left(\dfrac{\epsilon}{h^2}+\dfrac{1}{h}\right)Z(x_{i+1})-\left(\dfrac{2\epsilon}{h^2}+\dfrac{1}{h}\right)Z(x_{i})+\dfrac{\epsilon}{h^2}Z(x_{i-1})=2(\epsilon+x_i),$$ where…
Vaolter
  • 1,711
0
votes
1 answer

Amount of numbers divisible by 3

Let $a_n$ be the amount of numbers consisting of $n$ digits from $\{1,2,3,4,5\}$ that are divisible by $3$ (giving an integer solution). I'm asked to proof that the following recurrence relation holds for $a_n$: $$\begin{cases}…
RBS
  • 841
0
votes
1 answer

Existence and Uniqueness of Solutions to First-Order Non-Linear Recurrence Relations

How do I go about proving the uniqueness of an existing solution to a recurrence equation of the form $$ a_{n+1} - f(n)a_n = 0 $$ ? Is there a theorem related to questions of uniqueness and existence for recurrence relations of a certain type as is…
Nicola
  • 89
  • 6
0
votes
1 answer

Show that, for all natural numbers m and n, we have 2Fm+n = FmLn + FnLm

Show that, for all natural numbers m and n, we have 2Fm+n = FmLn + FnLm, where F0, F1, ... are the Fibonacci numbers and L0, L1, ... are the Lucas numbers. The recurrence relation for Fibonacci sequence is: Fn = Fn-1 + Fn-2 where F0 = 0 and F1 =…