Recurrence Relations and Generating Functions: Problem and Solution I
Combinatorics Problems and Solutions - Section 4
This is a part of Mr. Stolyarov's compilation of Free Combinatorics Problems and Solutions.The Recurrence Relation to be Solved:
hn = 8hn-1 - 16hn-2 (n ≥ 2); h0 = -1, h1 = 0.
We want to use generating functions to find an explicit formula for the nth term in this recurrence relation.
Source of problem: Brualdi, Richard A. Introductory Combinatorics. First Edition. 1977.
Solution by Mr. Stolyarov:
Let f(x) = h0 + h1x + h2x2 + ... + hnxn + ... be the generating function for h0, h1, h2,..., hn
Adding the three equations
f(x) = h0 + h1x + h2x2 + h3x3 + ... + hnxn + ...
-8xf(x) = -8h0x -8h1x2 -8h2x3 + ... -8hn-1xn -8hnxn+1 + ...
16x2f(x) = 16h0x2+16h1x3+...+ 16hn-2xn + ...
we get (1 -8x + 16x2)f(x) = h0 + (h1 -8h0)x + (h2 -8h1 + 16h0)x2 + ... + (hn -8hn-1 + 16hn-2)xn + ....
Since hn -8hn-1 + 16hn-2 = 0 for n ≥ 2, and since h0 = -1 and h1 = 0, this reduces to
(1 -8x + 16x2)f(x) = -1 + (0 - 8(-1))x = 8x - 1
Thus, f(x) = (8x -1)/(1 -8x + 16x2)
We note that (1 -8x + 16x2) = (1 - 4x)2
Thus, (8x -1)/(1 -8x + 16x2) = A/(1 - 4x) + B/(1 - 4x)2
(8x -1)/(1 -8x + 16x2) = A(1 - 4x)/(1 - 4x) 2 + B/(1 - 4x)2
So -4xA + B + A = 8x - 1
We note that -4A, the coefficient of the x term, must equal 8. Thus, A = 8/-4 = A = -2
So B - 2 = -1 and thus B = -1 + 2 = B = 1.
Thus, f(x) = (8x -1)/(1 -8x + 16x2) = -2/(1 - 4x) + 1/(1 - 4x)2.
Using the formula
1/(1 - rx)n = k=0∞Σ[C(n+k-1,k)rkxk], we find that
-2/(1 - 4x) = -2k=0∞Σ[4kxk] and
1/(1 - 4x)2 = k=0∞Σ[(k +1)4kxk]
Thus, f(x) = -2k=0∞Σ[4kxk] + k=0∞Σ[(k +1)4kxk]
f(x) = k=0∞Σ[-2[4kxk] + (k +1)4kxk] = k=0∞Σ[(k -1)4kxk]
Since this is the generating function for h0, h1, h2,..., hn, we have
hn = (n -1)4n
See more of Mr. Stolyarov's Free Combinatorics Problems and Solutions.
Related information
Most Comments Today
- Oh No! Michael Jackson's Body and Brain Missing Is Michael Jackson's body and brain missing? According to many websites they... 33 Comments
- Michael Jackson is Missing The casket is missing, where is it? How did it disappear? 32 Comments
- Real Estate: Renting Your Home and Bad Tenants If you decide to rent out your home, do a thorough reference check with previ... 28 Comments
- Hot News Quickies - Thursday, July 9, 2009 News happens while you sleep - get your Hot News Quickies here! 28 Comments
- Sarah Palin 2012? Sarah Palin 2012? 25 Comments
- Every Day Heroes At every disaster, in every community, when people are hurting who are the fi... 25 Comments





