Discrete Math Quiz: Generating Functions
17 questions · exam conditions
0:00
Generating FunctionsQuestion 1 of 17

The sequence ana_n satisfies the recurrence an=3an12an2a_n = 3a_{n-1} - 2a_{n-2} for n2n \geq 2 with a0=1a_0 = 1 and a1=4a_1 = 4. If G(x)=n=0anxnG(x) = \sum_{n=0}^{\infty} a_n x^n is the generating function for this sequence, which equation must G(x)G(x) satisfy?

G(x)=1+4x+3xG(x)2x2G(x)G(x) = 1 + 4x + 3xG(x) - 2x^2G(x)
G(x)=1+x13x+2x2G(x) = \frac{1 + x}{1 - 3x + 2x^2}
(13x+2x2)G(x)=1+x(1 - 3x + 2x^2)G(x) = 1 + x
G(x)=1+4x+(3x2x2)n=2anxnG(x) = 1 + 4x + (3x - 2x^2)\sum_{n=2}^{\infty} a_n x^n
← Back to quizzes

Discrete Math Quiz

Discrete Math Quiz: Generating Functions

Practice Generating Functions in Discrete Math with focused quiz questions that help you check what you know, review explanations, and build confidence with test-style prompts.

What this quiz covers

This quiz focuses on Generating Functions, giving you a quick way to practice the rules, question types, and explanations that matter most for Discrete Math.

How to use this quiz

Try each quiz question before looking at the correct answer. Use the explanations to review missed ideas, then come back to similar questions until the pattern feels familiar.

All questions

Question 1

The sequence ana_n satisfies the recurrence an=3an12an2a_n = 3a_{n-1} - 2a_{n-2} for n2n \geq 2 with a0=1a_0 = 1 and a1=4a_1 = 4. If G(x)=n=0anxnG(x) = \sum_{n=0}^{\infty} a_n x^n is the generating function for this sequence, which equation must G(x)G(x) satisfy?

  1. G(x)=1+4x+3xG(x)2x2G(x)G(x) = 1 + 4x + 3xG(x) - 2x^2G(x)
  2. G(x)=1+x13x+2x2G(x) = \frac{1 + x}{1 - 3x + 2x^2}
  3. (13x+2x2)G(x)=1+x(1 - 3x + 2x^2)G(x) = 1 + x (correct answer)
  4. G(x)=1+4x+(3x2x2)n=2anxnG(x) = 1 + 4x + (3x - 2x^2)\sum_{n=2}^{\infty} a_n x^n
Explanation: Starting with the recurrence relation an=3an12an2a_n = 3a_{n-1} - 2a_{n-2}, multiply by xnx^n and sum from n=2n=2 to \infty: n=2anxn=3n=2an1xn2n=2an2xn\sum_{n=2}^{\infty} a_n x^n = 3\sum_{n=2}^{\infty} a_{n-1} x^n - 2\sum_{n=2}^{\infty} a_{n-2} x^n. This gives G(x)a0a1x=3x(G(x)a0)2x2G(x)G(x) - a_0 - a_1 x = 3x(G(x) - a_0) - 2x^2 G(x). Substituting a0=1a_0 = 1 and a1=4a_1 = 4: G(x)14x=3x(G(x)1)2x2G(x)G(x) - 1 - 4x = 3x(G(x) - 1) - 2x^2 G(x). Expanding: G(x)14x=3xG(x)3x2x2G(x)G(x) - 1 - 4x = 3xG(x) - 3x - 2x^2 G(x). Rearranging: G(x)3xG(x)+2x2G(x)=1+4x3x=1+xG(x) - 3xG(x) + 2x^2 G(x) = 1 + 4x - 3x = 1 + x. Therefore (13x+2x2)G(x)=1+x(1 - 3x + 2x^2)G(x) = 1 + x. Choice A incorrectly starts the generating function equation. Choice B gives the closed form but not the functional equation. Choice D uses an incorrect indexing approach.

Question 2

