formula for sequences satisfying second order recurrence relations


Theorem.

Let {sn} be a sequenceMathworldPlanetmath such that there exist constants A,B∈C with s1=A⁢s0 and, for all positive integers n,

sn+1=A⁢sn+B⁢sn-1.

Then for all nonnegative integers n, we have

sn=s0⁢∑k=0⌊n2⌋(n-kk)⁢Bk⁢An-2⁢k,

where ⌊⋅⌋ denotes the floor function and (ar) denotes the binomial coefficientMathworldPlanetmath.

Proof.

This will be proven by inductionMathworldPlanetmath. Due to the presence of ⌊n2⌋, odd n and even n should be considered separately. Thus, there are two base steps:

  • •

    If n=0, then

    s0=s0⁢∑k=00(0-kk)⁢Bk⁢A0-2⁢k.
  • •

    If n=1, then

    s1=A⁢s0=s0⁢∑k=00(1-kk)⁢Bk⁢A1-2⁢k.

Now assume that the theoremMathworldPlanetmath holds for all nonnegative integers less than or equal to some positive integer n. We must show that the theorem holds for n+1.

Recall that

sn+1=A⁢sn+B⁢sn-1.

We can use the induction hypothesis on sn and sn-1:

sn+1 =A⁢s0⁢∑k=0⌊n2⌋(n-kk)⁢Bk⁢An-2⁢k+B⁢s0⁢∑k=0⌊n-12⌋(n-1-kk)⁢Bk⁢An-1-2⁢k
=s0⁢(∑k=0⌊n2⌋(n-kk)⁢Bk⁢An+1-2⁢k+∑k=0⌊n-12⌋(n-1-kk)⁢Bk+1⁢An-1-2⁢k)
=s0⁢(An+1+∑k=1⌊n2⌋(n-kk)⁢Bk⁢An+1-2⁢k+∑k=1⌊n+12⌋(n-kk-1)⁢Bk⁢An+1-2⁢k)

First assume that n is odd. Then the first of the two summations has ⌊n2⌋=n-12 terms and the second summation has ⌊n+12⌋=n+12 terms. Therefore, we must split off the k=n+12 term from the second summation before combining the two summations:

sn+1 =s0⁢(An+1+∑k=1⌊n2⌋(n-kk)⁢Bk⁢An+1-2⁢k+∑k=1⌊n2⌋(n-kk-1)⁢Bk⁢An+1-2⁢k+Bn+12)
=s0⁢(An+1+∑k=1⌊n2⌋[(n-kk)+(n-kk-1)]⁢Bk⁢An+1-2⁢k+Bn+12)
=s0⁢(An+1+∑k=1⌊n2⌋(n+1-kk)⁢Bk⁢An+1-2⁢k+Bn+12)
=s0⁢∑k=0⌊n+12⌋(n+1-kk)⁢Bk⁢An+1-2⁢k

Now assume that n is even. Then the two summations have the same number of terms and can be combined as is:

sn+1 =s0⁢(An+1+∑k=1⌊n+12⌋[(n-kk)+(n-kk-1)]⁢Bk⁢An+1-2⁢k)
=s0⁢∑k=0⌊n+12⌋(n+1-kk)⁢Bk⁢An+1-2⁢k

Hence, the theorem holds for all nonnegative integers n. ∎

Title formula for sequences satisfying second order recurrence relations
Canonical name FormulaForSequencesSatisfyingSecondOrderRecurrenceRelations
Date of creation 2013-03-22 17:51:43
Last modified on 2013-03-22 17:51:43
Owner Wkbj79 (1863)
Last modified by Wkbj79 (1863)
Numerical id 7
Author Wkbj79 (1863)
Entry type Theorem
Classification msc 11B37
Classification msc 03D20