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

Is Order and Degree of Recurrence Relation implies the same thing?

I got confused in a very basic concept while reading Kenneth H Rosen's Discrete Mathematics When I searched that on internet I get more confused I got from https://math.berkeley.edu/~arash/55/8_2.pdf And this…
Bhaskar
  • 177
1
vote
3 answers

The particular solution of the recurrence relation

I cannot find out why the particular solution of $a_n=2a_{n-1} +3n$ is $a_{n}=-3n-6$ here is the how I solve the relation $a_n-2a_{n-1}=3n$ as $\beta (n)= 3n$ using direct guessing $a_n=B_1 n+ B_2$ $B_1 n+ B_2 - 2 (B_1 n+ B_2) = 3n$ So $B_1 =…
Samuel
  • 201
1
vote
2 answers

Closed form solution for recurrence

I need to find a closed form solution for the following recurrence: $T(m) \leq T(\sqrt m) + 1$, $T(1)=1$ I honestly don't have even have an idea where to start. Help would be greatly appreciated!
mort
  • 385
1
vote
1 answer

Solve the Recurrence $Q_0 = \alpha$, $Q_1 = \beta$ and $Q_n = (1 + Q_{n-1})/Q_{n-2}$ for $n \ge 1$

Solve the Recurrence $Q_0 = \alpha$, $Q_1 = \beta$ and $Q_n = \dfrac{1 + Q_{n-1}}{Q_{n-2}}$ for $n \ge 1$ This problem is from Concrete Mathematics by Donald Knuth. One of the homework exercises on Chapter one. However the author gave a hint that…
1
vote
2 answers

Recurrence relation about flag pole

Find a recurrence relation for $a_n$, the number of sequences of red, white and yellow flags along an $n$-foot high flagpole if red flags are 1, white flags are 2 and yellow flags are 3 feet tall, and no two red flags can be side-by-side. Why is…
Rongeegee
  • 447
  • 2
  • 5
  • 15
1
vote
3 answers

How to solve recurrence equation $f(n) = f(n-5) + f(n-10)$?

How to solve recurrence equation $f(n) = f(n-5) + f(n-10)$? For something like fibonacci sequence $f(n+1) = f(n) + f(n-1)$ I can solve for the quadratic equation $x^2-x-1=0$ then $f(n) = A x_1 + A^\prime x_2$. But what should I do for this one?
xiamx
  • 449
1
vote
0 answers

recurrence relation-iteration method

I want to solve this recurrence relation: $T(n)=T(n-1)+ \frac{n}{log(n)}$. I have tried this: $T(n-1)=T((n-1)-1)+ \frac{n-1}{log(n-1)} + \frac{n}{log(n)}=T(n-2)+\frac{n-1}{log(n-1)}+\frac{n}{log(n)}$ Hence,…
joe
  • 111
1
vote
0 answers

Find $a \in \{0, ..., 9\}$ so that period of a sequence is the longest

I am give a sequence defined by the relation $s_{n + 3} = s_{n + 1} + as_{n}$ and need to determine, for which value of $a \in \{0, ... , 9\}$ the period of a sequence in the field $\mathbb{F}_{31}$ is the longest. From the relation I derived a…
1
vote
1 answer

Derive a formula for the number of strings of length n over the alphabet $\{0, 1, 2\}$ which have no consecutive 0's.

How would one go about solving a recurrence relation that has different cases? The whole problem asks for Derive a formula for the number of strings of length n over the alphabet $\{0, 1, 2\}$ which have no consecutive 0's. So my recurrence…
alexbake
  • 13
  • 2
1
vote
1 answer

Solve recursion relation finding closed formula

We have a recursion relation, that looks like: $$ S(1) = 1 $$ $$S(n) = \sum_{i=1}^{n-1} i* S(i) $$ with $$ n>1$$ Now, I have to solve this relation, finding a closed formular. I put some values into this relation. $S(2) = 1$, $S(3) = 3$, $S(4) =…
Blnpwr
  • 931
1
vote
1 answer

Solving a recurrence relation in general involving multiplying 2 consecutive terms?

Given a "quadratic" recurrence form: $$A = (a_{n+1}-B)(a_n-C)$$ How do I determine the general solution? I've been trying for about an hour now. If I could have a small hint that would be great. Thanks.
mtheorylord
  • 4,274
1
vote
1 answer

Forming a recurrence relation for a worded problem

Derive a recurrence relation for the number of length $n$ sequences of the English Alphabet (upper-case) not containing the words $DOG$. How would I do this using both methods (one where it directly tackles the problem,and the other being finding…
Natash1
  • 1,379
1
vote
1 answer

Having trouble finding the recursive relation.

I am give $s_n = 2^n + 3^n + 4^n$ for $n = 1,2,...$ so far I have n = 1 : 2 + 3 + 4 = 9 n = 2 : 4 + 9 + 16 = 29 n = 3 : 8 + 27 + 64 = 99 n = 4 : 16 + 81 + 256 = 353 I am having a hard time trying to figure out the pattern.
1
vote
0 answers

Prove $T(n) = 2T\left(\frac{n}{2}\right) + \frac{n}{\log{n}} + n$

I'm really stuck on this recurrence problem. $T(1) = 1$ in this case or for any small constant T(n) = 2T(n/2) + n/log(n) + n = 2(2T(n/4) + n/2/log(n/2)) + n/log(n) + n/2 + n = 4T(n/4) + n/log(n/2) + n/log(n) + n/2 + n/4 + n = 8T(n/8) + n/log(n/4) +…
skryt
  • 63
  • 8
1
vote
2 answers

Recurrence T(n) = T(n-1) + T (n/2) + 1

I am try to find the solution to the recurrence T(n) = T (n-1) + T(n/2) + 1 Whats I have done: T(n) = 2T(n-1 + n/2) + 1 T(n) = 2T(2n/2 - 2/2 + n/2) +1 T(n) = 2 T((3n - 1)/2) +1 if U(X) = T(x/3 + 1) then: U(X) = 2U(x/2) U(X) = x T(n) = 3(N - 1) +…