You are on page 1of 4

Generating Functions

3.1 Introduction
The beauty of mathematics is revealed most often through those theories whose simplicity and power
provide an intuitive understanding of a wide range of problems. The theory of generating functions is
one outstanding example. It is based on simple polynomial arithmetic; nonetheless; it provides a unified
approach to questions in many different fields. In this chapter, we examine simple generating functions
and their use in combinatorics.
The general integer equation problem asks for the number of integer solutions to X
1
+ X
2
+ + X
n
= r
with constraints on the Xi, and in the last chapter we saw that these problems have a wide variety of
uses. One way to solve such a problems is to list all the solutions; that is, we perform the following three
steps: we write down all possible assignment of values to the variables; we find the sum for each
assignment; and we group together those assignments yielding the same sum.

Example 3.1.1
Problem Determine the number of integer solutions to
X
1
+X
2
= r, with 0 X
1
1 and 1 X
2
2
Solution (by explicit enumeration)
X
1
X
2
Sum
0 1 1
0 2 2
1 1 2
1 2 3

Thus there is a single way to obtain a sum of one, two ways to obtain a sum of two, and one way to
obtain a sum of three.
Clearly, this approach will be tedious for all but the simplest problems. What we need is an easier
technique that considers all assignments and collects and counts those assignments giving the same
sum. As the next example shows, this is exactly what is done in polynomial multiplication.
Example 3.1.2
Consider the following trivial problem.
Problem. Multiply (x
0
+ x
1
) by (x
1
+ x
2
).
Solution. Polynomial multiplication involves the following three basic steps.
1. We use the distributive laws to write down the sum of all possible products of exactly one term
from each factor.
(x
0
+ x
1
) (x
1
+ x
2
) = x
0
(x
1
+ x
2
) + x
1
(x
1
+ x
2
) = x
0
x
1
+ x
0
x
2
+ x
1
x
1
+ x
1
x
2
2. We add together the exponents in each product.
= x
1
+ x
2
+ x
2
+ x
3
3. We collect terms with the same exponents; that is, the coefficient of x
r
is the number of ways
the exponents yield a sum of r.
= x
1
+ (1 + 1) x
2
+ x
3
= x
1
+ 2x
2
+ x
3

But these are the same three steps performed in Example 3.1.1. the exponents in the first factor
correspond to the possible values of X2. Writing all possible products of exactly one term of
each factor corresponds to considering all possible assignments of values to X1 and X2. Adding
the exponents corresponds to considering the sum of the values of X1 and X2, and collecting
terms with the same exponent corresponds to counting the number of ways X1 and X2 produce
a given sum. There is another way to view this. The operation of addition within each factor
corresponds to the rule of sum; that is, assigning a value to an individual variable is divided

Exercises
1. Find the generating function for the sequence 2. 2, 2, . . .
2. What is the generating functionfor the sequence 2
0
, 2
1
, 2
2
, . . .
3. What is the coefficient of x
5
in (1 + x + x
2
+ . . . )(1 + x + x
2
+ . . . )?
4. Verify: 1 = (1 x)(1 + x + x
2
+ . . . ).
5. Give the generating function for the following.
a. The number of r-digit binary sequences
b. The number of r-multisets from {x
1
+ x
2
+ + x
n
}.
c. The number of r-multisets from {x
1
+ x
2
+ + x
n
} in which each element appears at least
once

membangkitkan Fungsi
3.1 Pendahuluan
Keindahan matematika yang paling sering terungkap melalui teori-teori yang kesederhanaan dan
kekuasaan memberikan pemahaman intuitif dari berbagai masalah . Teori menghasilkan fungsi adalah
salah satu contoh yang luar biasa . Hal ini didasarkan pada aritmatika polinomial sederhana, tetap ,
melainkan menyediakan pendekatan terpadu untuk pertanyaan di berbagai bidang . Dalam bab ini , kita
akan mengkaji fungsi pembangkit sederhana dan penggunaannya dalam kombinatorika .
Umum bilangan bulat masalah persamaan meminta jumlah solusi integer untuk X1 + X2 + ... + Xn = r
dengan kendala pada Xi , dan dalam bab terakhir kita melihat bahwa masalah ini memiliki berbagai
kegunaan . Salah satu cara untuk memecahkan masalah tersebut adalah daftar semua solusi , yaitu, kita
melakukan tiga langkah berikut : kita menuliskan semua kemungkinan penugasan nilai ke variabel, kita
menemukan jumlah untuk setiap tugas , dan kami bersama-sama kelompok orang- tugas menghasilkan
jumlah yang sama .