Two sequences {un}\{u_n\} and {vn}\{v_n\} have generating functions related by V(x)=ddx[xU(x)]V(x) = \frac{d}{dx}[x \cdot U(x)], where U(x)=112xU(x) = \frac{1}{1-2x}. What is the relationship between the sequences {un}\{u_n\} and {vn}\{v_n\}?

  1. vn=(n+2)2n1v_n = (n+2) \cdot 2^{n-1} for n0n \geq 0, calculated using the product rule and series manipulation
  2. vn=n2n1v_n = n \cdot 2^{n-1} for n1n \geq 1 and v0=0v_0 = 0, obtained through careful index management
  3. vn=2n+n2n1v_n = 2^n + n \cdot 2^{n-1} for n1n \geq 1, combining the original and shifted derivative terms
  4. vn=(n+1)2nv_n = (n+1) \cdot 2^n for n0n \geq 0, derived from the differentiation and multiplication rules (correct answer)
Explanation: When working with generating functions and derivatives, you need to carefully apply differentiation rules and track how they affect the corresponding sequences. Starting with U(x)=112xU(x) = \frac{1}{1-2x}, you can recognize this as the generating function for un=2nu_n = 2^n. To find V(x)=ddx[xU(x)]V(x) = \frac{d}{dx}[x \cdot U(x)], first multiply: xU(x)=x12xx \cdot U(x) = \frac{x}{1-2x}. Now differentiate using the quotient rule: V(x)=ddx[x12x]=(12x)(1)x(2)(12x)2=12x+2x(12x)2=1(12x)2V(x) = \frac{d}{dx}\left[\frac{x}{1-2x}\right] = \frac{(1-2x)(1) - x(-2)}{(1-2x)^2} = \frac{1-2x+2x}{(1-2x)^2} = \frac{1}{(1-2x)^2} The generating function 1(12x)2\frac{1}{(1-2x)^2} corresponds to the sequence vn=(n+1)2nv_n = (n+1) \cdot 2^n for n0n \geq 0. This follows from the general formula that 1(1ax)2\frac{1}{(1-ax)^2} generates (n+1)an(n+1)a^n. Option A gives vn=(n+2)2n1v_n = (n+2) \cdot 2^{n-1}, which would correspond to a different generating function with an extra factor. Option B incorrectly sets v0=0v_0 = 0 and uses 2n12^{n-1} instead of 2n2^n, suggesting confusion about index shifts. Option C adds an extra 2n2^n term that doesn't arise from the differentiation process. Study tip: When differentiating generating functions, remember that ddx[xf(x)]\frac{d}{dx}[x \cdot f(x)] often increases the power of coefficients by 1. Practice recognizing standard forms like 1(1ax)2(n+1)an\frac{1}{(1-ax)^2} \leftrightarrow (n+1)a^n.

Question 3

Consider the recurrence relation an=an1+an2+2n2a_n = a_{n-1} + a_{n-2} + 2^{n-2} for n2n \geq 2 with a0=0a_0 = 0 and a1=1a_1 = 1. Which expression represents the generating function for the sequence {an}\{a_n\}?

  1. x+x212x1xx2\frac{x + \frac{x^2}{1-2x}}{1-x-x^2}, combining homogeneous and particular solution components
  2. x(12x)+x2(1xx2)(12x)\frac{x(1-2x) + x^2}{(1-x-x^2)(1-2x)}, using the method of undetermined coefficients systematically (correct answer)
  3. x+x21xx2+x212x\frac{x + x^2}{1-x-x^2} + \frac{x^2}{1-2x}, treating homogeneous and non-homogeneous parts independently
  4. x(1x)+2x2(1xx2)(12x)\frac{x(1-x) + 2x^2}{(1-x-x^2)(1-2x)}, derived through direct generating function manipulation techniques
Explanation: This is a non-homogeneous recurrence. Let G(x)=n=0anxnG(x) = \sum_{n=0}^{\infty} a_n x^n. From the recurrence an=an1+an2+2n2a_n = a_{n-1} + a_{n-2} + 2^{n-2} for n2n \geq 2, multiply by xnx^n and sum: n=2anxn=n=2an1xn+n=2an2xn+n=22n2xn\sum_{n=2}^{\infty} a_n x^n = \sum_{n=2}^{\infty} a_{n-1} x^n + \sum_{n=2}^{\infty} a_{n-2} x^n + \sum_{n=2}^{\infty} 2^{n-2} x^n. This gives G(x)a0a1x=x(G(x)a0)+x2G(x)+x2n=02nxnG(x) - a_0 - a_1 x = x(G(x) - a_0) + x^2 G(x) + x^2 \sum_{n=0}^{\infty} 2^n x^n. Substituting a0=0,a1=1a_0 = 0, a_1 = 1: G(x)x=xG(x)+x2G(x)+x212xG(x) - x = xG(x) + x^2 G(x) + \frac{x^2}{1-2x}. Rearranging: G(x)(1xx2)=x+x212xG(x)(1-x-x^2) = x + \frac{x^2}{1-2x}. Therefore G(x)=x+x212x1xx2=x(12x)+x2(1xx2)(12x)G(x) = \frac{x + \frac{x^2}{1-2x}}{1-x-x^2} = \frac{x(1-2x) + x^2}{(1-x-x^2)(1-2x)}. Choice A has the right structure but incorrect numerator form. Choice C incorrectly separates the generating function additively. Choice D has wrong coefficients in the numerator.

