Professional Documents
Culture Documents
Generating Functions: Olympiad Corner
Generating Functions: Olympiad Corner
Generating Functions: Olympiad Corner
January-February, 2009
Olympiad Corner
The following were the problems of
the Final Round (Part 2) of the
Austrian Mathematical Olympiad
2008.
First Day: June 6th, 2008
Problem 1. Prove the inequality
a1 ab1 bc1 c
1
3
Generating Functions
Kin Yin Li
In some combinatorial problems, we
may be asked to determine a certain
sequence of numbers a0, a1, a2, a3, .
We can associate such a sequence with
the following series
f(x) = a0 + a1x + a2x2 + a3x3 + .
This is called the generating function of
the sequence. Often the geometric series
1 /(1 t ) = 1 + t + t 2 + t 3 + L for |t| < 1
and its square
1 /(1 t ) 2 = (1 + t + t 2 + t 3 + L) 2
= 1 + 2t + 3t 2 + 4t 3 + 5t 4 + L
x x
r
r =0
2s
s=0
= (2 x) n x n(2 x) n 1
n =1
= (2 n2
n 1
r =0 s=0
n=0
x x
r
r =0
2s
s =0
1
1
1
=
2
1 x 1 x
(1 x) 2 (1 x)
1 1
1
=
+
2 (1 x) 2 1 x 2
= ([n / 2] + 1) x n .
t n = t c0 t 2 c1 Lt 2 ck .
= 1/(12x)x/(12x)2
Therefore, an = [n/2] + 1.
n=0
n=0
= xr+2s = an xn = f (x).
) xn.
n=0
Therefore, an = 2n n 2n1.
Example 2. Find the number an of ways
n dollars can be changed into 1 or 2
dollar coins (regardless of order). For
example, when n = 3, there are 2 ways,
namely three 1 dollar coins or one 1
dollar coin and one 2 dollar coin.
Solution. Let f(x) = a0 + a1x + a2x2 + .
To study this infinite series, let |x| < 1.
f (t ) = ant n = (1 + t 2 + t 2 + t 32 ).
n =0
i +1
i =0
L
1 t 1 t 2 1 t 4 1 t8
1
1
.
=
1 t 1 t 2
f (t ) =
Page 2
x a 0 + x a1 + x a 2 + x a3 + L.
Example 4. (1998 IMO Shortlisted
Problem) Let a0, a1, a2, be an
increasing sequence of nonnegative
integers such that every nonnegative
integer can be expressed uniquely in
the form ai+2aj+4ak, where i, j and k
are not necessarily distinct. Determine
a1998.
Solution. For |x| < 1, let f ( x) =
ai
i =0
Replacing x by x , we get
z = z
n
a1 + nd1
n=1
n =1
n=1
+ z a2 +nd2 + L + z ak +ndk .
z
z a1
z a2
z ak
.
=
+
+L+
d1
d2
1 z 1 z
1 z
1 zdk
divisible by p.
Solution. Consider the polynomial
Fa(x) = (1+ax)(1+a2x)(1+a3x)(1+a2px)
Fa ( x) = 1 + cn ,k a n x k .
k =1 n =1
2p
1 + j + 2 j + L + ( p 1) j =
1
f ( x 2 ) f ( x 4 ) f ( x8 ) =
.
1 x2
1
.
f ( x) f ( x ) f ( x ) = x =
1 x
n=0
4
(**)
n =1
1
=0
1 j
pj
c
n =1
n, p
C=
1 p 1
cn, p nj .
p j =0 n=1
Fa(x) is
(*)
p 1
in 1 F j ( x), which equals
p j =0
1 p 1
(1 + j x)(1 + 2 j x)L(1 + 2 pj x).
p j =0
For j = 0, the term is (1+x)2p. For 1 j
p1, using (**) with = j and t = x,
we see the j-th term is (1 + x p ) 2 .
Using these, we have
1 p1
1
F j (x) = p[(1+ x)2 p + ( p 1)(1+ x p )2 ].
p j=0
p
1
p
2 p
.
+ 2( p 1)
p
f ( x, y ) = ai , j x i y j
i = 0 j =1
x = e 2 i / p and y = e 2 i / q .
Then both sums become 0. If the desired
tiling is possible, then the total sum of
all terms in the ab rectangle would be
a
0 = xi y j = xy
i =1 j =1
(1 x a )(1 y b )
.
(1 x)(1 y )
Page 3
Problem Corner
We welcome readers to submit their
solutions to the problems posed below
for publication consideration. The
solutions should be preceded by the
solvers name, home (or email) address
and school affiliation. Please send
submissions to Dr. Kin Y. Li,
Department of Mathematics, The Hong
Kong University of Science &
Technology, Clear Water Bay, Kowloon,
Hong Kong. The deadline for sending
solutions is March 7, 2009.
Problem 316. For every positive
integer n > 6, prove that in every
n-sided convex polygon A1A2An,
there exist i j such that
| cos Ai cos A j |<
1
.
2(n 6)
*****************
Solutions
****************
Problem 311. Let S = {1,2,,2008}.
Prove that there exists a function
f : S {red, white, blue, green} such
that there does not exist a 10-term
arithmetic progression a1,a2,,a10 in S
( 200810 )
223
4 ( 2008 9d )
d =1
= 41999223000
functions f :S{red, white, blue, green}
such that there exists a 10-term arithmetic
progression a1,a2,,a10 in S satisfying
f(a1) = f(a2) = = f(a10), while there are
more (namely 42008) functions from S to
{red, white, blue, green}. So the desired
function exists.
Solution 2. G.R.A. 20 Problem Solving
Group (Roma, Italy).
n 1
n 1
+ 2
f ( n) =
128 mod 2
8 mod 2
avoids any 9-term arithmetic progression
having the same value (where kmod 2 is 0 if
k is even and 1 if k is odd). The range of f
is ((0818)8(2838)8)8, where for any string x,
x8 denotes the string obtained by putting
eight copies of the string x one after
another in a row and f(n) is the n-th digit in
the specified string.
Commended solvers: LKL Problem
Solving Group (Madam Lau Kam Lung
Secondary School of Miu Fat Buddhist
Monastery).
Problem 312. Let x, y, z > 1. Prove that
x4
y4
z4
+
+
48.
( y 1) 2 ( z 1) 2 ( x 1) 2
x4
y4
z4
+
+
2
2
( y 1)
( z 1)
( x 1) 2
=
(a + 1) 4 (b + 1) 4 (c + 1) 4
+
+
b2
c2
a2
1/ 3
(a + 1) 4 (b + 1) 4 (c + 1) 4
3
a 2b 2 c 2
1/ 3
(2 a ) 4 (2 b ) 4 (2 c ) 4
a 2b 2 c 2
= 48.
F
A
M E
N
D
O
C
Page 4
BE BM / cos ABE
=
CF CN / cos FCA
AB / sin ABC AB 2
.
=
1 AC / sin BCA
AC 2
2
1
So
BE AB2 DA DB DB
=
=
=
.
CF AC 2 DC DA DC
Then
BDE = CDF .
Therefore
Olympiad Corner
(continued from page 1)
an = n + [ n ] + [ 3 n ]
for all n 1? ([x] denotes the largest
integer less than or equal to x, i.e. g
with g x < g+1.)
Problem 6. We are given a square
ABCD. Let P be a point not equal to a
corner of the square or to its center M.
For any such P, we let E denote the
common point of the lines PD and AC,
if such a point exists. Furthermore, we
let F denote the common point of the
lines PC and BD, if such a point exists.