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

Solving recurrence relations of the form $a_{n} = b a_{n-1}^2 + c$

I have a recurrence relation of the form $a_{n} = b a_{n-1}^2 + c$, where $c \neq 0$. Specifically, mine is $a_{n} = \frac{1}{2} a_{n-1}^2 + \frac{1}{2}$, with $a_0 = \frac{1}{2}$. How are these solved? (What is the closed form, and does it have a…
jamaicanworm
  • 4,494
1
vote
0 answers

Recurrence Solution does not satisfy base case

Can someone tell me what am i doing wrong here ? My base case i.e. T(4)=12 T(n)=2T(n/2)+8n , T(4)=12 =2^(2)*T(n/2^2)+2*8n =2^(i)*T(n/2^i)+i*8n so let, n/2^(i) = 4 so, i=lgn-2 =2^(lgn-2)12 + (lgn-2) 8n
jon
  • 111
1
vote
0 answers

Non linear recurrence from a different problem here

Referring to Non linear recurrence relation? "The recurrence (2) then implies that $ h_m=h_0+md$ for (m≥0)", What does $h_0$ refer to and how is it derived? From what I can see in equation(2), when $g_m=1$,$h_m = 2h_{m+1} + h_{m+2}$ so how does…
winter
  • 71
  • 2
1
vote
0 answers

Find finite-history recurrence from full-history recurrence?

In this question I asked for a closed-form solution to this functional differential equation: \begin{align*} f'(z) &= e^{-2} (f(z/e))^2 \\ f(0) &= 1. \end{align*} It doesn't look like there is one, but I'm interested in another question about…
Andrew
  • 184
1
vote
1 answer

Non linear recurrence relation?

for $ f: \mathbb N \rightarrow \mathbb N $, How do I solve $ f_n - f_{n+2} = f_{n+3} \times (f_{n+2} - f_{n+4})$ I tried the generating function but it only seems to work for linear relations. any hints on how to make it linear?
winter
  • 11
  • 2
1
vote
3 answers

How many such sequences exist?

Here is a sequence, $a_1, a_2, a_3, \ldots$ that satisfy the following property: $a_{n+2} = a_{n+1}+a_n$, where $a_m$ is a positive integer for any $m$, and it is known that $a_7 = 2015$. How many such sequences exist?
Max
  • 51
  • 4
1
vote
0 answers

Growth of solutions of a second order recurrence equation with variable coefficients

Is it possible to determine whether the solutions of a second order difference equation with variable coefficients $$x_{n+2}+a_n x_{n+1}+b_n x_{n}=0$$ are growing with $n$ (for example exponentially) or not ? If yes, is it possible to determine the…
richard
  • 221
1
vote
2 answers

$f(6)=144$ and $f(n+3) = f(n+2)\{f(n+1)+f(n)\}$, Then $f(7) =$?

Given that $f(6)=144$ and $f(n+3) = f(n+2) \cdot\Big(f(n+1)+f(n)\Big)$ $[$For $n = 1,2,3,4]$ Then find the value of $f(7)$. The solution is not unique but all of them are positive integers. I can't find a way out.
Rezwan Arefin
  • 3,106
  • 1
  • 14
  • 39
1
vote
1 answer

Simple difference equation

I have the following difference equation: $B(n) = \phi (B(n-1) )+ 1$, with a boundary that $B(0) = 0$. I can see that: $B(1) = 1$, $B(2) = 1+\phi$, $B(3) = \phi (1+\phi) + 1$. So the general solution should be: $B(n) =…
phdstudent
  • 175
  • 1
  • 2
  • 15
1
vote
1 answer

A recurrence relation question - transforming

$a_{n+1}+{a_n}^2-2a_n=0$ I guess it is solved by transforming $a_n$ to some form of $b_n$. But I could not see the way. Would you explain the solution in details? Thanks.
Vitiello
  • 163
1
vote
0 answers

lotto draws- calculate the number of successes in full growth

In my country we have a special lottery There are 45 numbers and you can choose as many as you like in order to get right the 5 winning numbers. For example you can choose 10 out of the 45 numbers asking to get right the 5 winning numbers - this…
1
vote
1 answer

How to solve a recurrence equation with non-constant coefficients?

How to solve a recurrence equation with non-constant coefficients? The equation is $$ 120(3k+1)(18k^3-21k-2)(k+2)a_{3k-6}=120(54k^4-117k^2+4)(k-1)a_{3k-5}+(k-1)^2(3k^2-2)^2k^3(k+2)(k+1)(6k^2+6k-1). $$ Here $a_0=7, a_1=42, a_2=189, a_3=708,…
LJR
  • 14,520
1
vote
0 answers

How to solve the recurrence $T(n,m) = T(n/2,m) + T(n,m/2) + nm$ in terms of big O notation?

In every step one of the variables is divided by 2, so I think the depth must be $\log n + \log m$. So the solution is $O(nm(\log n + \log m))$ However for some reason an article I am reading claims for some problem that it should be $O(nm(\log n…
jsguy
  • 93
1
vote
2 answers

Solving $U_{n+1}=(U_{n})^{2} (n+2)$

I need help solving the recurrence relation: $U_{n+1}=(U_{n})^{2} (n+2)$, with $U(1)=2$. I've tried wolfram alpha, but something really horrible came up. The methods I've tried have just failed so I need some ideas please.
J.Gudal
  • 1,313
1
vote
2 answers

Solve the recurrence relation : $f(n) = 1 + \frac{f(n) + f(n-1) + \cdots + f(1)}{n+1}$

For naturals $n$, $f(n) = 1 + \dfrac{f(n) + f(n-1) + \cdots + f(1)}{n+1}$. What is $f(n)$? This is not a homework problem. Is there a general method to solve these recurrence relations? I will appreciate if someone directs me to a short…