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 and Number of Ways to Make Change

I have the following problem where a shopkeeper makes change for $n$ cents by placing one coin at a time on the counter, keeping a running total; pennies, nickels, and dimes are available. Let $C_n$ be the number of ways to make change for $n$…
user93189
  • 527
  • 6
  • 17
0
votes
1 answer

Simple qustion about Induction

I need to prove T(N) = O(N) $T(n) = T([3N/4] )+ T([N/4] ) + 1$ I think a good way to solve is to prove that T(N) < N-1 Induction hypotysis: for N-1, prove for N: $T(n) = T([3N/4])+ T([1N/4]) + 1 < [3N/4] - 1 + [N/4] - 1+1
tAmir
  • 187
0
votes
1 answer

Recurrence Equation

I have a problem with this type of non-homogeneous equation. Find the solution of recurrence equation: $2 A_{n+1} = 3A_{n}-n+2$ $A_{0} = 1$ I know the idea behind the problem when the particular part is in the form that n is an exponent of some…
Filip
  • 81
  • 6
0
votes
0 answers

Recurrence problem about planes

Find the recurrence relation satisfied by Sn, where Sn is the number of regions into which three dimensional space is divided by n planes if every three of the planes meet in one point, but no four of the planes go through the same point. I figured…
0
votes
1 answer

Whats the intuitive explanation that matrix multiplication of first 4 recurrence value solves linear recurrence relationship?

For example in this pdf https://bpb-ca-c1.wpmucdn.com/sites.uoguelph.ca/dist/8/175/files/2021/04/Fib_lin_alg.pdf The author created a matrix from the output of Fibonacci sequence in group of $2$, and take $2$ of the group Fibonacci sequence 0 1 1 2…
0
votes
1 answer

Show that this is a general solution of the difference equation

I am currently doing my homework and have been struggling to pass this question: The difference equation Un = Un-1 + Un+1 is a discrete model for the equilibrium heat distribution along a straight piece of wire running from 0 units to 10 units. The…
0
votes
1 answer

Recurrence relation for linear difference equation

Given $u_{n+1}=-3u_n+32n^2, u_0=2$ $u_{n+1} = -3u_n \implies u_{homo} = a(-3)^n$ $u_{part} = An^2 + Bn + C \implies A(n+1)^2 + B(n+1) + C = -3(An^2 + Bn + C) + 32n^2 \implies A = 8, B=-4, C = 1$ So we get $u_n = a(-3)^n+8n^2-4n+1$ and solving when…
0
votes
1 answer

Proving that roots of recurrence relation have specific form

Suppose that $f(x) = x^2 - ax - b$ is the characteristic polynomial of a recurrence equation: $$ u(n) = au(n-1) + bu(n-2) \quad (n \geq n_0 + 2). $$ a) Prove that if $f(x)$ has distinct non-zero roots $\alpha_1$ and $\alpha_2$ then any solution of…
0
votes
2 answers

Solving Inhomogeneous Recurrence Relation Problem

I'm struggling hard with figuring out how to solve the following inhomogeneous equation: $$a_n=a_{n-1}+3(n-1), a_0=1$$ My work is as follows: I solve for the homogeneous portion, which is $a_n = 1^n$, then solve for $$a^*_n = B_1n+B_0 =…
Log134
  • 3
0
votes
0 answers

How can one prove that a characteristic equation can be used to solve homogenous linear recurrence relations??

I have already proved that for degree 2 homogenous linear recurrence relation of degree 2 that it's nth term can be expressed as A^n.C + B^n.D where C an D are constants which can be evaluated using given conditions and A and B are the roots of the…
Adhvik
  • 63
0
votes
0 answers

Book request for Difference equations / recurrence relations. For use in probability.

Would anyone be able to recommend a book for solutions to difference equations of the first and second order, homogenous and non-homogenous. I'm not after anything too in depth but my probability course uses a lot of these and non of my calculus…
0
votes
0 answers

general form to big o notation - recurrences

I am struggling to understand how to convert a general form to the final proof of the big. For example assume the recurrence T(n-2) + 1 the general form is (my guess) T(n - 2k) + k but how would I show that this is big O of something 1 t(n-2) + 1 2…
0
votes
2 answers

A basic problem on recurrence relation

How to solve this recurrence relation $a_n=(1-p) + (2p-1)a_{n-1}, n \geq 2$ where $a_1= \beta$ and $p$ some arbitrary number.
aaaaaa
  • 2,656
0
votes
1 answer

Recurrence with multiple variables: $T(m,n) = T(m/2,l)+T(m/2,n-l) + \mathcal{O}(mn)$

I have an algorithms recurrence $$T(m,n) = T(m/2,l) + T(m/2,n-l) + \mathcal{O}(mn)$$ where $0 \leq l \leq n$. If $l = n/2$ is fixed, then it is quite easy to show that $T(m,n) = \mathcal{O}(mn)$. However, in my problem, $l$ is not a constant, and it…
user308485
  • 1,229
  • 7
  • 13
0
votes
0 answers

Non-homogeneous linear recurrence relation where the non-homogeneous part is piecewise-defined

How can we solve the non-homogeneous recurrence relation $$a_n = 3a_{n-2}+2a_{n-3}+f(n),$$ where $$f(n) = \begin{cases} -2^{k+1}\binom{2k+2}{k} & n=3k, \\ 2^{k+1} \binom{2k+2}{k+1} & n=3k+1, \\ 2^{k+1}\binom{2k+3}{k+1} & n=3k+2, \\ \end{cases}$$ and…
Adam Lowrance
  • 3,428
  • 1
  • 15
  • 19