Question 4

Consider the generating function G(x)=x2(1x)3G(x) = \frac{x^2}{(1-x)^3}. If this generating function is shifted to start from the constant term (i.e., we define G~(x)=x2G(x)\tilde{G}(x) = x^{-2}G(x)), what recurrence relation does the resulting sequence satisfy?

  1. an=3an13an2+an3a_n = 3a_{n-1} - 3a_{n-2} + a_{n-3} with initial conditions determined by the shift operation (correct answer)
  2. an=an1+2an2a_n = a_{n-1} + 2a_{n-2} with modified boundary conditions reflecting the polynomial adjustment
  3. an+2=3an+13an+an1a_{n+2} = 3a_{n+1} - 3a_n + a_{n-1} with the index shift incorporated into the relation
  4. an=3an12an2a_n = 3a_{n-1} - 2a_{n-2} with coefficients adjusted for the denominator factorization pattern
Explanation: Starting with G(x)=x2(1x)3G(x) = \frac{x^2}{(1-x)^3}, when we define G~(x)=x2G(x)=1(1x)3\tilde{G}(x) = x^{-2}G(x) = \frac{1}{(1-x)^3}, we get a generating function with denominator (1x)3(1-x)^3. The generating function 1(1x)3\frac{1}{(1-x)^3} corresponds to the sequence of triangular numbers (shifted): the coefficient of xnx^n is (n+22)\binom{n+2}{2}. For a generating function of the form P(x)(1x)k\frac{P(x)}{(1-x)^k}, the corresponding recurrence comes from the fact that (1x)k(1-x)^{-k} satisfies (1x)kanxn=polynomial(1-x)^k \sum a_n x^n = \text{polynomial}. For k=3k=3, we have (1x)3=13x+3x2x3(1-x)^3 = 1 - 3x + 3x^2 - x^3, so the recurrence relation is an3an1+3an2an3=0a_n - 3a_{n-1} + 3a_{n-2} - a_{n-3} = 0 for n3n \geq 3, which rearranges to an=3an13an2+an3a_n = 3a_{n-1} - 3a_{n-2} + a_{n-3}. Choice B has the wrong number of terms and coefficients. Choice C incorrectly shifts the indices in the recurrence. Choice D uses incorrect coefficients that don't match the (1x)3(1-x)^3 expansion.

Question 5

The generating function R(x)=11x11x3R(x) = \frac{1}{1-x} \cdot \frac{1}{1-x^3} counts the number of ways to make change using coins of denominations 1 and 3. What is the coefficient of x7x^7 in this generating function?

  1. 66, calculated through the convolution of individual denomination generating functions
  2. 88, counting all possible ways including different orderings of the same coins
  3. 55, obtained by systematic enumeration of valid coin combinations with repetition allowed
  4. 33, representing the distinct combinations of coins that sum to 7 (correct answer)
Explanation: When you encounter generating functions for coin change problems, you're looking at a powerful tool that encodes the number of ways to make each amount using specific denominations. The generating function R(x)=11x11x3R(x) = \frac{1}{1-x} \cdot \frac{1}{1-x^3} represents using unlimited coins of value 1 and 3, where the coefficient of xnx^n tells you how many ways you can make amount nn. To find the coefficient of x7x^7, you need to determine how many non-negative integer solutions exist for a+3b=7a + 3b = 7, where aa is the number of 1-cent coins and bb is the number of 3-cent coins. Systematically checking values: when b=0b = 0, a=7a = 7 (using seven 1's); when b=1b = 1, a=4a = 4 (using four 1's and one 3); when b=2b = 2, a=1a = 1 (using one 1 and two 3's). For b3b \geq 3, we'd need 3b9>73b \geq 9 > 7, so no solutions exist. This gives us exactly 3 distinct combinations. Answer A incorrectly suggests 6 through convolution calculations, likely from computational error. Answer B's result of 8 suggests counting ordered arrangements rather than combinations—but generating functions count combinations, not permutations. Answer C's value of 5 represents systematic enumeration but with an incorrect count, possibly double-counting or including invalid combinations. Remember: in coin change generating functions, coefficients count distinct combinations of coins, not arrangements. Always convert to the equation dini=target\sum d_i \cdot n_i = \text{target} and solve systematically for non-negative integers.

