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

Literature on functional difference equations

dear community. I'm looking for books/guides on functional difference equations. Can you recommend some? Below I try to explain what kind of equations I have in mind. As an example, one of the equations that I'm directly interested in is $$…
1
vote
2 answers

Calculating a percentage between two numbers

I have two numbers, a minimum value, and a maximum value. I also have a percent. This percent helps me find a value between the two numbers, the minimum value and the maximum value. I cannot figure out how to do this (perhaps because I’ve been…
1
vote
2 answers

How do I find $\sum_{i=1}^n\frac{1}{x_i}$ where $x_i = x_{i-1} + \frac{1}{x_{i-1}}$

I have a recurrence: $x_n = x_{n-1} + \frac{1}{X_{n-1}}$. I need the value of n for which $x_n$ IS CLOSEST TO $2*x_0$, where $x_0$ is a positive integer. I tried the following: $x_1 = x_0 + \frac{1}{x_0}$ $x_2 = x_1 + \frac{1}{x_1}$ .. $x_n =…
1
vote
2 answers

First order recurrence relation

I have to solve this relation: $$a_1 = k \\ a_n = \frac{10}{9} a_{n-1} + k + 1 - n$$ (k is constant) How can I do it??
MathDav
  • 556
1
vote
0 answers

Solving a recurence system

Find a function $f(x,y) : \mathbb{N}^2 \to \mathbb{N}^2$ such that: $1 + f(x+1,y) - f(x,y) = a$ $1 + f(x, y+1) - f(x,y) = b$ $k + f(x-k, y) - f(x,y) = c \space \forall k \leq x$ $k + f(x,y-k) - f(x,y) = d \space \forall k \leq y$ $k + f(x-k, y+k)…
Myro
  • 75
1
vote
3 answers

Understanding a recurrence relation question.

A computer system considers a bit string a valid codeword if and only if it does not contain $3$ consecutive zeroes. Thus $010010$ is a valid codeword of length $6$ while $011000$ is not. Let $a_n$ be the number of valid codewords of length $n$. The…
1
vote
1 answer

Solve $X_n=\lfloor \sqrt{X_n} \rfloor+X_{n-1}$

How do I solve $X_n=\lfloor \sqrt{X_n} \rfloor+X_{n-1}$? The initial terms are $1,2,3,5,7,10,13,17,21,26,31$. A search on oeis.org/ gave $\lfloor n/2 \rfloor\cdot\lceil n/2 \rceil$ + 1 which should be proven by induction. Is there a different…
mrk
  • 3,075
1
vote
1 answer

Number of n-digit ternary sequences with an even number of 0's and 1's

Can someone help me derive a recurrence relation to find the number of n-digit ternary sequences with an even number of 0's and 1's? I know that you need to break it down into cases where the sequence starts with either a 0 OR a 1 or a 2 and based…
1
vote
1 answer

Solve the following recursive relation by using generating functions

$a_n - 9a_{n-1} + 26a_{n-2} - 24a_{n-3} = 0, n \ge 3, a_0 = 0, a_1 = 1,a_2 = 10$ I have tried solving it by the normal way, but I have no idea how to solve it by generating functions. Please give me a detailed answer.
1
vote
2 answers

Find the generating function?

How can I find a generating function for the following mathematical term? $$ a_r = \left(\matrix{2r \\ r}\right) $$ Is it the $\dfrac{r!}{2r(2r-r)!} = \dfrac{(2r-1)\cdot(2r-2)\cdot\ldots\cdot 1}{r\cdot(r-1)\cdot(r-2)\cdot\ldots\cdot1}$?
1
vote
2 answers

How can I find a recursive relation for the following words?

if $d(n)$ is the number of words created by the alphabet $\{a,b,c\}$ of length $n$ that do not contain $abc$ term then write a recursive relation for $d(n)$. I have read the same questions but there is no detailed answer for me to learn how to write…
1
vote
1 answer

set problem of integers

Consider the following set $F=\{F^0, F^1, F^2, \ldots\}$. This set consists of positive integers which satisfy the following properties: $F^0= F^1=1$ AND $F^n= F^{n-1} + F^{n-2}$ for all positive integers $n\geq2$. Prove that for all positive…
rajib
  • 81
1
vote
2 answers

How can I get the following recursive relation that explained?

if $b(n)$ is the number of words created by the alphabet ${a,b,c}$ with $n$ length that each word has at least one $a$ character and after each $a$ there is no $c$ character write a recursive relation for $b(n)$. I have tried calculating the words…
1
vote
1 answer

Recurrence Problem

$$A(n) = A(n/3) + A(n/2) + A(2n/3) + O(n)$$ So I am trying to solve this equation. I let $A(n) = O(n)$. I then solved the equation this way: $$n/3 + n/2 + 2n/3 + kn,$$ which can simplify to $3n/2 + kn$, which is $cn$, where $k$ and $c$ are some…
Laciel
  • 221
1
vote
3 answers

Where is the error in finding the particular solution to this recurrence relation?

The question is to write the general solution for this recurrence relation: $y_{k+2} - 4y_{k+1} + 3y_{k} = -4k$. I first solved the homogeneous equation $y_{k+2} - 4y_{k+1} + 3y_{k} = 0$, by writing the auxiliary equation $r^2 - 4r + 3 = (r-3)(r-1)…
Grid
  • 611