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
2
votes
1 answer

how can we solve this recurrence relation having part $2^n * n$

how can we solve recurrence relation like this? $a_n - 3 a_{n-1} + 2 a_{n-2} = 2^n (n+1)$ I know $a_n = a_n(h) + a_n(p)$. What's $a_n(p)$ for $2^n * n$?
mahdi
  • 341
2
votes
1 answer

How to find out the dependence on past terms from a recurence relation

Suppose I know the generating function.Then how do I find out the dependence of of the $n^{\text{th}}$ term on the past $k$ terms from it?? For eg : Suppose I have the Fibonacci series . I know its $\text{G.F} =x / (1 - x - x^2)$ I can find out that…
2
votes
1 answer

recurrence relation for loans

You borrow $4000$ dollars, at $12$ percentage compounded monthly, to buy a car. If the loan is to be paid back over two years, what is the monthly payment? Note you pay back same amount every month. Use a recurrence relation (for loans) to solve the…
2
votes
1 answer

What's the generalized approach for solving non homogenous recurrence relations?

I am trying to understand how do you solve non homogenous recurrence relations. So , for example, consider the following equation, $$(A-2)^2(A-1)g = 3(n^2)(2^n) + (2^n)$$ So , $A$ being the advancement operator. In general , $A$ just takes the…
SurenNihalani
  • 303
  • 1
  • 3
  • 11
2
votes
2 answers

Difference equation with strange initial condition

I have the difference equation $y_k = \frac{2}{7} y_{k+1} + \frac{2}{7} y_{k-1} + \frac{3}{7} y_{k-2}$. The $y_k$s are probabilities. The equation doesn't hold for $k = 0$. This is because I know that $y_0 = 1$, $y_{-1} = \frac{1}{3}$ and $y_{-2} =…
Gollum
  • 33
2
votes
1 answer

Recurrence relation -- simplifying to base case

What would be a closed form relating this recurrence relation $W_n$ to $W_1$? If $$W_n = \frac{z_n - 4W_{n-1}}{4n}$$ I keep nested fractions, and I'm not sure how to simplify without algebra being all over the page. This is basically me forming a…
2
votes
1 answer

Solving the recurrence relation with repeated roots (2 in $a_g$ and same root in $a_p$)

$$a_{n+2} - 6a_{n+1} + 9a_n = 3^n$$ Solving for this recurrence can be done by the following: 1) solve for the recurrence relation $a_g$ such that: $a_{n+2} - 6a_{n+1} + 9a_n = 0$ then, 2) $a_h$ such that: $a_{n+2} - 6a_{n+1} + 9a_n = 3^n$ then, 3)…
Diante
  • 189
2
votes
3 answers

Explicit solution to a recurrence relation

How would one reduce the following recurrence relation to an explicit formula $T(n)$? $$n * T(n)=c + (n + 1) * T(n - 1)$$ $$T(1) = 0$$
RickJ
  • 23
2
votes
0 answers

A recurrence relation on two variables with indicator

I'm trying to solve an almost-simple recurrence relation: $$ F(d,h) = F(d-1,h) + 2[d \le \alpha h] F(d-1,h-1) $$ for $h \ge 2$, $d \ge 0$, provided that $$ F(d,2) = \begin{cases} d+1, &\text{ if } d \le 2\alpha \\ 2\alpha + 1, &\text{ if } d >…
2
votes
0 answers

Can the recursion $x_{n+1} = 3{(x_n)}^2+2$ with $x_0 = 2$, be solved?

This can be solved computationally, but is there an analytical solution? I've tried to build a solution and it wasn't pretty. $$x_{n+1} = 3{(x_n)}^2+2 \qquad x_0 = 2$$
2
votes
2 answers

Quadratic Recurrence : $f(n) = f(n-1) + f(n-2) + f(n-1) f(n-2)$ Solution? How?

I have encountered this question in a coding competition and want the formula for $f(n)$. Is there any way to do this?
2
votes
1 answer

How to find the general term of this recurrence?

$$\displaystyle a(n,r) = a(n,r-1) + a(n-1,r)$$ for $n,r >1$. Given that $a(1,0) = a(0,1) = 1$.
2
votes
2 answers

What number does the recurrence $x_{n+1} = \cos(x_n) $ converge to?

The recurrence $x_{n+1} = \cos(x_n) $ seems to converge to a value around .739 no matter what number is chosen for $x_0$, even complex numbers. What is the exact number that this recurrence converges to?
Thomas
  • 159
2
votes
1 answer

How to solve this recurrence relation? $a_n=(a_{n-1})^3\cdot a_{n-2}$

I'm having some trouble solving this: $a_n=(a_{n-1})^3\cdot a_{n-2}$ $a_0=1$ $a_1=3$ Thanks for any help Edit: Well all I could think of doing with this relation is finding several values and look for any pattern. I got powers of $3$ in the…
Jon
  • 1,215
2
votes
6 answers

Solving Recurrences using Telescoping/Backwards Substitution

Specifically, $$T(n)=3T(n-1)+1; \quad T(1)=1.$$ I have \begin{align*} T(n) & = 3T(n-1)+1 \\ & = 3(3T(n-2)+1)+1 \\ & = 9T(n-2)+4 \\ & = 9(3T(n-3)+1)+4 \\ & = 27T(n-3)+13 \\ & = \cdots \\ & = (3^k)T(n-k)+(3^k - 1). \end{align*} Am I on the right…