Question 6

Consider the generating function F(x)=215x+6x2F(x) = \frac{2}{1-5x+6x^2}. If this represents the generating function for a sequence {bn}\{b_n\} satisfying a homogeneous linear recurrence, what is the characteristic equation of that recurrence?

  1. r25r+6=0r^2 - 5r + 6 = 0 with initial conditions requiring specific determination (correct answer)
  2. r2+5r6=0r^2 + 5r - 6 = 0 with roots determining the exponential growth pattern
  3. 6r25r+1=06r^2 - 5r + 1 = 0 with coefficients derived from the denominator structure
  4. r26r+5=0r^2 - 6r + 5 = 0 with characteristic roots obtained by coefficient reversal
Explanation: For a generating function of the form P(x)1+c1x+c2x2\frac{P(x)}{1 + c_1 x + c_2 x^2}, the corresponding recurrence relation is an+c1an1+c2an2=0a_n + c_1 a_{n-1} + c_2 a_{n-2} = 0 for n2n \geq 2. Here we have F(x)=215x+6x2F(x) = \frac{2}{1 - 5x + 6x^2}, so c1=5c_1 = -5 and c2=6c_2 = 6. This gives the recurrence an5an1+6an2=0a_n - 5a_{n-1} + 6a_{n-2} = 0, or equivalently an=5an16an2a_n = 5a_{n-1} - 6a_{n-2}. The characteristic equation is r25r+6=0r^2 - 5r + 6 = 0. Choice B incorrectly flips signs. Choice C incorrectly reverses the coefficient order. Choice D swaps the middle and last coefficients.

Question 7

Consider the generating function S(x)=exp(x1x)S(x) = \exp\left(\frac{x}{1-x}\right). If S(x)=n=0snxnS(x) = \sum_{n=0}^{\infty} s_n x^n, what can be said about the growth rate of the coefficients sns_n as nn \to \infty?

  1. The coefficients grow exponentially, with snCrns_n \sim C \cdot r^n for some constants CC and r>1r > 1
  2. The coefficients grow polynomially, with sn=O(nk)s_n = O(n^k) for some fixed positive integer kk
  3. The coefficients grow super-exponentially, faster than any exponential function but slower than factorial (correct answer)
  4. The coefficients grow factorially, with snn!Cns_n \sim \frac{n!}{C^n} for some constant C>1C > 1
Explanation: When analyzing the growth rate of coefficients in a generating function, you need to examine the singularities and behavior of the function to determine how quickly the coefficients grow. For S(x)=exp(x1x)S(x) = \exp\left(\frac{x}{1-x}\right), the key insight is examining what happens near the dominant singularity at x=1x = 1. As x1x \to 1^-, the expression x1x\frac{x}{1-x} grows like 11x\frac{1}{1-x}, which approaches infinity. This means S(x)S(x) has essential singularity behavior near x=1x = 1, growing faster than any polynomial power of 11x\frac{1}{1-x}. Using singularity analysis techniques, when a generating function has an essential singularity of the form exp(11x)\exp\left(\frac{1}{1-x}\right) near x=1x = 1, the coefficients grow super-exponentially. Specifically, they grow faster than rnr^n for any fixed rr, but slower than n!n!. This places the growth in the super-exponential category, making (C) correct. (A) is wrong because exponential growth CrnC \cdot r^n occurs when you have simple pole singularities, not essential singularities. (B) is incorrect since polynomial growth O(nk)O(n^k) corresponds to functions with algebraic singularities, not the exponential-type singularity we have here. (D) is wrong because factorial growth n!Cn\sim \frac{n!}{C^n} would require a more severe singularity structure. Strategy tip: When you see generating functions with exponential expressions involving 11x\frac{1}{1-x}, immediately think super-exponential growth. The essential singularity created by the exponential function is the telltale sign that coefficients will grow faster than any exponential but slower than factorial.

Question 8

