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

Can recurrences involving $\gcd$ be solved?

Can recurrences of the form $$ \sum_{i=1}^n a_iX_i=\gcd(n, X_n) $$ Where $a_i$ are constant coeficients. $a_i,X_i$ are integers. $a_n\neq0$. For $n \geq 2$ be solved? Here is an example: $$ X_n=X_{n-1}+\gcd(n, X_{n-1}). X_1=7 $$ This example…
YoTengoUnLCD
  • 13,384
0
votes
1 answer

Recurrence Problem Division Simplification Question

Given this problem with solution: http://postimg.org/image/gouhieo35/ I have a really simple question that i still can't understand. When he divided by $4^n$ how did 8C = 2C, 16C = C, and he cancelled out $4^{n-2}$ and $4^{n-1}$?
0
votes
2 answers

Simplifying recurrence relation $T_{n+1}=20T_n-48\times 8^n$

So I have the recurrence relation $$T_{n+1}=20T_n-8^n48.$$ For $T_0 = 6$, the first terms are $72$, $1056$, $18048$. I've seen a few worked examples for simplifying other recurrence series, but I'm not entirely sure how to work around that…
0
votes
1 answer

Explanation of Linear Nonhomogeneous Recurrence Relations Problem

$$5\times 3^n=v_{n+2}-6v_{n+1}+9v_n$$ $$=C(n+2)^23^{n+2}-6C(n+1)^23^{n+1}+9Cn^23^n$$ $$=18C3^n$$ Can anyone explain to me how he got $18C3^n$. I've been simplifying the 2nd step but haven't gotten close to that answer. Thanks!
Ran
  • 15
0
votes
1 answer

Looking for a "nice" Recurrence relation....

I'm want to build a game (with steps) that the solution have a Recurrence relation, i.e. - to solve the game you have to move from point A to point B, from point B to point C...(kind of a maze). Of course that will be a few ways to each point, and…
CS1
  • 2,047
0
votes
2 answers

solve recurrence relation $a(n)=2a(n-1)+1$

Possible Duplicate: Solving a Recurrence Relation/Equation, is there more than 1 way to solve this? I am trying to solve following recurrence relation $$a(n)=2a(n-1)+1\;.$$ I have divided both side by $2^n$, so get…
0
votes
1 answer

Recursive Equation Indexing

I'm trying to write a recursive equation/formula with all natural numbers as input but I need to exclude every number ending in a $4$ or $9$ ($n= 5i-1$, $i \in \Bbb N)$ and exclude all numbers $n= 13i-1$, $i\in \Bbb N$. This would leave me with…
Mike
  • 1
0
votes
1 answer

First order differential equation to standard form conversion

I need to convert the following differential equation to standard form. $$ T_n = 2 T_{n-1}+1 $$ (not quite sure how to really format it properly) I was thinking it is $$ T_n - 2T_{n-1} - 1$$ If I'm incorrect (or correct) can I please have somebody…
0
votes
0 answers

Solving $T(n)=2T(n-1)$

I have the following recurrence relation: $$T(n)=2T(n-1)$$ I would like to find the running time of the algorithm. I tried the following, having in mind that the correct solution is $$O(2^n)$$ So here are my calculations $$2T(n-1) = 4T(n-2) =…
0
votes
3 answers

Linear recurrence

Having trouble solving this type of question, I can solve it when the equation equates to 0 however when it equates to something like $5(3)^n$ I get stuck. here's the question: $$(1) \quad u_n - 4u_{n-2} = 5(3)^n \quad with \quad u_0 = 1 \quad and…
0
votes
4 answers

Solve the reccurence $a_n= 4a_{n−1} − 2 a_{n−2}$

Solve the recurrence $a_n = 4a_{n−1} − 2 a_{n−2}$ Not sure how to solve this recurrence as I don't know which numbers to input to recursively solve?
Tom
  • 29
0
votes
1 answer

Find a linear reccurrence relation where a(n) is the number of subsets of {1,2,3,...,n} not containing three consecutive numbers.

Find a linear constant coefficient for the recurrence relation $a(n)$ where $a(n)$ is the number of subsets of $\{1,2,3,\dots,n\}$ not containing three consecutive numbers. So $a(n)$ must have a recurrence relation where it can be traced that the…
Tom
  • 29
0
votes
1 answer

Recursive sequences and solutions

Let $s_0$, $s_1$, $s_2$, . . . be a recursive sequence defined by $s_0 = 4$,$s_1 =3$, $s_n$ =$−6s_{n−1}$ − $9s_{n−2}$ for all integers $n\ge2$ Find an expression for $s_n$ in terms of $n$ that holds for all integers $n \ge 0$. So far I've got: The…
0
votes
4 answers

nth term of recurrence

Im Trying to find/learn how to get the general formula for the n'th term. Im new to algebra and recurrences $$a_k = \left\{ \begin{array}{lr} 4a_{k-1} - 2a_{k-2} &: if \space k \geq 2 \\ 2 & :if\space k =1 \\ 1 & :if \space…
0
votes
1 answer

Show convergence of recursive function given different initial values

Well, I never had to show something like this which is why I'm having quite a hard time to get this one done. I basically know what I have to do but I am not capable of solving it properly. Given for example: $U = 0.25, F = 0.01, \Delta t =…
Stefan Falk
  • 1,217
  • 1
  • 11
  • 24