contoh 3.1.1
Soal Tentukan jumlah solusi integer untuk
X1 + X2 = r , dengan 0 X1 1 dan 1 X2 2
Solusi (dengan pencacahan eksplisit )
X1 X2 Sum
0 1 1
0 2 2
1 1 2
1 2 3

Jadi ada cara tunggal untuk mendapatkan sejumlah satu , dua cara untuk mendapatkan jumlah dari dua ,
dan salah satu cara untuk mendapatkan jumlah dari tiga .
Jelas , pendekatan ini akan membosankan bagi semua tapi masalah sederhana . Apa yang kita butuhkan
adalah teknik mudah yang menganggap semua tugas dan mengumpulkan dan menghitung mereka tugas
memberikan jumlah yang sama . Sebagai contoh berikut menunjukkan , ini adalah persis apa yang
dilakukan dalam perkalian polinomial .
contoh 3.1.2
Pertimbangkan berikut masalah sepele .
Problem. Multiply ( x0 + x1 ) oleh ( x1 + x2 ) .
Solusi . Perkalian polinomial melibatkan tiga langkah dasar berikut .
1 . Kami menggunakan hukum distributif untuk menuliskan jumlah semua produk yang mungkin tepat
satu istilah dari masing-masing faktor .
( x0 + x1 ) ( x1 + x2 ) = x0 ( x1 + x2 ) + x1 ( x1 + x2 ) = x0 x1 + x2 + x0 x1 x1 x1 + x2
2 . Kami menambahkan bersama eksponen dalam setiap produk .
= X1 + x2 + x2 + x3
3 . Kami mengumpulkan istilah dengan eksponen yang sama , yaitu, koefisien xr adalah sejumlah cara
eksponen menghasilkan sejumlah r .
= X1 + ( 1 + 1 ) x2 + x3 = x1 + 2x2 + x3

Tapi ini sama tiga langkah yang dilakukan dalam Contoh 3.1.1 . eksponen dalam faktor pertama sesuai
dengan nilai yang mungkin dari X2 . Menulis semua produk yang mungkin tepat satu jangka waktu
masing-masing faktor sesuai dengan mempertimbangkan semua kemungkinan penugasan nilai untuk X1
dan X2 . Menambahkan eksponen sesuai dengan mempertimbangkan jumlah dari nilai-nilai X1 dan X2 ,
dan mengumpulkan istilah dengan eksponen yang sama sesuai dengan menghitung jumlah cara X1 dan
X2 menghasilkan jumlah tertentu . Ada cara lain untuk melihat ini. Operasi penjumlahan dalam setiap
faktor sesuai dengan aturan sum , yaitu , menempatkan nilai ke variabel individu dibagi

latihan
1 . Cari fungsi pembangkit untuk urutan 2 . 2 , 2 , . . .
2 . Apa pembangkit functionfor urutan 20 , 21 , 22 , . . .
3 . Apa koefisien x5 di ( 1 + x + x2 + ... ) ( 1 + x + x2 + ... ) ?
4 . Verifikasi : 1 = ( 1 - x ) ( 1 + x + x2 + ... ) .
5 . Berikan fungsi pembangkit untuk berikut.
a . Jumlah r - digit urutan biner
b . Jumlah r - multisets dari { x1 + x2 + ... + xn } .
c . Jumlah r - multisets dari { x1 + x2 + ... + xn } di mana setiap elemen muncul setidaknya sekali

You might also like