A sequence {dn}\{d_n\} satisfies d0=2d_0 = 2, d1=1d_1 = 1, and dn=2dn1+3dn2d_n = 2d_{n-1} + 3d_{n-2} for n2n \geq 2. If we define f(x)=n=0dnxn+1f(x) = \sum_{n=0}^{\infty} d_n x^{n+1}, what is the closed form of f(x)f(x)?

  1. 2x+x212x3x2\frac{2x + x^2}{1 - 2x - 3x^2}, obtained by applying the standard generating function transformation
  2. x(23x)12x3x2\frac{x(2 - 3x)}{1 - 2x - 3x^2}, derived through careful manipulation of the shifted series (correct answer)
  3. 2x+x21+2x+3x2\frac{2x + x^2}{1 + 2x + 3x^2}, found by incorporating the sign changes in the recurrence
  4. x(2+x)12x3x2\frac{x(2 + x)}{1 - 2x - 3x^2}, calculated using the index shift and initial condition adjustments
Explanation: We have f(x)=n=0dnxn+1=xn=0dnxn=xD(x)f(x) = \sum_{n=0}^{\infty} d_n x^{n+1} = x \sum_{n=0}^{\infty} d_n x^n = x \cdot D(x), where D(x)D(x) is the standard generating function for {dn}\{d_n\}. From the recurrence dn=2dn1+3dn2d_n = 2d_{n-1} + 3d_{n-2}, we get D(x)=d0+(d12d0)x12x3x2=2+(14)x12x3x2=23x12x3x2D(x) = \frac{d_0 + (d_1 - 2d_0)x}{1 - 2x - 3x^2} = \frac{2 + (1 - 4)x}{1 - 2x - 3x^2} = \frac{2 - 3x}{1 - 2x - 3x^2}. Therefore, f(x)=xD(x)=x(23x)12x3x2f(x) = x \cdot D(x) = \frac{x(2 - 3x)}{1 - 2x - 3x^2}. Choice A incorrectly computes the numerator after the shift. Choice C has the wrong sign in the denominator. Choice D has an incorrect numerator that doesn't account for the initial conditions properly.

Question 9

The generating functions F(x)=n=0fnxn=2x1x2F(x) = \sum_{n=0}^{\infty} f_n x^n = \frac{2x}{1-x^2} and G(x)=n=0gnxn=11x2G(x) = \sum_{n=0}^{\infty} g_n x^n = \frac{1}{1-x^2} are related to sequences with special properties. What is the relationship between the sequences {fn}\{f_n\} and {gn}\{g_n\}?

  1. fn=2gnf_n = 2g_n for all even nn and fn=0f_n = 0 for all odd nn
  2. fn=2gnf_n = 2g_n for all odd nn and fn=0f_n = 0 for all even nn
  3. fn=gn1+gn+1f_n = g_{n-1} + g_{n+1} for all n1n \geq 1
  4. fn=2gn1f_n = 2g_{n-1} for all n1n \geq 1 and f0=0f_0 = 0 (correct answer)
Explanation: When you encounter generating functions, you're looking at a powerful tool that encodes sequence information in polynomial form. The key insight is that algebraic relationships between generating functions translate directly to relationships between their coefficient sequences. To find the relationship between {fn}\{f_n\} and {gn}\{g_n\}, let's first expand these generating functions. For G(x)=11x2G(x) = \frac{1}{1-x^2}, we can use the geometric series formula: G(x)=1+x2+x4+x6+G(x) = 1 + x^2 + x^4 + x^6 + \cdots. This means g0=g2=g4==1g_0 = g_2 = g_4 = \cdots = 1 and g1=g3=g5==0g_1 = g_3 = g_5 = \cdots = 0. For F(x)=2x1x2=2x11x2=2xG(x)F(x) = \frac{2x}{1-x^2} = 2x \cdot \frac{1}{1-x^2} = 2x \cdot G(x), we get F(x)=2x(1+x2+x4+)=2x+2x3+2x5+F(x) = 2x(1 + x^2 + x^4 + \cdots) = 2x + 2x^3 + 2x^5 + \cdots. Therefore, f0=0f_0 = 0, f1=2f_1 = 2, f2=0f_2 = 0, f3=2f_3 = 2, and so on. Notice that f1=2=2g0f_1 = 2 = 2g_0, f3=2=2g2f_3 = 2 = 2g_2, f5=2=2g4f_5 = 2 = 2g_4. In general, fn=2gn1f_n = 2g_{n-1} for n1n \geq 1, and f0=0f_0 = 0. This confirms answer D. Looking at the wrong answers: A incorrectly states the relationship holds for even nn when it actually holds for odd nn. B has the right parity but wrong formula - it's not fn=2gnf_n = 2g_n. C suggests a recurrence relation that doesn't match our coefficient analysis. Study tip: When comparing generating functions, multiply or factor them algebraically first, then extract coefficients systematically. The algebraic manipulation often reveals the sequence relationship immediately.

