Using Generating Functions to solve Recurrence Relations

Find the general expression for c n c_n , where

c n 3 c n 1 = 2 5 n . c_n - 3 c_{n-1} = 2 \cdot 5^n .

c n = A × 5 n + 3 n c_n = A \times 5^n + 3^{n} c n = A × 5 n + 3 n + 1 c_n = A \times 5^n + 3^{n+1} c n = A × 3 n + 5 n c_n = A \times 3^n + 5^{n} c n = A × 3 n + 5 n + 1 c_n = A \times 3^n + 5^{n+1}

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

2 solutions

Discussions for this problem are now closed

Calvin Lin Staff
Jan 28, 2015

Consider the generating function

c ( x ) = c 0 + c 1 x + c 2 x 2 + c(x) = c_0 + c_1 x + c_2 x^2 + \ldots

Then, c ( x ) 3 x c ( x ) = c 0 + 2 5 x + 2 5 2 x 2 + = C + 2 1 5 x c(x) - 3x c(x) = c_0 + 2 \cdot 5 x + 2 \cdot 5^2 x^2 + \ldots = C + \frac{2}{1-5x} .

Hence, c ( x ) = C + 2 1 5 x 1 3 x = C 3 1 3 x + 5 1 5 x c(x) = \frac{ C + \frac{2}{1-5x}}{1-3x} = \frac{C-3}{1-3x} + \frac{5}{1-5x}

Hence, the general expression for c n c_n is

c n = A × 3 n + 5 n + 1 . c_n = A \times 3^n + 5^{n+1} .

I actually managed to do it brute-force way, but I see it's time for me to learn new ways of the force.

Ilya Andreev - 6 years, 4 months ago

Indeed. I created this problem to illustrate the power of using generating functions to solve recurrence relations :) Click on the Skill (top right of solution discussions) to learn more!

You can also solve this "normally", using the characteristic equation and the specific solution approach.

Calvin Lin Staff - 6 years, 4 months ago

what is A in this problem

Trevor Arashiro - 6 years, 4 months ago

There are a family of solutions to a recurrence relation with no initial conditions (boundary conditions). Replacing A A by a specific constant, would give you a specific solution set.

Calvin Lin Staff - 6 years, 4 months ago

Another name given for the Transform I heard. Could you teach me the concept of the transform or the method in shortest conceptual way?

Lu Chee Ket - 6 years, 4 months ago

In the top right corner, where it says skill, click on the skill name and you will be linked to the wiki directly :)

Calvin Lin Staff - 6 years, 4 months ago
Lam Nguyen
Jan 31, 2015

Denote y n = c n 5 n + 1 y_n=c_n-5^n+1 and so, y n + 1 = 3 y n y_n+1=3y_n .

Recurrence relations are typically classified under combinatorics. Sometimes they are classified under algebra too, and it often depends on the scenario.

Calvin Lin Staff - 6 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...