The Generating Function for the Sequence of Cubes

Problem: Find the generating function for the sequence of cubes:

0, 1, 8, ..., n3, ....

Solution:

Using the formula

(1+x)/(1 -x)3 = 1 + 22x + 32x2 + ...+ n2xn-1 +...

we multiply by x:

x(1+x)/(1 -x)3 = x + 22x2 + 32x3 + ...+ n2xn +...

(x2 + x)(1 -x)-3 = x + 22x2 + 32x3 + ...+ n2xn +...
 

Now we differentiate, noting that the right-hand side of the equality will be

1 + 23x + 33x2 + ...+ n3xn-1 +...

and the left-hand side will be

(2x + 1)(1 -x)-3 + 3(x2 + x)(1 -x)-4

= (2x + 1)(1-x)(1 -x)-4 + 3(x2 + x)(1 -x)-4

= (2x + 1 - 2x2 - x + 3x2 + 3x)(1 -x)-4 = (x2 + 4x + 1)(1 -x)-4 = 1 + 23x + 33x2 + ...+ n3xn-1 +...

Now we multiply both sides by x and get x(x2 + 4x + 1)(1 -x)-4 = x + 23x2 + 33x3 + ...+ n3xn +...

Thus, the generating function for the sequence of cubes is x(x2 + 4x + 1)(1 -x)-4

Visit The Rational Argumentator to see more mathematics problems and solutions, as well as a wide variety of political, philosophical, economic, and cultural commentary.