Question 10

Consider the recurrence relation an=3an12an2a_n = 3a_{n-1} - 2a_{n-2} for n2n \geq 2 with initial conditions a0=1a_0 = 1 and a1=4a_1 = 4. If G(x)=n=0anxnG(x) = \sum_{n=0}^{\infty} a_n x^n is the generating function for this sequence, what is the correct form of G(x)G(x) after applying the recurrence relation method?

  1. G(x)=1+x13x+2x2G(x) = \frac{1 + x}{1 - 3x + 2x^2} (correct answer)
  2. G(x)=1x1+3x2x2G(x) = \frac{1 - x}{1 + 3x - 2x^2}
  3. G(x)=1+x1+3x2x2G(x) = \frac{1 + x}{1 + 3x - 2x^2}
  4. G(x)=1x13x+2x2G(x) = \frac{1 - x}{1 - 3x + 2x^2}
Explanation: Starting with G(x) = a₀ + a₁x + a₂x² + ..., we multiply the recurrence by xⁿ and sum. This gives G(x) - a₀ - a₁x = 3x(G(x) - a₀) - 2x²G(x). Substituting a₀ = 1 and a₁ = 4: G(x) - 1 - 4x = 3x(G(x) - 1) - 2x²G(x). Expanding: G(x) - 1 - 4x = 3xG(x) - 3x - 2x²G(x). Collecting terms: G(x)(1 - 3x + 2x²) = 1 + x. Therefore G(x) = (1 + x)/(1 - 3x + 2x²). Choice B has wrong signs in denominator, choice C has wrong sign on 3x term, choice D has wrong numerator.

Question 11

A sequence satisfies an=an1+an2a_n = a_{n-1} + a_{n-2} for n2n \geq 2 with a0=0a_0 = 0 and a1=1a_1 = 1. If we want to find the coefficient of x5x^5 in the generating function G(x)G(x), which intermediate step correctly represents the algebraic manipulation needed?

  1. G(x)=x+xG(x)+x2G(x)G(x) = x + x \cdot G(x) + x^2 \cdot G(x)
  2. G(x)=x+G(x)x+G(x)x2G(x) = x + G(x) \cdot x + G(x) \cdot x^2
  3. (1xx2)G(x)=x(1 - x - x^2) \cdot G(x) = x (correct answer)
  4. (1+x+x2)G(x)=x(1 + x + x^2) \cdot G(x) = x
Explanation: From the recurrence aₙ = aₙ₋₁ + aₙ₋₂, multiplying by xⁿ and summing gives ∑aₙxⁿ = ∑aₙ₋₁xⁿ + ∑aₙ₋₂xⁿ. This becomes G(x) - a₀ - a₁x = x(G(x) - a₀) + x²G(x). With a₀ = 0, a₁ = 1: G(x) - x = xG(x) + x²G(x). Rearranging: G(x) - xG(x) - x²G(x) = x, so (1 - x - x²)G(x) = x. Choice A incorrectly places x outside, choice B is the same error, choice D has wrong signs in the factor.

Question 12

A sequence {cn}\{c_n\} has generating function C(x)=1x13x+2x2C(x) = \frac{1-x}{1-3x+2x^2}. If we factor the denominator as (1r1x)(1r2x)(1-r_1 x)(1-r_2 x) where r1>r2>0r_1 > r_2 > 0, what can we conclude about the long-term behavior of cnc_n as nn \to \infty?

  1. cnc_n approaches a constant value as nn increases
  2. cnc_n alternates between positive and negative values indefinitely
  3. cnc_n grows like r1nr_1^n with the ratio cn+1/cnc_{n+1}/c_n approaching r1r_1 (correct answer)
  4. cnc_n decreases exponentially and approaches zero as nn increases
Explanation: When you encounter a generating function problem asking about long-term behavior, you need to analyze the poles (roots of the denominator) to understand how the sequence behaves asymptotically. First, let's factor the denominator 13x+2x21-3x+2x^2. Setting it equal to zero: 2x23x+1=02x^2-3x+1=0, which factors as (2x1)(x1)=0(2x-1)(x-1)=0. So x=12x = \frac{1}{2} and x=1x = 1. This means the denominator factors as (12x)(1x)=(1r1x)(1r2x)(1-2x)(1-x) = (1-r_1x)(1-r_2x) where r1=2r_1 = 2 and r2=1r_2 = 1. Using partial fraction decomposition, we can write C(x)=A12x+B1xC(x) = \frac{A}{1-2x} + \frac{B}{1-x} for some constants AA and BB. Each term 11rx\frac{1}{1-rx} generates the sequence rnr^n, so cn=A2n+B1n=A2n+Bc_n = A \cdot 2^n + B \cdot 1^n = A \cdot 2^n + B. Since 2n2^n grows much faster than the constant BB, the dominant term is A2nA \cdot 2^n. Therefore, cnc_n grows like 2n=r1n2^n = r_1^n, and cn+1cn\frac{c_{n+1}}{c_n} approaches r1=2r_1 = 2 as nn \to \infty. This confirms answer (C). (A) is wrong because 2n2^n grows exponentially, not toward a constant. (B) is incorrect because both roots are positive, so no alternating behavior occurs. (D) is false because the sequence grows rather than decreases—the dominant root r1=2>1r_1 = 2 > 1 causes exponential growth. Study tip: The largest root in the denominator always determines long-term behavior. If the largest root r>1r > 1, expect exponential growth; if r<1r < 1, expect decay to zero.

Question 13

The generating function H(x)=1+2x(1x)(13x)H(x) = \frac{1 + 2x}{(1-x)(1-3x)} can be expanded using partial fractions. If H(x)=A1x+B13xH(x) = \frac{A}{1-x} + \frac{B}{1-3x}, what sequence property can be directly inferred about the coefficients hnh_n in H(x)=n=0hnxnH(x) = \sum_{n=0}^{\infty} h_n x^n?

  1. hnh_n grows exponentially with ratio between consecutive terms approaching 3
  2. hn=A1n+B3nh_n = A \cdot 1^n + B \cdot 3^n for all n0n \geq 0
  3. hnh_n satisfies the recurrence hn=4hn13hn2h_n = 4h_{n-1} - 3h_{n-2}
  4. hn=A+B3nh_n = A + B \cdot 3^n for all n0n \geq 0 (correct answer)
Explanation: When you see a generating function with partial fractions, you're looking at a powerful tool that directly reveals the form of the sequence coefficients. Each term in the partial fraction decomposition corresponds to a specific pattern in the resulting sequence. First, let's find the values of A and B. Using partial fractions on H(x)=1+2x(1x)(13x)=A1x+B13xH(x) = \frac{1 + 2x}{(1-x)(1-3x)} = \frac{A}{1-x} + \frac{B}{1-3x}, we get 1+2x=A(13x)+B(1x)1 + 2x = A(1-3x) + B(1-x). Setting x=1x = 1 gives 3=2A3 = -2A, so A=32A = -\frac{3}{2}. Setting x=13x = \frac{1}{3} gives 53=2B3\frac{5}{3} = \frac{2B}{3}, so B=52B = \frac{5}{2}. The key insight is that 11x=n=0xn\frac{1}{1-x} = \sum_{n=0}^{\infty} x^n and 113x=n=03nxn\frac{1}{1-3x} = \sum_{n=0}^{\infty} 3^n x^n. Therefore, hn=A1n+B3n=A+B3nh_n = A \cdot 1^n + B \cdot 3^n = A + B \cdot 3^n. Choice A incorrectly focuses on growth rates rather than the explicit formula. Choice B uses the correct general form but incorrectly includes the 1n1^n term explicitly, when 1n=11^n = 1 simplifies to just a constant. Choice C gives a recurrence relation, which while mathematically equivalent, isn't what we can "directly infer" from the partial fraction form—that requires additional work. Choice D correctly recognizes that the partial fraction decomposition immediately gives us hn=A+B3nh_n = A + B \cdot 3^n. Remember: partial fractions in generating functions directly translate to explicit formulas for sequence terms. Each fraction C1rx\frac{C}{1-rx} contributes CrnC \cdot r^n to the coefficient formula.

Question 14

A sequence {bn}\{b_n\} satisfies bn=5bn16bn2b_n = 5b_{n-1} - 6b_{n-2} for n2n \geq 2. If the generating function B(x)=n=0bnxnB(x) = \sum_{n=0}^{\infty} b_n x^n has the form P(x)15x+6x2\frac{P(x)}{1-5x+6x^2}, and we know that b2=7b_2 = 7, b3=23b_3 = 23, what must be the degree of polynomial P(x)P(x)?

  1. P(x)P(x) has degree 0 (constant polynomial)
  2. P(x)P(x) has degree 1 (linear polynomial) (correct answer)
  3. P(x)P(x) has degree 2 (quadratic polynomial)
  4. P(x)P(x) has degree 3 (cubic polynomial)
Explanation: For a second-order recurrence aₙ = caₙ₋₁ + daₙ₋₂, the generating function has the form G(x) = (a₀ + (a₁ - ca₀)x)/(1 - cx - dx²). Here c = 5, d = -6, so the denominator is 1 - 5x + 6x². The numerator P(x) = b₀ + (b₁ - 5b₀)x. Since we need exactly two initial conditions to determine a second-order recurrence completely, and we're given b₂ and b₃, we can work backwards to find b₀ and b₁. This gives P(x) as a linear polynomial (degree 1). Choice A would only work if b₁ = 5b₀, choice C would suggest a third-order recurrence, choice D is impossible for a second-order recurrence.

Question 15

Two sequences {un}\{u_n\} and {vn}\{v_n\} have generating functions U(x)=112xU(x) = \frac{1}{1-2x} and V(x)=x1xx2V(x) = \frac{x}{1-x-x^2} respectively. What is the coefficient of x4x^4 in the generating function for the sequence {wn}\{w_n\} where wn=un+vnw_n = u_n + v_n?

  1. 1616
  2. 1919 (correct answer)
  3. 2121
  4. 2323
Explanation: W(x) = U(x) + V(x) = 1/(1-2x) + x/(1-x-x²). From U(x) = ∑2ⁿxⁿ, we get u₄ = 2⁴ = 16. For V(x) = x/(1-x-x²), this generates the Fibonacci sequence shifted: v₀ = 0, v₁ = 1, v₂ = 1, v₃ = 2, v₄ = 3 (since V(x) = x·F(x) where F(x) is the standard Fibonacci generating function). Therefore w₄ = u₄ + v₄ = 16 + 3 = 19. Choice A gives only u₄, choice C and D represent common arithmetic errors in computing Fibonacci terms or powers of 2.

Question 16

Consider the generating function G(x)=x21xx2x3G(x) = \frac{x^2}{1 - x - x^2 - x^3}. This function represents a sequence where each term depends on how many previous terms?

  1. Each term depends on the previous 2 terms only
  2. Each term depends on the previous 3 terms only (correct answer)
  3. Each term depends on the previous 2 or 3 terms depending on the index
  4. Each term depends on all previous terms in the sequence
Explanation: The denominator 1 - x - x² - x³ indicates a third-order recurrence relation. From G(x) = x²/(1 - x - x² - x³), we can derive that the sequence satisfies aₙ = aₙ₋₁ + aₙ₋₂ + aₙ₋₃ for n ≥ 3, after accounting for initial conditions determined by the numerator x². This is a third-order linear recurrence, meaning each term depends on exactly the previous 3 terms. Choice A would correspond to denominator 1 - ax - bx², choice C suggests a variable-order recurrence (which this is not), choice D would require an infinite sum in the denominator.

Question 17

The generating function G(x)=214x+3x2G(x) = \frac{2}{1 - 4x + 3x^2} corresponds to a sequence that satisfies a second-order linear recurrence. What are the characteristic roots of this recurrence relation?

  1. r1=1,r2=3r_1 = 1, r_2 = 3 (correct answer)
  2. r1=3,r2=1r_1 = 3, r_2 = 1
  3. r1=4,r2=3r_1 = 4, r_2 = -3
  4. r1=1,r2=3r_1 = -1, r_2 = -3
Explanation: The generating function G(x) = 2/(1 - 4x + 3x²) corresponds to the recurrence aₙ = 4aₙ₋₁ - 3aₙ₋₂. The characteristic equation is r² - 4r + 3 = 0, which factors as (r - 1)(r - 3) = 0, giving roots r₁ = 1 and r₂ = 3. Choice B gives the same roots in different order (which is equivalent), choice C incorrectly uses coefficients from the denominator directly, choice D has wrong signs.