Graph Theory-Tomescu
Graph Theory-Tomescu
Graph Theory-Tomescu
,'
S.'I
;'1
.:.
~.' .~~~~~'~j~~
m: %"':
"
'~"
~~:~Jt~:anfome,scu
. . ....
Author
.:
'e'rfAJ~,M:elter
" . '.
.,'
Trans/ator
WILEY-INTERSCIENCE
SERIES IN DISCRETE MATHEMATICS
ADVISORY EDITORS
Ronald L. Graham
AT&T Bell Laboratories, Murray Hill, New Jersey
Jan Karel Lenstra
Mathematisch Centrum, A msterdam, The Netherlands
RAMSEY THEORY
Tucker
APPLIED COMBI;>;ATORICS
Pless
COMBINATORIAL DIUMERATION
Gondran and Minoux
PROBLEMS IN
COMBINATORICS AND
GRAPH THEORY
IOA~
TOMESClJ
Faculty of Mathematics
University of Bucharest
Bucharest, Romania
Translated from Romanian by
ROBERT A. MEL TER
Department of Mathematics
Long Island University
Southampton, New York
A \Viley-Intersdence Publication
JOHN WILEY &
New York
SO~S
Chichester
Brisbane
Toronto
Singapore
ISBN O471g0155-0
Primed in the United Stales of America
10
87654
21
Preface
This book is a translation of Proh/eme de ComhinulOricil ~i Teol'ia Gl'Uj/<rilol'.
which was published in Bucharest, Romania in 1981. In Romania, graph theory
is taught in the faculty of mathematics and in particular in what is known as the
Students in preparatory schools
chair of informatics (=computer
also receive instruction in this
which specialize in mathematics and
Thus the selection of problems presented includes some which are
and self-contained and others which were
accesin research journals. The author has used the text to prepare
Romanian candidates for
in International Mathematical
Olympiads.
Each problem is accompanied by a complete and detailed solution together
with appropriate referenees to the mathematical literature. This should enable
mature students to use the book independently. Teachers of courses in combinatorics and graph theory will also find the text useful as a supplement.
since important concepts are
in the problems themselves. Even in
the more
the reader will learn the important concepts
Revisions in the
Romanian edition have been made, and about 60
new problems and solutions have been added. The careful translation of this
material by Professor Melter will make available to users of English-language
texts a unique collection of problems in an expanding field of mathematics
which has many scientific applications.
The author and translator are
to Ms. Linda Kallansrude for her
typing and to the staff of John
& Sons for their interest
and concern in the
of this book.
lOAS
BudWI'I':,'{, ROIJli/lliu
F""fllllrl' 1985
Tm1Escu
Contents
GLOSSARY OF TERMS USED
ix
COMBINATORIAL IDENTITIES
3.
INVERSION FORMULAS
10
15
12
5. PARTITIONS OF INTEGERS
30
6. TREES
33
7. PARITY
39
8. CONNECTEDNESS
41
45
COLORING PROBLEMS
52
56
12. PERMUTATIONS
58
10.
62
I'jj
14.
PART
n. SOLUTIONS
BIBLIOGRAPHY
65
69
335
Articulation point (or cut point): A point x of a connected graph G with the
xi
I:'..
xiii
graph whose vertices can be colored with k colors so that each two adjacent
vertices have different colors.
Graph, complete, on n vertices: A
denoted Kn , in which every two vertices
are adjacent. It has G)
The complete graph on a denumerably
infinite set of vertices is denoted
.A
is complete if each two
distinct vertices x and yare
with respect to either the arc (x,
the arc (y, x), or both. In the complete digraph, denoted K!, each two
distinct vertices x and.r are joined by both the arcs (x, y) and
It has
n(n I) arcs.
Graph. connected: A
G with the property that every two vertices are the
endpoints of a walk in G. If G is not connected, then it has at least two
connected components (maximal connected subgraphs, which are pairwise
disjoint with
to vertices). A connected
with at least k + I
vertices is k-connected if the
obtained
every set Y of
vertices of
IY I ~ k 1 is connected.
Graph, strongly connected: A digraph G with the property that for every two
vertices x and y there is a
D!:::::: (x ... , y) and a path
, ... , x)
in G.
Graph. Hamiltonian: A graph which contains a Hamiltonian
or a directed
graph which has a Hamiltonian circuit.
Graph, multipartite: A
G
U) whose vertex set can be partitioned as
X = A I U' .. U A k , so that each edge has its
in two distinct sets
of the partition. A multipartite
is
if each
of vertices
located in different partition sets is adjacent.
Graph, planar: A
G whose vertices can be represented as
in the
plane; the
become arcs of a Jordan curve which
points corresponding to
vertices. Two such arcs have in common at most
one endpoint.
in which each vertex x has
d(x)=k, or a
Graph, k-regular: A
digraph with the
that
=k for every vertex x.
Graphs, isomorphic: The
G (X, U) and H=(Y, V) are
if there exists a bijection f:X - Y such that
y] E U if and only if
[f(x), f(y)] E V.
cycle
which contains all
[ndependence number :x(G) of a graph G: The maximum number of vertices in
an independent set of G.
Independent (internally stable) set: A subset of vertices which induces a subconsisting only of isolated vertices.
Inversion of a p E : A
{p(i) ,
the property that
I~i<j~nand
>pU).
XI~
n
Matching of a
G: A set of
such thaI no two have a common end
in a matching of G is denoted v(G).
point. The maximum number of
Matroid: For a defInition in terms of independent sets see Problem 6.30.
Moebius function: See Problem 2.20.
Moebius inversion formula: See Problem 2.22.
G = (X,
the set of
is replaced
Multigraph: I f in the definition of a
by a
then a multigraph is obtained. A multigraph can contain
many
having the same endpoints.
Multinomial formula: See Problem 1.16.
Multinomial number: A number of the form
n .n)=n!!n 1 !'" np! where
reduces to the binomial
nl"'" np~O and nl + ... +np=n. For p=
coefficien ts
G.
Partition: (1) A partition of a set X is a representation of X in the form X =
u
u'" U Ak where the nonvoid sets AI, ... , Ak are
disjoint; these sets are called the classes of the partition. The partition does
not depend on the order of writing the classes nor on the order of the
elements in each class. A partition has type 1k, 2kl . . . nk if it contains
k. classes with j elements. (2) A partition of an
n is a
J
h .
representation of n in the form n::::::n 1 +n2+ ... +nk; t e mtegers
nl, n2' ... ,nk are called the parts of the partition and
the
Xt
1
( p(1)
2
p(2)
n )
pen)
where
is the number of cycles of
i of g for 1 ~ i ~ n.
Principle of inclusion and exclusion: See Problem 2.2.
Projective plane, finite: A symmetric BIBD with
v, k, k, \) where
v:;;::4.
Problem 4.50.)
Prufer code associated with a tree: See Problem 6.\5.
Radius of a connected
: The smallest eccentricity of its vertices.
Ramsey number R(p, q) with two parameters: The smallest integer ( with the
property that each graph with ( vertices contains either a com pJcte subgraph with p vertices or an independent set with q vertices.
X(x - 1) ... (x - n + I) =
s(n, k)X'.
Stirling number of the second kind, S(n. k). The number of partitions of a set
with n elements into k classes.
Support or transversal set of the
of a graph: A set S of vertices with the
property that every
has at least one endpoint in S. The smallest
cardinal number of a support for a
G is denoted r(G).
Surjections. number of: The number of surjections f: X ...... Y where
= m and
IYI == n is denoted sm."'
Symmetric difference: Let A and B be sets. Their symmetric difference is defined
asA t:.B=(A"-B)v(B'A).
System of distinct representatives (SDR) of a family of sets: A family of subsets
M(S)={S!, S2,""
of a set S has an SDR if there is an injective
function f:
...... S such that f(Sd E Si for every i, 1 ~i~m.
Tournament: A complete, antisymmetric, directed graph. Thus between each
two vertices
there is one and only one arc (x, y) or (y, x).
Transposition: A permutation g E Sn which has n - 2 fixed points and is therefore
of type I" - 2 2 i
Tree: A connected
Tree. spanning, of a connected
G: A spanning
of G which is a tree.
Triangulation: A planar representation of a planar graph in which each face
is a triangle (cycle with three u""nr"'c
Triangulation of an elementary cycle with n vertices: The
which consists
of the
and the n - 3
which do not intersect in the interior
of the cycle.
Turan's theorem and Turan's number M(n, k): See Problem 9.9.
Vandermonde's formula: See Problem 3.2(a).
Van der Waerden's number W(k, I): The smallest natural number n with the
property that if the set {l, ... , n} is
into k
then there
exists a class of the partition which contains an arithmetic progression
with t+ 1 terms.
XVII
isolated: A vertex of
zero in a
Vertex, terminal: A vertex of
one in a
to D or D + I,
Vizing's theorem: The chromatic index of every graph G is
of the vertices of G. (See Problem 10.19.)
where D is the maximum
Walk: (I) [n a graph G=(X,
a walk is a sequence of vertices W=
[xo, Xl' . . . , x r ] with the property that each two successive vertices are
adjacent. that is
, x il, [x! , x 2], .. ,
1 , X r] E U. The vertices x 0 and
x, are called the endpoints of the
and r is the length of the walk. If
the vertices xo, Xl, . . . ,X, are pairwise distinct, then W is said to be
elementary. (2) If G is a directed
a walk W=[u!. U2,' . , up] is a
sequence of arcs, with the property that for each i, each two successive
1. The endpoint
arcs u, and Uj.;.! have one common endpoint, 1 ~
of U 1 which is not common to U2 and the endpoint of up which is not common to
1 are called the endpoints of the walk.
Walk (path), Hamiltonian: An
vertices of the
Part I
STATEMENTS OF
PROBLEMS
1
Combinatorial Identities
1.1
-C:1)f
[n/21
(a)
k= 0
n:1 Cnn).
where
(b)
(n + k)
~ x;
2".
\ n /
for n=O
3),
for n= 1
3),
for n 2 (mod 3):
(c)
p:
p(;y
nC:-n.
... + n\
where k is a non-negative
(n + 1)'.
1+
1.4 Prove that for natural numbers
such that the identity
-1t
(J'm +.Jm
1.5
Show
Jo (~)(m~
(b)
(c)
(~)G)
kt ( It G)
=(p:q);
(:)
2"-m;
l)m
(n:
3
(d)
(f)
-k)
(h)
1.6
==
I
k
211)
(l+m+I1)!(2l)!(2m)!(211)!
+k =(l+m)!(m+I1)!(I1+l)!I!mll1!
(-Ilk ( 21 )( 2m )
l+k m+k
for non-negative integers I, m, 11, where the summation is taken over all integer
values of k.
(-I)kC;Y
=(-1)' (311)!.
+x+
show that:
(a)
G n =l
11(11-1)
+-----:::-c-::;----+ ...
(b) GOGI
GIG2+G2G3
(e)
+ -'" +(-
Ga-
(d) Gp
... -G2n-IG2.=O;
I0
'1(_l)kG)
(e) Clo+G2+a4+"
+1)
lr
-WG)GO
if p is not a multiple of 3.
ifp=3k;
Combinalorlalldentities
and
al+a3+aS+"
(f) aO+a3+ a6+ a9+'"
(g) With
-1);
to the summations
ao + a4 + as + ... , al + as + ag + ... ,
a2+a6+aIO+ ... ,a3+ a7+ a!l+ .. .
show that three are equal and that the fourth differs from their value
by one.
Verify the inequalities
l=aO<al<'" <an
and
an >a"+l>'" >U2n
for every n ~ 2.
1.10 Suppose that
(l+x+x 2 +,
..
and set
for every i,
i~m+
1. Show that:
+ 1)" +, .
1)" -
m+
+(-1)"
for
n+i50(modm+2}
1.11
+ x + X 2 + ' . . + x" - 1) 2 ?
1.12 Given positive integers n, and r show that there also exist r unique
such that
1.13
Show that
n
(2n
k-l)
n-l
(x k+ /)
(~)"-k
,x+y
Problem~
1.14
Prove the
"-1 (
n~
1)
n" I-k(k+l)!=n".
in p boxes
to the multi-
Cl' n2~'''' nJ
where
0 and n 1 + n2 +
' .. + np =
n.
1.17
the
It
Sl. .. 'Sk
)=(m-1),
It-l
where the second summation is taken over all choices of the numbers
0 which
the relations
SI,' , ,
+ ... +
=m.
of r
where two sums are considered to be different even if they differ only in the order
of their terms? What is the result if Uj > 0 for all i?
1.20
nomial
Combinalorialldentilles
1.21
Let p(x) be a
." +r)J:=n
1.23
Prove the
1.24
Show that
n
for every positive integer n. where the sum is taken over all partitions of n of
the formj! +
+ ... +njn=n andji~O for 1 ~i~n.
1.25
max
(n, ..... no)
min
{nt.,! "xl
Evaluate:
max
(b)
1.27
max
nln2'" nk;
If n \ ~
n2 ~
x. y such that
h~
x~
G: =~)(~:- n~(::Y).
1.28
1.29
(c)
1.30
G)
"
G)rx+
:t:(~)
Show that
n" -
1.31
2(n-
kk - 1(n -
l(n_
+ "- 1
G)
= /1".
f(n
+ 2) =af(n + I} + bf(n),
where a, b are real numbers with band n =0,1,2, ... , the quadratic equation
r2 =ar+b
is called the characteristic equation of the given recurrence relation. Show that:
(a) If the characteristic equation has two distinct roots'l and r2, then the
general solution of the recurrence relation has the form
f(n)=C1r'i
where the constants
the
of
+
Cjrj+
= flO),
=f(l).
(b) If the characteristic equation has a double root equal to rl' the general
solution of the recurrence relation has the form
f(n)=r'i(C I +C 2 n),
= frO) and C 2
where
[f(l)- rd(O)J/rl'
1.32 A pupil has $n. Every day he buys exactly one of the following products: a bun which costs $1, an ice cream which costs $2, or a pastry which costs
$2, until he has no more money. In how many ways can he use up these $n?
1.33
Let U(n) be the number of ways in which one can cover a 3-by-n
ABCD with dominoes
with sides 1 and
Show that
jf n is odd and that for n even U is given
the formula
"'-"'111~'<;;
U(2m)
Combinatorial Identities
1.34 How many words of length n can be formed with letters of the alphabet
A = {a, b, c, d} so that the letters a and b are not adjacent?
1.35
Let
Show that
for z:f:
1.36
Let
+x.-tl
.. +X._2)- +(-l)"f(O),
+z 2 p-'" ==
p-
{o
cx!
if m <n;
"X.
'"
1.38
(_
1)1
(~)
I
ik =
{O .,
(-l)n.
Ifm=n,
XI'"
X.
for
k < n;
fork=n.
integers n, p with
n~p:
G)
p!=np-(n(n-1)P+(~)(n-2)p-", +(1.39
in the expansion
+ .. + xJ and setting
Show that
(~) x
+"'+(-1)"
n!
x+n
(n-pjP.
2
The Principle of Inclusion
and Exclusion;
Inversion Formulas
2.1
14 like mathematics, 16 like physics, and 11 like chemistry. It is also known that
7 like mathematics and physics, 8 like
All three
matics and
students like neither
and
and 5 like matheare favored by 4 students. How many
nor?
2.2 Justify the following formula, known as the principle of inclusion and
exclusion:
2.3
If AI'
, ... , c
prove that the number of elements in X which
to p of the sets A, equal to
Let n be a
10
(1.
II
II
(f)(d)
{D(n)+(-lr 1(n-1)}.
== n, where
(f)
is Euler's function.
2.8 Show that the number of square matrices of order 3 with non-negative
elements for which every row sum and every column sum is equal to r
1)"
D(n+ l)==n{D(n)+D(n-l)j.
2.10 Show that the number Sn.m of surjective functions f: X ..... Y with
-(7)
(m -l)"
+(;)
(m-
+". +( -11m.
then
E(n, n)
2.11
formula
Sn.m.,=m n
G) (m-l)"+(;)
(m-2)n_ ... +(
l)"{m-r)n.
with numbers from the set {1, ... , n} and which do not contain a circuit. Show
that the numbers an satisfy the recurrence relation
an =
if, by definition. ao
"
(_l)k-!
(~)
-k
1.
2.14 A set X is said to be a collection of objects of type 1)" 2)'2 ... n)" jf
there exists a partition of the set X which contains ;.j classes with j elements,
for j 1, ... ,n. Objects which belong to the same class of the partition are
where
identified. An arrangement of the objects in cells is a function f:
A is the set of cells. If f(x) = a;, we shall say that the object x E A is
in
definition, two arrangements are equivalent if one can be obtained
cell al'
from the other by a permutation of the
in the same classes of the partition
of X. Classes of this equivalence relation are called arrangement schemes of
objects in cells.
Denote by A 0 (1 A,
n).'; 1m) the number of arrangement schemes
of a collection of
of type I).'
... n).' in m distinct cells. and by
A(1)" 2.1.2...
1m) the number of arrangement schemes which leave no cell
empty. Show that
... n)."
AW'
2.15
Let
(i)
(2 Q - 1 -l)P
+(;)
1)P ... +(
~_xcluslOn;
InversIOn tormulas
=
for any m;;':
2.19
(_l)l(~)(m-~-I)=(m-11
I
11
11-1
/-1
1)
11+ I;;.: 2.
Let V = {x 1, ,
be a finite set on which is defined a partial order
definition, satisfies the following three properties:
(aj
for every i 1, ...
(reflexivity);
~ which,
Xi
,11
11
(b) Xi~Xj and Xj~Xi imply XI Xj land thus i=j) for 1 ~i.
(anti
symmetry);
(c) Xi
and
Xk
xi~xkforl~i,j,k~l1(transitivity).
A square matrix of order n whose elements are real numbers (aij)i,J=l, .... n will
be said to be compatible with the partial order defined on V, or simply compatible, if
0 implies Xi
for every i, j= l, ... , n. Show that the sum and
the product of two compatible matrices is a compatible
and show that
if a compatible matrix is
then its inverse is compatible.
2.20 If V is the
ordered set of the preceding problem, show that
there exists a function )J. defined on V x V with the following properties:
(a) j1(x, y) =0 if x is not less than or equal to y;
(b) j1(x, x) == 1 for every X E V;
z j1(x, y)=O for every x < z if x, Z E V.
The function j1 is called the Moebius function of the set V.
2.21
problem if
V is:
(a) the family of all subsets of a finite set S with respect to the
order relation of non strict
denoted Xc: Y;
(b) the set of
l, 2, ... , n where x~y is
by x I J (i.e .. x
is a divisor of y);
(cl an
where the relation of
order between
vertices is defined
x
if the unique path which
the root of
the arborescence with the vertex y passes through x,
2.22 Let
be a real-valued function
Moebius function on V. Let
=L
on a set V, and
f(z).
z<,x
Show that
f(x}=
x}g(z).
yl the
with numbers from the set {1, ... , n} and which do not contain a circuit. Show
that the numbers an satisfy the recurrence relation
an =
if, by definition. ao
"
(_l)k-!
(~)
-k
1.
2.14 A set X is said to be a collection of objects of type 1)" 2)'2 ... n)" jf
there exists a partition of the set X which contains ;.j classes with j elements,
for j I, ... ,n. Objects which belong to the same class of the partition are
where
identified. An arrangement of the objects in cells is a function f:
A is the set of cells. If f(x) = a;, we shall say that the object x E A is
in
definition, two arrangements are equivalent if one can be obtained
cell al'
from the other by a permutation of the
in the same classes of the partition
of X. Classes of this equivalence relation are called arrangement schemes of
objects in cells.
Denote by A 0 (1 A,
n).'; 1m) the number of arrangement schemes
of a collection of
of type 1).'
... n).' in m distinct cells. and by
A(1)" 2.1.2...
1m) the number of arrangement schemes which leave no cell
empty. Show that
... nAn;
Im)= m (_l)m-k
(~)Gr
2.15
Let
(i)
(2 Q - 1 -l)P
+(;)
1)P ... +(
+ +... +
3
Stirling, II,
Fibonacci, and
Catalan Numbers
3.1
(x-n+ 1),
-1)"
=x(x + 1)"
=
where. by definition.
(x + n
1. The
1),
Show that
3.2
+ y]"=
kt G)
hold:
[X]k[Y]n-k
f (n)k
and
k=O
x"=
ktl ~: G=~)
=
where
and
[x] .
16
asa
S(n. m)
m s. m
Show that the Stirling numbers also satisfy the recurrence relation
S(n+l,m)=S(n,m
l)+mS(n,m),
(k
= G)
+ 1, m)=
numbers of
) S(k, m
k=m-l
(b) Bn+!
Bb
= 1.
where
n!
Part(1 k,
... nkn;
the number of permutations p e of type 1k, 2kl ... nk, which contain
k j cycles withj elements for j= 1,2, ... , n is equal to
Perm(1k,
where kl + 2k2 +
... + nk.
ofor i = 1, ... , n.
nand
3.7 Establish the following recurrence relations for the Stirling numbers of
the first and second kinds:
C;j)
j
3.8
) Sen, i
+j)=
(:)S(k,i)S(n-k,
G)
S(k, i)S(n
k.
Show that
n
sen, k)S(k, m) =
L
k~
m) =
max{kIS(n, k) is
. 1 ~k~n}. Show that the
numbers of the second kind is unimodal for every natural
17
1 =S(n. 1) <S(n, 2) < ... < S(n, M(n)) > SIn. MIn) + 1) > ... > SIn. n)=
1:
(2)
1 = SIn, 1) <SIn, 2)< ... < S(n. M(n) - 1)=S(n, M(n))> ... > SIn. n)=
1,
(xla)n=(x-ao)(x-ad'''(x-an-t!=
sa(n,k)x k
and
(x ajo=1;
1
k=O
(2)
x"=
k=O
Sa(n, k)(xlaJk'
k=O
Show that:
(aj Sa(n, k)=sa(n-l, k-lj-a n_lsa(n-l,k);
(c)
sa(n, k)=
s.(n+l. r+l)a~-k;
j"=k
I"
Sa(r-I, k-1)a~-I';
r=k
(e)
sa(n,k)=
n- 1
(-lr'sa(r-l,k-l)
r=k
(f)
n aj:
j=r
Sarno k)Sa(k, m) =
k=O
k=O
(Kronecker symbol).
3.11 Show that the generating function for the Stirling numbers of the
second kind associated with the sequence (ao, ai' 02 ... ) can be expressed as
x
n-l)
(aJ Si(n,k)=kS;(n-l.k)+.
( I-I S;(n-i,k-l);
'"
where the sum is taken over all integral solutions of the equation
+ ".
=n which
ifor s= 1,,,., k.
jl
3.13 Show that the Stirling numbers of the second kind satisfy the following
relations:
(a) S(n, 2) =2"-1 - 1;
(b) S(n,n-l)=(;);
(c) S(n, l)-l!S(n, 2)+2!S(n, 3)-3!S(n,4)+ "
+(-1)"-I(n-l)~=O
for n?;l: 2.
3.14 A
with k classes of a set X with n elements is a family of k
nonempty subsets of X such that each element x E X is contained in
two subsets of the family. If c(n, k) denotes the number of bicoverings with k
classes of
show that
c(n,3)=t(3"-1
3.15
YeX,
Show that the number of partial partitions of a set X with n elements is equal
to Bn+ 1 -1.
3.16 Show that the
is given by
I't"=exp(exp(tl-l).
"=0 n.
3.17 Show that the Bell numbers Bn
1
B"=-
k"
Also show that the difference between the number of partitions with an even
with an odd number of classes
number of classes and the number of
of a set with n elements is equal to
e
3.18 Let
which contain k
l)kk"
k!
fin, k)= (
n-k+ 1)
k
.
19
f(n,
If
1+
for
3.19
that f*(n, k) denotes the number of k-element subsets of
X {1, ... ,
which contain neither two consecutive
nor land n
simultaneously. Show that
j*(n,k) n:
1fL.:::::
every n ~
Cl~k).
of*(n,k)forn~l,thenLl
1,
=3, and
The numbers L. are called Lucas numbers.
=(
for
the identity
1)n+l.
uo= 1.
3.22 Show that every natural number n~ 1 can be written as a sum of
wise distinct Fibonacci numbers which are not consecutive numbers
and
1 of the Fibonacci sequence.
3.23 Show that the generating function of the Catalan numbers
the equation
+ ".
satisfies
1-
+Cnx"+'" =--,..---
2n
XI E {
(1)
X\+X2+'"
+xk~Oforeveryl~k~2n-2,and
Xl+X2+'" +X2.-2
2
is equal to O/n)(:":1
).
n 1
Show that the number of triangulations of a convex polygon with
n + 1 vertices is
to
1
(2n-2).
n-l
20
3.26
functions
1, . .. ,n}
to the Catalan
1
n+
3.28
t ~ x ~ n is
"'TI',,,'rc
is
to
3.29 Let go(n+ 1) be the number of sequences (ai' a2,"" an + d of nonnegative integers such that a 1 = 0 and
-ai+ll~l
for
Show that
go(n + 1) = c(n, n) +
n+l},
where
1
n+
3.31
(2n).
,n
... ,
to i for i = 1, .. , , n is
21
n=
. where
x ==
to
So == 1.
3.33 Let
be the number
ofdimensionkofann-dimensional
vector space V over a finite field F with q
where q is a power of a
This number is called the Gauss coefficient. Show that
3.34
q-l
(b)
[knJ q
:kl
[~1 =
[nJ =[n-1J
kq
3.35
1q
yn=l+"3.36
+qk
[n -lJ
.
k q
number. Show that Cauchy's identity holds:
[~1 (y-l)(y-q)'
'(y-
1).
and
Show that:
([':~ 13J);
f(n. k)=
4
Problems in Combinatorial
Set Theory
Let X be a collection of n objects (n ~ 1) which are not
distinct. H n ~ + 1, where a is a non-negative
show that one
or more of the following two statements is valid:
4.1
(1)
(2)
4.2 In how many ways can one arrange k rooks on a chessboard with rn
rows and n columns so that no rook can attack another?
4.3 Let A be a set formed from 19
distinct
which
to the arithmetic
1,4, 7, .. " toO. Show that there are two distinct
","'m>ro in A whose sum is
to 104.
4.4 Let k~ 1 be a natural number. Determine the smallest natural number n
with the following property: For every choice of n
there exist at least
two whose sum or dilTerence is divisible by 2k + 1.
"i"n be three
inequality is satisfied:
lA,
show that
4.6
every x
1M, ~
of a
,C
r'lCkl+IBjr'l
~n,
A mapping f: X -+ X is said to be
X. If Ix 1= n prove that:
(a) the number
of idempotent
i(n)::::
f:X -X is
to
f (n)k k"-k;
K" 1
rIO
(b)
1+
L
n=l
xn
n!
i(n)-=
{n-l)!n!
2n -
4.9 Let F = {El' ... , E.} be a family of r-element subsets of a set X. If the
show that the
intersection of each r + 1 subsets of F is
of all the subsets of F is also nonempty.
(-1)J
of an
C)
n 1)
I(n,n-l)
and
[(n.2)
4.14
Let AI,''',
+ 1,
be a collection of n
AI" ... AI, a subfamily of maximal cardinality with the property that it does
not contain the union of the sets, that is.
A,vAdA.
for each three
distinct indices
k e {i 1 , ,Let
min r, where
the minimum is taken over all families of n
distinct sets. Show that
1~f(n)~
4.1 5
1.
IA11=
and let U~= 1 Ai = S. Suppose that for fixed k (1 ~ k ~ n) the union of every k sets
of this family is equal to S, and the union of at most k -1 sets of the family is a
proper subset of S. Show that ISl ~ (k~ 1)' When equality holds, it follows that
IAd= i)foreveryi=l, ... ,n.
4.16
min i
4.17
Show that
IAl vA2v
... vAkl=
1)
A, ..... A,
where the sum is taken over all choices of subsets A 1, ... Ak of an n-element
set X.
4.18
Show that
IIA1v'" vAkl
where the sum is taken over all choices of subsets A 1,' ..
set X.
of an n-element
n-l
G)
4.20 Let (Adl<;/<;m and (Bdl i<;m be two families of sets with the property
that lAd = ... ::::: IAml =p.IBd = ... =IB",I =q and A1(lB j
jf and only if
Show that
25
every i,
1, ... , p with i
Show that
([n~2J)'
max p
This result is called Sperner's theorem.
... ,
of subsets
l==r~nI2foreveryi=1,. ,p;
theorem.
, ... , En} be a
of r-element subsets of a set X, where
4.24 Let F
n ~ 2,-1. Show that it is possible to color the elements of X with two colors so
that no subset in the family F has its elements colored with the same color.
distinct
4.25 Let M be a set with n;': 5 elements and F, a family of
show that there
three-element subsets of M. If F contains at least n+ 1
one element in common.
are at least two distinct subsets which have
4.26
of integers
, ... , an} i=
, ... ,bn } such that an integer can appear several times in each collection.
Assume that the collections
+ajll ~i<j~n}
and
{bi+bjll ~i <j:r;:;;nj
1 :r;:;;
m and i
Show that m ~ n.
4.28
than
One is
4.29 One is
n points in space, no four of which are
the set of C) planes determined by each
of
with the 'I"Ir'>'I"I"'rtu
no two planes are
Determine the number of lines of intersection of
these planes.
26
4.30 How many triangles can be formed [rom the n vertices of a convex
polygon if no side of a triangle can be a side of the polygon?
Consider a convex polygon with n vertices. There are n(nof the polygon with the property that no two are
and no
three are concurrent other than at vertices of the
Show that the number
of points of intersection located outside of the polygon is equal to
4.31
12
4.32 Suppose there are n points on a circle with the property that no three
determine are concurrent in the interior of the circle.
of the n(n -1)/2 chords
Show that in this case these chords delimit
C {
1, ... , rn } ,
where
1~
rn.
M(n. k,
(b) M(n, k,
(c)
M(n-l,k,h);
h)~M(n -1,
(~)/(~)~M(n, k,
27
4.36
Show that
(a) M(n, k,
2)=(;)-
for every
n~ k~2,
k_
. n _r2
_G)
O~r::;;k-2;
(b, v, r, k, A) of a BIBO
bk=vr
and
-1)
;. blocks.
The incidence matrix A == (aU)1 <> 1.)<> v of this configuration is a square matrix
defined as follows: au = 1 if the element i of X belongs to the set X J. and
otherwise. Show that
AT A =(k-i.)/ +Al,
if and only if A is the incidence matrix of a
k, A}-configuration where AT is
the
of
and J is a square matrix of order v all of whose elements
are 1. The matrix / is the identity matrix of order v.
4.39
(v,
t" k, k, ;.).
4.40 Let X be a v-element set, [' ~ 3. A Steiner triple system of order t' is a
family of 3-element subsets of X called triples, such that each two element
subset of X is contained in a
triple.
Show that a necessary condition for the existence of a Steiner triple system
of order v is that v;;;;: 1 or 3 (mod 6).
4.41 A BIBO is said to be
if v=b
hence k=r). Show that
if a symmetric BIBO has parameters (v, v, k, k, ).) where r is even, then k -,1. is a
perfect square.
28
4.43 Consider the functions f: X -> X such that fU(x) =a for every x E X,
where a is a fixed element of X. If Ixj =n~ 2, prove that the set of all such
functions has
p=
C~ 1) pn-
-l.
4.44 Consider the r-element subsets of the set {1, ... , n}. Select the minimum element of each subset. Show that the arithmetical mean of the numbers
obtained in this way is equal to (n+ 1)/(r+ 1).
there are two
AI, ... , A 100 be subsets of X which are not necessarily distinct. and are such that
lAd >ilxl for any i == 1, ... ,100. Show that there exists Y c X, IYI ~ 4, with
Y
for every i= 1, ... ,100.
4.49 The digital plane D is the set of all points (digital points) in the
Euclidean
which have integral coordinates. For any two points
,Yd
and P 2(X2, Y2) from D the city-block distance is defined by
which yields a metric for D. For any FeD a subset Be F is said to be a metric
basis for F if for any x, Y E F, x
there exists b E B such that d4 (x, b) d4 ( Y, b).
29
Prove that:
(a) D has no finite metric
(b) for any natural number n ~ 3, there exists En C D such that the
minimum number of elements in a metric basis for is equal to n.
4.50 A finite
is a
BIBD !l with
k, k, A) where v;;;: 4 and }. == 1. It is traditional in this context to substitute
the terms point for object and line for block. From Problem 437 one can
deduce that
tv. v,
V=k2_k+1.
The number n:= k -1 is called the order of A Thus for a finite "r,,,,,,-tn,,,'
of order n it can be seen that
r=k
n+L
projective
5
Partitions of Integers
5.1 In how many ways can three numbers be selected from the set
(1, 2, ... , 3n} so that their sum is divisible by 3?
5.2 Show that the number Pin, m) of partitions of an integer n into m parts
satisfies the recurrence relation
P(n+k, k)=P(n, l)+P(n, 2)+ ... +P(n, k),
5.4
distinct
n into m
+X5 +
=l-x-
where ljJ(n)
the form n
Ok if n = (3k
(k
k)f2 and
ljJ(n)x"
+
1jJ( n)
0 if n cannot be represented in
is an
of an
31
Partitions of Integers
=1;
of an
(c) the generating function for the number of partitions of n into odd
parts is
Prove Euler's
Theorem:
Pin
7)+'"
+p(n--F)},
(;.
P(i)Q(n -
where P(O)
Q(O) = 1.
1;:.0
5.11
= P(n
m) for m ~
5.13
by counting
Ferrers
method to prove Euler's
5.14 Denote by B(n) the number of the partitions of n into parts which are
powers of two. For
B(6) == 6, and the corresponding partitions are the
following:
1+1+1+1+1+1=2+1+1+1+1=2+2+2
=4+2==4+1+1.
Prove that:
+ 1)=B(2n);
(b) B(2n)=B(2n-l)+B(n);
(c) B(n) is even for any n ~ 2.
5.15
Show that
P(n}~
for every n ~ 2.
6
Trees
6.1 Let A
U) be a tree and
, Ud,. ,
subtrees of A. If B= nf=1
=1=O, show that B is the set
of A.
6.3 Let d 1 , , do be
such that
... ~dn'
if
d1 + .,. + dn = 2n - 2.
6.4 Let
A2 be two
there exists a sequence of trees
Al = B 1,
... ,
Br =
+ e(z).
34
6.6
Show that every tree with n vertices and with diameter greater than or
n - k walks oflength equal to k.
to 2k - 3 contains at least
6.7
s(x)=
X let
d(x, y).
Y'X
(a) Show that the function s(x) is strictly convex in the sense that if
y and z are two vertices adjacent to x, then
<s(y)+
(b) Prove that the function s(x) attains its minimum for a single vertex
or two adjacent vertices of the tree G.
6.8 Determine the trees G on n vertices for which
(maximal).
d(x. y) is minimal
and
diJ+d jk -
=0 tmod 2).
+dk1 ,
+dj /!
to the two
6.10 Let A and B be two trees whose terminal vertices are labeled with
If the distances between these terminal
numbers from the set {1, 2, ... ,
vertices are the same for A and B. that is,
dAti, j) = d8 (i, j)
for every 1 ~ i
6.12 Let A be a tree with vertex set X such that IXI =2n + 1. An automorphism of A is a bijection f:X -X which preserves the adjacency of vertices.
that is, [x, yJ is an edge of the tree A if and only if [f(x), fry)] is an
of A.
Show that f has at least one fixed point.
6.13 Let A 1 =(X, VI) and A 2 =(X. V 2) be two trees which have the same
vertex set A.
that for every vertex x E X the subgraph obtained from
A 1 by
the vertex x and the
incident with x is isomorphic to
35
Trees
and set
D=(dijki=1."n,
where dij=
Xj)
Xi
and
(-1)"- !(n-l)2
in G. Show that
-
2.
6.15 Let A be a tree with vertices Xl' ... ,X n Suppress the terminal vertex
(of
1) which has the smallest index,
with the edge incident with
it, and let A n - 1 be the tree thus obtained and al the index of the vertex
!, and determine
to the
vertex. Repeat this
for the tree
the index a2 of the vertex
to the terminal vertex of minimal index of
1 and so
until one comes to a tree
of two adjacent vertices.
One thus obtains a sequence (ai' a2,"" a n -2) of n-2 numbers l':;;a/':;;n for
1,:;; i':;; n 2, associated with the tree A. (It is called the Prlifer code of A.)
Show that:
(a) the correspondence thus defined is a bijection between the set of
trees A with n vertices X!, .. ,X n and the set of nn- 2 sequences
, ... , an - 2) which can be formed with numbers from the set
n-2
)
( d 1 -1, ... ,dn -l .
6.16
Let tn denote the number of trees with n labeled vertices. Show that
k
and obtain
using Abel's
spanning trees.
{(2+
-{2
p terminal
J3n
......
Yl
Y2
. .. ..
Yn
Fig. 6.1
(2)
D is symmetric;
d1j ~ dik + dkj for every i. j, k and
(5) If dij > 1, there is an index ki= i. j such that dij =
(4)
6.20
(2)
nrr\"prt"~
are
dkj
for a graph G:
G is a tree;
G is connected, and the deletion of any
of G results in a
G 1 which is not connected;
vertices
G has no
and if x and J' are any two
of
then the graph G l obtained from G by inserting the
[x, y] contains
Let G denote a
with n';il: 2 labeled vertices denoted 1,2, ... nand
Label the
of G with the numbers 1, 2, ... m, and
each
an arbitrary direction. The incidence matrix of G is the n-by-m ma tfix A = (aij),
where 1 ~ i ~ nand 1
m, in which au equals + 1 or -1 if the
is directed
away from or towards the vertex i, and zero otherwise.
Prove that if the graph G has n vertices and is connected. then the rank of its
to n 1.
incidence matrix A is
37
Trees
if and
if the
spanning tree of G.
6.26
of the
of
6.27 Let G be a
and let C = (cl)) for 1 ~ ~ n be a
to the number of vertices adjacent to i in
matrix defined as follows: Cli is
clj == - 1 if i
and vertices i and j are
in G; Clj = 0 if
and vertices
i and j are not adjacent in G.
Show that A,A; is the matrix obtained from the matrix C
a row
(say the nth) and the column with the same index. Use this property to obtain
another proof of Cayley's formula, since the number tn of trees with n labeled
vertices is equal to the number of spanning trees of the complete graph Kn.
6.28 Let
be the tree with 2n vertices as illustrated in Figure 6.2. Show
that the number In of independent sets of vertices of this graph is equal to
I" =
3+
. r:;
(1
+" 3)" +
3-
r:;
(1 - ,,3)".
2n
. .lJ
Fig. 6.2
6.29
E(T). If
set denoted by
vA"i~
any subset of an
if I and J are
then there is an element e contained in J but not in
I, such that I v
is ml'i,f'n,>111'i
38
is an
II nSI
7
Parity
7.1
I: U -+ { -
7.2 Let G be a planar graph all of whose faces are triangular. and suppose
that the vertices of G are colored with three colors. Show that the number of
faces whose vertices are colored with all three colors is even.
7.3 An Eulerian circuit of a digraph G is a circuit which contains every
arc of G. Show that a graph G which does not contain isolated vertices has an
Eulerian circuit jf and only if it is connected and for every vertex x the indegree
is equal to the
that is,
d- (x) = d+ (x).
graph
G=(X,
39
40
is defined as follows: The arc (x, y) EO if and only if (x, y) : U for every x, y E X
with X=f y.
Let h(G) denote the number of Hamiltonian paths of the graph G. Show that
h(G) (mod
7.8
paths.
7.9 Suppose that the graph G has all of its vertices or odd
that each edge of G belongs to an even number of Hamiltonian
Show
7.11 The set X of vertices of any graph can be partitioned into two classes
X 1 and X 2 (one of which may be empty) so that the subgraphs with vertex set
X 1 (X 2) have all their vertices of even degree. Show that this property remains
of the vertices of the subgraph
by
are even and
true if the
the
of the vertices ofthe
generated by X 2 are odd.
7.12 Let C be a collection of pairwise distinct subsets of a nonempty finite
set X with n;;;: 2 elements. Show that the only collections C with the property
that every proper subset of X intersects an even number of sets from Care
P(X) and P(X) '-{0}, where P(X} is the family of all subsets of X.
8
Connectedness
8.1 Let d 1 ~d2~'" ~dn be the
suppose that dk ~ k for every k ~ n d.
of the vertices of a
1. Show that G is connected.
G, and
G contains a connected
p+m~n.
A graph G is said to be
such that each edge of the graph has one endpoint in A and the other in B.
Show that a
is bipartite if and only if each elementary cycle in G has an
even number of vertices.
8.6 Does there exist a graph with 10 vertices whose vertices have the
sequence
1.1.1,13,3.4.6,7.9?
8.7
such that
(2)
d.~dl
+ ... +
l'
42
8.9 Consider a graph G with n vertices which does not contain a complete
subgraph with three vertices.
further that for every two
to both x and y.
vertices x and y there are exactly two vertices which are
Show that there is an
p ~ 0 such that n = 1 + 2 Also show that the
G is
of
p.
8.10 Given natural numbers r~ 2 and
3, show that there exists a graph
G which is
of
r and with girth g(G)=g.
8.11 Let G be a
Show that
graph of
n~1+r+r(r-l)+'"
+r(r
for g odd
and
n~2{1+tr
8.12
1)+'" +(r
1)YI2-1}
for g even.
8.13
connected graph G contains at least one vertex x which has the
property that the subgraph G x obtained from G by suppressing the vertex x,
and the edges incident with x, is connected. Does this remain true if instead
of eonneetedness one considers
connectedness?
8.14
A of vertices, A
there exists at least one arc of G of the form (x, y) where
x E A and y A. Show that this statement remains true if instead of the arc
(x, y) one takes (y, x) where y A and x EA.
rl="
S;=(;);
(b)
8.17 Show that every tournament G contains a vertex X such that every
other vertex can be reached from x by a path with at most two arcs.
8.18
vertices such
COllllectedlless
43
that every vertex x ~ S can be reached by leaving from a vertex YES and traversing a path of length at most equal to 2.
8.19 A tournament T is said to be transitive if, whenever
v) and
w)
are arcs of T, then (u, w) is also an arc of T. Show that an increasing sequence
~ , ~ Sn of n ~ 1
integers is the sequence of
S :S\
of a transitive tournament with n vertices if and only if S is the sequence
0,1, ... ,n-1.
with n labeled vertices
C{k)
and C(1)=l.
8.21 Show that almost all graphs with n vertices have diameter equal to
2 for n .... 00. This means that if d2 (n) denotes the number of graphs with n vertices
and with diameter equal to 2, then
lim
= 1.
8.22 Define a
relation - on the set U of
of a graph in the
following way: Let Uj - UJ if i
or if the
Uj and Uj are found on the same
cycle. Show that - is an equivalence relation on U.
8.23 An articulation point of a connected graph G is a vertex x such that
the subgraph Gx obtained from G by suppressing the vertex x and the
incident with x is not connected. A connected graph G which does not contain
an articulation point is said to be 2-connected.
Show that the
properties are equivalent for a
G with n ~ 3
vertices:
(1)
(3)
Gis 2-connected:
every two vertices of G belong to an elementary cycle;
G does not have isolated
and each two edges of G lie
on some elementary
44
l'
Fig. 8.1
ddf(x), fry)}
for any x, y in S.
Prove that:
(aj if every subset of vertices S of a connected
0 with lSI ~4 is
isometrically embeddable in a tree, then 0 itself is a tree;
(b) if 0 is a connected bipartite graph, then any set S of its points,
IS I~ 3, is isometrically embeddable in a tree;
(c) if every three points of a connected graph 0 are ,CA'..,..", ..",o
embeddable in a bipartite graph, then 0 is bipartite.
8.29 The cities C 1, ... ,
are served by n international airlines AI'" ., An.
There is a direct line (without stops) between any two of these localities, and all
airlines provide service in both directions. If N;;;:: 2" + 1, prove that at least one
of the airlines can offer a round trip with an odd number of
Does this
hold for N = 2"?
9
Extremal Problems
for Graphs and Networks
9.1 In a graph G it will be said that an
Ii covers a vertex x if x is one
of the endpoints of u. A set of edges forms a matching if no two have a common
endpoint. We denote by v(G) the maximum number of
in a matching, and
by p(G) the minimum number of edges of G which cover all the vertices of G.
Show that if G has n nonisolated vertices, then
v(G) + p(G) = n.
9.2
of
G)(b) If a
nk (n-k-l).
9.3 Show that a graph G with n vertices and m edges contains at least
(4m/3n){m-n"/4) triangles.
9.4 Show that a tournament with n vertices contains at most
with three vertices. Prove that this limit is attainable for n odd.
H"; I) circuits
9.7 Show that if a graph with n vertices does not contain a complete subgraph with k vertices (k ~ 2) then it contains at least m = {n/(k - 1)} vertices of
45
l)J, where
is the least
~x.
M(
n,
k)=k-2.n
-1
r2
(r)2
ifn=(k l)t+rand
r~k 2.
The graph G for which this maximum number of edges is attained is unique
up to isomorphism. G is made up of k - 1 classes of vertices. There are r classes
the remaining classes each contain t vertices.
which contain t+ 1
Each vertex x is adjacent to all the vertices which do not
to the class
which contains x. This result is called Turan's theorem.
9.]0 Suppose that a set M contains 3n points in the plane and that the
to I. Show that at most
of
maximal distance between the points is
than
the distances between the points are
9.11 Given 2n points in the plane with no three collinear, show that the
maximum number of line segments which can be constructed with endpoints
in this set of points and so that no
are formed is
to n2 .
9.12
(with
points in n
9.13 One wants to construct a telephone network
cities. Let c(u) be the cost of constructing the line for an edge u = [x;.
in the
complete graph G thus defined. It is desired to minimize the total cost of conthe network. One must therefore find a spanning tree A of G such that
the sum of the costs associated with the
of A is minimal.
Show that the following algorithm produces a minimal
tree of G:
(1)
(2)
select the
of G of minimal cost:
among the unchosen
select an
which does not form a
cycle with the
chosen and which has minimal cost.
Repeat step (2) of the algorithm until a set of edges of cardinality n -I has been
chosen.
9.14 Suppose that all the G) edges of the graph of the preceding problem
have different costs. Show that in this case the spanning tree of minimal cost is
unique.
47
9.15 Denote by E the set of vectors X=(X 1, X2, , x N ) E,jJ" such that
0 for i= 1, ... ,11 and Xl + ... +xn= 1. Show that if G={X, U) is a
with 11 vertices then the following equality holds:
Xi~
XiX}':::::
~),
('(\T\"\T'ljptp
subgraph of G
u~D
=min max
e
Ute
where D runs through the set of all paths D = (a, . . , b) and C includes the set
of all (a, b)-cuts of G.
9.17 F or a digraph G =(X. U) let a. b be two distinct vertices of G, and c a
function c: U ..... !Ii? such that
0 for every arc u E U. Suppose that 9 is a
function g:X -+:?# which satisfies the following two conditions:
g(a)=O;
(2)
- g(xJ ~
Y) E U.
10
be the sum
clu),
.<A(D)
max g(h),
g
where D
... , h) runs
there exists at least one
(4)
OforeacharcuE U.
411
f(u)::.:
flu)
forevery
x EX"",-{a,
w-(A)={(x,y)lxe
),EA,(x,Y)EV};
a cut is thus the set of arcs which enter the set A of vertices. Further let
w+(A)
yiA,
{(X,y)IXE
Y)EV}.
w + (a) is thus the set of arcs which leave the set A of vert ices. The
cut w-(A) is defined by
c(w
of the
c(u).
uew-(A)
Show that:
(a)
f(u) =
f(u).
!,lEO)
It, =
f(u)-
f(u):(c(w-(A.
uew+(A)
u<ro
min
V, c)
to the
(A.
AlatA.beA
9.20 Consider the following algorithm for obtaining a maximal flow at the
exit b of a network G = (X, V, Assume that the capacity function c(u) *'" 0 takes
on only integer values:
(1)
49
rr by this
the exit b is
then the flow fb obtained
at the current step is not maximal. Now consider a walk l' formed of labeled
vertices (with the sign + or - respectively) which joins a and b; it can easily
be found by following the labels of its vertices from b to a. Denote by 1'''' the set
of arcs
y) where the marking of y has the sign +; the arcs are thus directed
from a to b. Denote by v- the set of arcs
y) where the marking of y has the
sign -. these arcs are directed from b to a.
Find the value of
c=min (min {c(u)UEV+
The
of the
problem does not have a finite number
and does not lead to the maximum flow at the exit if the
function
for arcs c: U-.rJf has irrational values. To see
let
an=rn,
where r
recurrence relation
50
Fig. 9.1
2.
.=
Apply the algorithm of the preceding problem, using the order of the walks
Xt.Yl.b],
X2,Y2,X3,Y3.
[a,x2.Y2,Yl.X\,Y3,X3,Y4'
and soonthat is, so that the flow fb always
it will be equal to aO+al +a2+
a3 + ... , and strictly less than the maximum flow
fb =4c.
9.22 For a graph
denote by v(G) the maximum number of
in a
matching (a set of
which has no endpoints pairwise in common); let t(G)
be the minimum number of vertices of a support S of G (a set of vertices such that
every edge has at least one endpoint in S). If G is bipartite, show that v( G) T( G)
by applying the Ford-Fulkerson theorem to a network constructed in a suitable
way from the graph G.
be a
matrix with " rows and m
number of elements
to 1 which are
found in different rows and columns of the matrix is
to the minimum
to 1
number of rows and columns which together contain all elements
theorem.
in the matrix. This result is called
9.23
Let A =
9.24
1, .... m
"1.
"!
51
Show that for any graph G with n vertices the following relation holds:
c'i 2 ( G)::;; Wn -1) 2 J,
and this inequality becomes an equality if and only if G is isomorphic to the
complete bipartite graph Kp,q where p, q-;:O and p+q=n,
10
Coloring Problems
10.1 Show that if each vertex of a graph G has
at most equal to k,
then the chromatic number of the graph G
the inequality
X(G)~k+ 1.
10.2 Let G be the complement of a graph G with n vertices. Prove that the
following inequalities are satisfied by the chromatic number:
X(GH x(G)~n+ 1,
n~X(G)X(G)~[(n; lYJ.
10.3 Suppose that a planar
G has a Hamiltonian cycle. Show that
the faces of all representations of G in the plane can be colored with four colors
so that each two faces which have a common edge are colored differently.
10.4 Draw an arbitrary number of Hnes in the plane so that no three of them
are concurrent. One can obtain a planar graph G by
the points of
intersection of the lines as vertices of a graph and the segments between neighboring intersections as edges of the graph. Show that
X(G)~
3.
5.
10.8 Prove that every planar graph contains a vertex x with
Construct a planar graph with the property that
5 for every vertex x.
10.9
52
A planar graph G with n vertices and m edges has the smallest length
Coloring Problems
53
g(G)
3. Show that
X(G)~
5.
3, and a
Verify that for every 11 ~ 4 there is a planar graph with all faces triangular such
that the
becomes an
10.14 Let G be a graph with vertex set X of cardinality 11 and set of
A t.-coloring of G is a function
U.
f:X- t ..... A}
where A~ 1 is a natural numbcr such that ir
y] E U. then f(x) '#
Show that the number of A-colorings ofthc graph G can be expressed in the
form of a polynomial of degree 11 in A [called the chromatic polynomial of the
graph G and denoted Po().)] in the following manner:
( -1
nAt,pn!~
of the spanning
graph on n
a tree with n
and by
(a)
(b)
Pd.Jc)
-l)"'(A-n+
).(/. _1)"-1 ;
(c) PcP)
10.17
form
Qj
with n
If G is a
10.18
nomial
~ 0 for every
1)V-
1)"+(
j.
l+a n _
_Q._
where
Verify that:
2_ ...
+(
(~=
If G is connected, then
1)n-l ajx ,
"
q(G)=D
q(G)=D+ l.
In
1. n -1
K" is
by:
for n odd,
for n even.
10.24 Let G be a graph with vertex set X and which does not contain a
complete subgraph with k + 1 vertices. Prove that there exists a k-chromatic
graph H with the same vertex set such that
XEX.
Colormg J-'rorllems
11
vertices, m
m:;;;;M(n, k+ 1)
and that equality holds if and only if G is isomorphic to the Turan graph with n
k parts. and M(n, k+ 1}
10.26 Let G be a graph and PGO.) its chromatic polynomial. G is said to be
chromatically unique if Pfl().) == PG().) implies that the graph H is isomorphic
to G. Prove that Turan's graph T(n. k), on n vertices and with a maximum
number M(n, k) of edges with respect to the property that it does not contain
any complete subgraph with k vertices, is chromatically unique for every
2~k~n+1.
is
(-lyC)PG(k- il.
= -x2i+
ds{M, N)==max([x l
(city-block
[Yl - Y2i)
Define the infinite graphs G4 and Gs as follows: The vertex set of these
is the set of points of 2, two vertices being adjacent if and only if their cityblock or chessboard distance is equal to 1. Prove that the chromatic number of
these graphs is equal to 4, that is,
X(G 4 )=X(Gs)=4.
10.29 If a
G contains no
and X(G)
3, show that G
G with p+ 2 vertices
has at least p +2 vertices. For any p~ 3 construct a
and without p-cliques such that x( G) == p.
11
Hamiltonian Problems
11.1
contains
t(n-l)!n!
Hamiltonian
11.2 Prove that the number of Hamiltonian cycles in the complete graph
Kn which use h given edges (which pairwise have no common vertices) is equal to
(n
h-l)!
d 1 ~d2~ ...
Xl' ... ,X n
whose
the
~dn'
11.5 Let G be a
than
walk.
11.6 If G is a regular graph of degree n with 2n + 1
has a Hamiltonian cycle.
show that G
11.7 Let G be a kconnected graph which does not contain a subset formed
vertices (k ~ 2). Show that G has a Hamiltonian
from k + 1
11.8
m~(n;1)+2
56
If the inequality
57
Hamiltonian Problems
with
with n vertices of
greater than or equal to k.
t t.9 Let G be a
Show that:
(a) G contains an
cycle of length greater than or equal to
k+ 1;
If G is 2-connected, then it contains either a Hamiltonian
or an
cycle of
greater than or
to 2k.
It.l0 Let G be a
with n vertices and more than (nk ~ 2. Show that G contains an elementary
of length at least
11.11 Let G be a digraph with n vertices such that the indegree
the outdegree
of every vertex x satisfy the
n
d-(x)~2
and
(x) and
d+(x)~2'
Pin,
11.14
(;-1
Denote
H(n, k) [DH(n, k)] the number of Hamiltonian walks
k edges in common with a
Hamiltonian walk
paths]
path] in the l'ntnn'P!pgraph K. [complete digraph
Show that
0-\
H(n, k)=
DH(n, k)
1'
) (n-
12
Permutations
12.1 Let r be the smallest positive
identity permutation. Show that r is
the lengths of the
of the
11
nP) =(n +m
PES",
~ L
m.~s.
1),
sgn(p)nPJ=(n).
of the permutation p.
such that
XI~
1 for i
=11
1, ... , p.
(-lyG)C(n
k-j),
59
Permutations
Prove
1.
12.11 Denote
that p2 = e. Show that:
(a)
the number of
1
+(n
(b)
(c)
2,
o~o
Po to
exp(t+
60
12.13 A set T {ll, ... ,tn-d consists of n-1 transpositions of the set
X={l, ... ,n}. Associate with it a graph (X,
with vertices 1, ... ,n whose
edges
are transpositions in the set T.
Show that the product 1 t 1 t2 .. t n - 1 is a circular permutation of the set X
if and only if the
(X, T) is a tree. Deduce from this that the number of
ways in which a circular permutation on n elements can be written as a
of n 1 transpositions is equal to n"- 2.
12.14 Denote by pen, k) the number of permutations p E
of the set
{1, ... ,n} which have
= k inversions
i <j for which
> pun
Show that:
(b) p(n, k) = p
1 0
100
A= 0 1 0 1
o 0 0
0
0
0
1
000 0
12.18 Find the number A(n, p) of permutations of the set \1,2, .. n} which
satisfy the inequality
p(k)~k+p
for k = 1, ... , n.
Permutations
12.19
61
If A" denotes the number of up-down permutations of the set {1, 2, ... , n}.
show that the exponential generating function of this number is
sec x + tan x,
where
1.
i = 1, ... , n
for every
i= 1.,." n-3.
, Un
formed
2,
Determine f(6).
12.22 A permutation pel) p(2) , .. pen) of the set {I, ' .. , n} is said to have a
fall at p(i) if p(i) > p(i + 1), where 1 ~ i ~ n 1: by definition, every permutation
has a fall at p(n). The Eulerian number A(n, k) is defined as the number of permutations of the set {I, ... ,
exactly k falls. Show that:
(a) A(n, k) = kA(n-l, k)+ (n - k + l}A(n- L k -1) for n ~ 2, and
l)=lforanyn~l;
A(n,n}=
(c) x"=
(d) A(n, k)=
12.23
A(n, k)
k-!
+k-
n
(
(-l)j n+
\ J
for
11
??: 1;
(k- j)".
such that
...
...
N(4m+3)=O
13
The Number of Classes
of Configurations
Relative to a Group
of Permutations
13.1
13.5
show that:
on n vertices is given
gn=L
(d)
d 1 +2d 2 +"'+ndn n,
(1)
and
1{
G&=2
where (k, /) is the
k.tl dhd{(k,1)
n
1.
(b)
(2)
Dd
dn=L
(d)
en
'
where Cd
1 d. - Lkeven dk } The rest of the notation is
as above.
(d) The number of nonisomorphic complete
digraphs
(tournaments) with n vertices is
to
dl
+ ... =n.
(3)
64
of length i of the
where
represents the number of
g eG for 1 ~i~l1. (G. P6Iya.)
13.7 The number of ways of coloring the six faces of a cube with m colors
(two colorings being considered distinct if and only if they cannot be obtained
from each other by a rotation of the cube) is equal to
i4(m 6 +
+ 12m 3 + 8m 2 ).
be a permutation of m
denote the
index polynomial of G is
13.9
{j,
Let
p, ... ,
PIG;
Xl' X2,
.)=r
group of
Fig. 13.1
14
Problems of
Ramsey Type
14.1 If the poin ts of the
are colored with three
show that there
will always exist two points of the same color which are 1 unit apart.
14.2 Show that if the
of the plane are colored with two
there
will
exist an equilateral
with all its vertices of the same color.
orthe
of the plane with two colors for which
There is, however, a
no equilateral triangle of side 1 has all of its vertices of the same color.
14.3 Show that whenever the points of the plane are colored with two
which has
colors, there will
exist an
triangle of side 1 or
an of its vertices of the same color.
13
1,13.
14.5 Let ABC be an equilateral triangle, and let E be the set of all
AB,
and CA (including A, B and C). Detercontained in the three
mine whether, in every
of E into two disjoint subsets, at least one of
the two subsets contains the vertices of a
14.6 If three distinct
say a and b, such that
is a
are
of 10.
14.7 Let aj, a2, .. " ah2.,.1 be a sequence of numbers. Show that it contains a
monotone subsequence with k + 1 terms.
function defined on the set {I, ... , 2" - 1 1
14.8 Let f be an
with the property that for i == 1, .. , ,2n - 1 one has 1 ~
~ i. Show that there
exists a sequence
65
66
for which f(al):;S; ... :;s; f(a n ). However, this is no longer true if 2n by 2"-1_1.
is
(p,q
14.12
14.13
R(k,
k)~
!e] + 1,
where equality holds if k = 2 and k:::: 3.
14.16
x+y=z.
14.18 Consider a coloring with k colors of all the 2" - 1 nonempty subsets
such that
of a set with n elements. Show that there exists a natural number
67
for every n):no(k) there exist two nonvoid disjoint subsets X, Y. such that
X. Y, Xu Y have the same color.
14.19
14.22 Show that for every partition of the set of integers {1, 2... , 9} into
two classes, at least one of the classes contains an arithmetic progression with
three terms.
14.23 Show that in every partition into two classes of the set M =
[1, 2... , 256} there is a class
a geometric
with three
terms.
From the interval
(3" + 1)/2J one can select a
14.24 Prove or
set of 2"
containing no arithmetic triple (three numbers in arithmetic
progression).
14.25
R(3, r):S;
for every positive
t):
(2+3
2.
(a) fz(n)=n;
n+1J
j [ -2-
.If n
(b) fJ(n)=l
l~+l
ifn::2(mod4).
68
R(K 1
m+11
."" KI .nl= { m +n
ifm or 11 is odd,
1 jf m and 11 are both even.
for any m,
n~
the formula
-1)n+1
l.
Part
II
S L TI
69
Solutions
CHAPTER 1
1.1
tal
Let
[n/2]
and
expansion. In
(n)( k-l'
n)
B.=2 k~O k
I (n)2
k
k=O
B.-_
(2n).
n
n \( n )_(n-l
2n ).
n-k) k-l -
An
and the
binomial
Since
71
(n+k)
k
!tn):::::
1 .
1
f(n+l)=2:: (n+ kL+k) 1 =2:: (n+k)
k 1 nf (n+k)
k-l
n+l
.+1
k=O
f(n)+
1 n+2
k=0
1) 2"+1
(n+~~~
1)
-C::12)
+H(n+ 1).
Thus f(n + 1) =
for every n ~ 1. which implies that
Fibonacci Quarrerly, 2 (1978),
=2". [D.
..
n-2}.
1.=
"-2
"-2
Aq[
2;
it is seen that k - 3
~ 1)_Cn;
=(2n+2)
(2n+l)
o
1 +
+C;)-Cn1
1+
(2n\_(2n-1
0 + 2)
+ ...
(2n-o 2) +.
l'
Sn+I=-(Sn+
1=
nO +
The proof of (c) is completed
equating the coefficients of X"-l on both sides
of this equation and using standard properties of binomial coefficients.
1.3
1+'-1
G)Sk(n)
1+
=1+ ((p+l)'1.4
formula.
[f n
+ 1)'.
the
is even,
Newton's binomial
(2)
l)B~.
(.Jm+
==
(3)
__ .~ ...... ",,"vutvtUlUUJ
I\:~ liriU
vrapn 1hcory
(-Jm+
and thus
eM and
Dn are related by
-(m-1)D;.
(~)G)
n!
nl
m k!
(c) The identity is established by induction on m. For m=O both sides are
equal to 1.
that (c) is true for m
1, ... , p - 1, with p~ 1, it follows
that
f (- l)k (n):=
k=O
1 (_
'"
_(-11- 1
It has thus been shown that
m~O.
p/
\k/
75
Solutions
(d) It will be shown that both sides of the equation represent an enumeration
of the same quantity.
The left side can be interpreted in the following way: Choose k elements from a
set M with IMI = m elements in (~) distinct ways. Consider another set N (with
INI "" 11 elements) disjoint from M. Choose m elements from the union of the set
N and the k elements previously chosen. One can do this in (":k) distinct ways.
It follows that the number of ordered pairs or sets (X, Y) where X eM. YeN v X
with IXi=k, !Yi=m is
to (;)(":k). If the result is extended to k which
varies from 0 to m, the number of all pairs (X, Y) will be equal to
k
m /
This
can also be solved
first choosing the sets Y n M and Y n N.
If IY n
then 0
and it follows that IY n MI = m
Thus we can
choose Y so that IY n NI
and IY n MI =m
in Cll",':) different ways. It
remains to choose the set X so as to satisfy
YnMcXcM,
c
and this
76
The notation (:) =p( p -1).. . - q + 1)/q! will also be used for
values of p.
(0
using (a) it follows that
(p+~-J kt (~)(k)(~}
n )(q)(p+q-j)=
I __
j
q
(n-p-q n! _ _
+q-j
j:>O
(;)(~)C-p)
==
=(;)
e)(:=:)
G)(:)'
and
one can deduce (g) from (f). Finally, (h) follows from (g) by setting
1.6 Let S(I, m, n) be the sum of the left-hand side. By replacing
2n +2)
(n+k+l
with
n+k
q=p.
S(l, m, n + 1)
21 )( 2m )( 2n + 1 )
( I+k m+k n+k+l
(1j
2)' ( 1 k
'k
21)( 2m + I )( 2n + 1 )
I+k m+k+1 n+k+l
L
k
k (
(-1)
2/- 1 )( 2m + 1 )( 2n + 1 ) _ 0
l-k 1 m+k+l n+k+l - .
by replacing k with - k - 1 and observing that the terms of the sum can be
grouped in pairs with zero sum, and by using the standard formulas. In this
case the last representation of (/+n+ 1)(2m+ I)S([. m. n+ 1) is symmetric with
respect to m and n, which implies that
(l + n + l)(2m + I)S(I. m, n + 1)
(2)
The proof is now completed by induction on n. For n =0 both sides have the
q~n.
value (~I)e:). Assume the formula is true for all triples (/, m, q) with
It then follows that
SU, m, n + 1)
(/+m+
+n+
(I + m + n + 1) !(21) !(2m) !(2n + 2)!
78
But
+b)P(l
L (p)
.
!
II
1=0
to
:" en
3
Xi
+xj2"+
C/)(~)
j+i)
(1
and
2"
(_1)i(2~)3 =(
t
1)" (2n)(3n)=(_1)"(3n)!
(n !)3
1~p~2n
(1)
But
(2)
for every p =. 1, ... , 2n. In order to prove
use the
problem with
to the following values:
(l)
(II)
of the
a
b -l,andq=
a = x, b = 1 + x, and q = 2n - p.
(~)Cn~p)xp-j(1+X)i=
(-1)P-
e)C
t+i)O+x i .
(4)
Solutions
79
(1 +x)2n and
coefficients of x P, one
(-1)P
-p+
I(-
;=0
But
I=O!
! !
(-
(_1)k (
2n
n+
But
l}k
c:r,
+x+
={(x+ 1)+
+l)"+C)(x+
+G)(x+ +...
This
an=l
n(n
+ -'---'--....,.,--.-----.:. + ....
The exact form of the last term
80
(2k)!(n)
(k
2k'
(b)
the
First show that ak a2n-k' Then set x= 1.'y and multiply both sides of
.1'2". It follows that
( y2 + .I' + 1)n =
with the fi r5t
x for x and obtain
substitute
ak=a2n-k
1-""'0''''''
4"
(1 +X2 +X4)"
L(
k= 0
The
of the
side must contain
even powers of x,
because the left-hand side also has this property. Thus the coefficient of
in the
side is zero or:
which is
(c) In order to prove (c) one substitutes x 2 for x in the expansion of the
statement of the problem and obtains
in this
The coefficient of
obtained for (1 +
toano
the
is
+ X4)", it can be seen that this coefficient is also
+2a~-
...
+(-
and hence
I-G)
+(;)X6
={
'''+(-l)"G)x
(~) X+(;)
3n
It (:)
Solutions
81
and
i.J3
After equating the real and imaginary part of the left-hand side to zero and
using the notation
SI=aO+a3+ a6+ ... ,
S2=al+ a4+ a7+ ... ,
S3 = a2 + as + as + ... ,
it can be shown that
SI- .)2'"!-S3=0
2
'
where
SI =aO+a4+ a8+ ... ,
S3=a2+ a6+ a l0+ ... ,
By equating real and imaginary parts one obtains, by virtue of (e), the following cases:
112
(2)
(3)
n=2
(4)
l(mod4)whenSI=S2=
4)when5 1 =
n=3
4) when 5 1 =
+
(3"
Thus three sums are equal and the fourth differs from them by one.
(h) Use induction on n,
that ak=a2n-k for 0..;;; k..;;; n. For n=2.
it follows that ao = a4 = 1; a 1 aJ = 2; a2 =: 3 and the property is satisfied .
.... l1nn,n~F that the property is true for every
2";;;m";;;n (n~
and let
0+X+X2)"+I= +n l x+b 2 x 2 +" +
Since (1+x+X 2 )"+1
1""aIX+'" +
1""X+X2), it follows that bp
+ap-l+ap-2 for
every 0";;;p";;;2n+2. Take a_j=a_2 a 2n ';'l=aln+2=0.
p";;;n or p~n+2,
one sees
that
>
1 or bp >
by
the
previously established recurrence relation and
hypothesis. It remains
to show that
I
>b n and
It follows that
+X1"" ...
+ x"'),
where
and in
the index of T is
83
Solution.
more than the other sums, which have a common value. Thus j == i 1 == -/1
(mod m+
This means that j+n 0 (mod m+2) and Sj=
+11"-1;,2) 1. But the other sums are equal to
7 I)" 1
+ since So + S1
... + S",-rl =(1 + 1 + ... 71)"
+. It follows that the property is true
for n.
one can conclude that
If n is odd. then from the induction
the sum 7; is greater by one than the sums with a common value. As in (a), one
can show that the sum Sj'
n == 0 (mod m 7 2) is smaller by one than the
sums with a common value.
Thus
++
1,
to
(m+lt71
m+2
In both cases the
for the sum Si is val id for n and hence the property
is true for every natural number n. If m = 1, then Newton's binomial formula
yields
SO=(~)7(;)+G)+ ... ,
=G)+(~)+
+.",
+(;)+ " ..
just established
that for every n. two of these sums are
and the third differs by one. For m 2 one obtains property (g) from the
previous
k71-2(k
n+
2n
k-l.
84
Note that in both cases the coefficient of x' can be written in the form
n-In
k-ll
1.12 The values a 1> , ar are obtained in the following manner: Let a l
be the largest
x which satisfies the inequality
Denote by a2 the
~ ~l)
Finally,
Qy
a2
+ ...
n- [( at) T. (
J
r-
(ar-t)]
2
It will be shown that at> a2; the remaining inequalities a2 > a3 > ... > ay
can be established similarly. The fact that ar ~ 0 follows from the definition of
a, _ I' First note that
>n
(\atTl)
r
an d
1) -(art) >
Q2)
1 '
that is,
>a2
(at .... ,
... ,b
>bb
and with
that at
r ). One can suppose for
since if at =b\> the
!-'V,UUj,Hjlo\ terms can be reduced, and this
can be
for a2 and b2
> ... > b, ~ O. it follows that hi - i~
1 for i = 1, ... , r
In view of
r-l
r-l
T'"
(hi
T(bl-(r-
-(r-
85
Solutions
r-l
-(r-l))
-(r
r-l
-k 1)
n-l
(x k -:-
o:(n, m)=
1)[( k )+ ( k \]
n-m
m-n) .
Hn=m,then
and the
If for
n)= 2n).
I (2n-k-l)(
k
)=e
n-l
\n-m
\m
-m
k:!
(1)
86
UZ=
2n )
( 2n- m
n
= IUn
Ak =
k=1
(2)
( 2n-kn-l
IAkl = \
=1
(2n-k-I\( k
n- 1 ) n
=(\2n2n- p),
or
(2n-k-l)(1m kn)=(2n).
m
n-l
e,;)
in this case.
(k+ I)
.,---:---: {n
for
O~ k~
(n - k
87
Solutions
\::.1
(n .
L.,
k=O.
1) n" -
"(
k /
k +1).=
1 \}
L.,
k=O
______ n"
1-1<
=n".
33(1962),178-1
1.16
(a:+a~+
... -!-a;)(ar+
-!- +a~)"'(a!+a2+
...
+a~)
is an ordered
of the set {I ... , n}. which may contain empty classes.
note of the upper indices of each
in the last slim indicated,
an arrangement of the set of objects {I, ... , n} in p
one sees that it
boxes Yl, Y2, ... ,Y p slIch that h contains nk
for k = 1, ... p. In fact, irone
takes objects iI, ... , in, in box h, ... , objects k h .. , k np in box YP' then slIch
an arrangement is also obtained.
the rules for removing parentheses,
it turns Ollt that these are un'v",.,,,
n!
nl
arrangements of n
Take = = ...
becomes
at at
where the upper indices now indicate powers. This follows from the fact that
88
for each
ofnintheformn=nl+ '"
.~., nJ
terms equal to
a~2
...
i)
1.17
to Problem Ll9 there are (~_
of m as the
sum of h positive
Let .'II denote the number of terms
=m. where
of this type. It follows that SI + ... +sk=h and
k
the
term of the sum.
If the n urn bers SI
this property are fixed, then the n urn ber of ways in
which m can be written as a sum of h positive terms such that 51 terms are
to i for i;;: 1 is
to the number of arrangements of a set of h objects into k
such that the kth box contains ii.
This last number is given by
C!'.~.,
Thus the
identity is true, since it has been shown that both sides are
equal to the number of different representations of m as the sum of h
1.18 Let N=
... , n}, R={l ... , r}, and C(N, R) the set of increasing
functions f :N -> R. Identify the increasing function f with the increasing word
b l b z ... bn, where bl = f(i) for i = 1, ... ,n. Since f is increasing, it follows that
l~bl~b2~'"
~bn~rfor l~i~n.
Consider a mapping
F:C(N, R)-Pn(X),
Because b l
~ . . . ~ b",
l}.
lf b l ... bn::fo C I C2 ... CM are both increasing words, then there is an index
i such that, for
b1 =c!, . . ,
I=Ci-1 and b/<Ci where l~i~n.
This
that bf +
l)<ci+(i-l) and bi+(i-l)fF(cl'"
One can
conclude that F(b l . bn)::foF(CI ...
and thus the mapping F is
If Y X satisfies! Y! n, take Y = {J'l' . , , , rn} and 1 ~YI <.1'2 < ... <
r+ n 1.
Let bi=Yt-(i-lj for every 1 ~j~n. Then b! ~ ~ ... ~bn and bi E R for
the definition of the function F, one finds that F(b! ... bn )
every 1 ~ i ~ n.
= {Yl' ... , Yn}, rrom which it follows that F is
Since F is
it can be inferred that the number of increasing functions
f:N ...... R
89
Solutions
is equal to IPn(X)I=(n+:-l)=[r]n/n!.
1.19
Define the
sum
p"
2"k"-n-1.
If Uj ~ for every i, it follows that
to the number of
words of length
n - 1 formed from letters of the set {O, 1, ... , m} of cardinality m + 1, that the
number of combinations of m + 1
taken n - 1 at a time with replacement
Problem 1.18), and hence to
51 , , 50 _ 1
1"51 <52<'"
is strictly
<Sn-l"m
m('rp!'l~l
since
1.
c- :).
1.20
of the
of n in the form
(x!
n=nl+"'+n p ,
where each n, is a
are considered
different if
differ at least in the order of their terms. From the
to the number of
problem, one can conclude that this number is also
combinations n + 1 take p - 1 with
It follows that the number of
terms is equal to
-'-(n_+_l..:...)(:.....n_+-'---:-.,:-~-....:.. = (n + p p-l
1).
For p=2 there are (.""l)=n+l terms; this can also be shown by
Newton's binomial
1.21
Let
f(x)=2
{(X~l)_r(X~l)+
... +(X:l)}
If m< 11, it is the case that (:) = O. This together with the formula for the sum of
binomial coefficients implies that fix) = 2'" for every 1 ~ x ~ 11 + 1, x an integer.
The highest-degree term of the polynomial f(x) is contained in the expansion
2(X: 1)
-1) ... (x - n)J/I1!, and thus has degree n. Since the polynomials
f(x) and P(x) are both of degree and take the same values for
1 distinct
values
it follows that they are identical. Thus
11
11 +
+!
an' Then
mtm)k = {t ddt(~)}k
It
~ ant" = (I
"=0
m"O
2k
-2k)
(l1-k
1.23 The coefficient of x' in the expansion of (1 + x + + .. 'j" will be
equal to the number of ways in which r can be represented as a sum of 11 nonnegative integers:
1
I-x
--=X-r
1/11
implies that
is the coefficient of x" in this expansion. But log{
- xl)
+ x + x 2 -:- .. ). and hence the coefficient of x" in the expansion of this
logarithm coincides with the coefficient of x" in the expansion
+ ... + x") -
(x+ '"
---;::---
91
Solutiolls
l-
+ .. + j.+ 1
...
T x")P/ p
.::.-=.--=..:::...,.---:_--=..;:'-~
jl!h ...
By su bstituting for p the values p = 1, ... , n, the sum on the left-hand side of the
statement of the problem is obtained. [1. Sheehan, Amer. Math. Monthly, 77
(1970), 168.J
nj~ nj+ 2,
or
that this is
The recurrence relation for binomial coefficients further
to (~''=-l!(h::l)' The last inequality follows from the fact that
nl - 1 > nj. It implies that the desired minimum is attained when the numbers
nl> ... , nk satisfy the inequality
1 ~ n; 1 for every i, j 1, ... , k,
r
numbers are equal to t + 1 and k- r numbers are equal to t = [n/kJ. Similarly,
in order to obtain the maximum one must show that there do not exist two
them
nl T 1
numbers nil nj which are both greater than 1.
and nj-l
one would obtain a
sum. Thus the maximum is
attained for a
ofn in theform n=(n-k+ 1)+ 1 T '" + 1.
1.26 Consider the parts ml> m2, ... mk in the rpn,rp<pnt
of n in the form
for every i,
I, ... , k. In fact, if the contrary is assumed. then there are two
indices i and j such that ml ~ mj + 2. In this case, one can write
mlm2 .. mk'
92
of inequalities
(l ).
for an
(mb' .. , mk) ~ 4, since in the contrary case one obtains 5 < 3 x 2, and this con-
tradicts the maximality of the product under consideration. In the same way
one cannot have mi = mj =4 since 4 x 4= 16 < 3 x 3 x 2 = 18. There do not exist
three numbers ml equal to 2, since 2 x 2 x 2= 8 < 3 x 3=9. Note that 2 x 2
to 3. It may be that a
and thus almost all numbers ml>' .. ,m. are
number mi 2, two numbers are equal to 2, or a single number is equal to 4.
Thus,
by A(n) the maximum value in case
one can deduce that
3n!3
for n=O
3),
A(n)=
4x
,2 x
2)0
]\;ow we proceed in a similar manner for case (b), by first showing that
if there is an ml ~ 8, then
max (mi' ... ,mk)~ 7. In
-5)
2 '
which is
to m2 -m< 10(m- 5)(mor 9m 2 -109m+ 300>0. This
trinomial has two real roots in the interval
which establishes the
of the binomial coefinequality. Thus if there exists an ml~ 8, then the
since one can
the part
to
ficients from (b) cannot be a
mj
two parts
to 5 and mj - 5 respectivel?:, and the product of the binomial coefficients therefore increases. Since G) > (2)@' (~) > G)(~), and G) > (~)(~),
it follows that for n ~ 7 the desired maximum is equal to G).
If n~8, in the case of the maximum it follows that max(mj, ... , mk)~6,
since in the opposite case there exists an m, = 7. But relation (1) implies that
there must exist at least one number mj which is equal to 6 or to 7. For
=360.
Similarly one finds that
=600,
93
Solutions
nI,
can be equal to 4 or to 6
(~)(~)(~)<G)G)(~)(~)
216=(~)(~)(~)<
3600,
=225.
In conclusion, almost all num bers rnj are equal to 5, but at most two of them
are equal to 4 or to 6, so that relation (1) is satisfied,
Let B(n) denote the maximum in case (b). Then:
B(n)=C)
ror
n~7,
identities hold:
(1)
B(n)=10" i5 forn
(2)
B(n) 15 x
6)i5 for n
1 (mod 5) and rnl = 6. rn2
=rnk 5;
B(n) =225 x 10(n-12)15 for n=2 (mod 5) and rn 1 rn2=6, rn3= .. ,
= rn k=5:
B(n)=36x lO(n-SUS for n 3 (mod 5) and rnl =rn2=4. nl3='"
(3)
(5)
= rn k=5:
=rnk =5;
B(n) 6xlO(n-4) ,S forn=4(mod5)andrn 1 =4,/1l2= ,,' =rnk=5
Consider
max
max
l~k",nnl+'+nk=n
Problell'l~
94
the
-Y) ~x+y'
(2h)
h Y
c:~:)e:~y ~J.
Let x + y= k(constant) where
2h. Then
O~ k~
-X)(3h- Y)
x
h y
-X)(3h- Y)
2h
2h
the factors two by two in the order in which they are written
it can be observed that their sum is constant and
to 6h - k,
6h - k - 2, ... , 2h - k + 2. Thus the
become minimal when the factors
differ to the
among themselves.
two cases'
One can
(a) k~ h.ln this case the products of the two factors become minimal simultaneously for x =0, y == k or x == k, y= 0. Let x = 0, y k. In this case it is sufficient
to show that
3h)(3h k) >( h
h-k""
But
e:--:)
2~k)~C:)
Recallihe standard formulas for binomial coefficients. It suffices to verify that
G~=~)~Ch2~k).
95
Solutions
But 4h-k';J
so k~
and the
follows from the monotonicity
of the binomial coefficients. The proof also establishes that
holds
only when k == 2h, that is, for x == y == h.
1.28
+ ...
-!-
men == IYI = p.
k!
k!
-(IXI
distinct ways.
Thus the number of
numbers
+ ... +
96
,(x+y+n)"
oy
n(x+y+n)M-l
+(y+ l)-t-(n-lj}"-1
-t-l)+(n-l)-
Il-k
="-1
(n-l) x"-}
j
-1) x"
j
!S(j, n)=O,
=kt (:)
+ Jo (~)
(a), the second term of this sum is seen to be equal to
by
"II n (n-l)
k=O
-k).
l)-t-(n-l)=n(x+(y-t-l)+(n-l))"-l =n(x
-t-nrl.
97
Solutions
Thus
+n-
-k
y+
-n(x+y+n)"-I
=(x+y)(x+y-t-nln -
~)
both sides by
x}'.
1
l(v+n-kl"-k-l=-f(x+y+n)" l-(r+nl"
(x+
'"
X '
1,
1
+ {(x+y+n)"-1_(x+nr 1 }.
y
is obtained.
f(n-t-2)=af(n+ l)+bf(n),
Cdl(n+ 2)-;- C d2(n+ 2)= C I {af!(n+ 1)+ bfl(n)} + C 2 {af2(n + 1)+ bfz(n)}
that h( n) satisfi es
r2 = ar-l- b,
then the sequence 1, rl' ri, ... ,
then f(n + 1) =
1 and f(n+ 2)
sees that
(2)
these values in
r1 ;
one
== arj + 1 + br7,
since a simplification of r7
d = arl + b. The assumption b implies
that r 1
If the characteristic equation
has two distinct roots r 1 i:-r2, then
r~ and f2(n) ri are solutions of equation (1).
Recall that for all real numbers C 1 and
the function f(n) = C 1 r'l +
is a solution of the recurrence relation (1). N ow we show that every solution of
(1) has this form. First observe that every solution of(1) is uniquely determined
Probl~ms
98
by its initial values flO) and f(1). It is thus sufficient to show that the system
of equations
= frO),
Cl
c 1'1 -t"
== f(1),
has a solution for every choice of f(O) = bo and f(1) = bl' The solution of the
system, when rl #-r2. is
by
C 1 = =---"""'::""--r1 -72
r2=ar-t"b
has a double root, it follows from Vi!~te's relations that a =
thus equation (2) can also be written
b== -
rt. and
r2 =2r l r
The recurrence relation
f(n -+ 2) = 2r t!(n -+ 1)
Verify that
f 2(n) nr1
rUin).
(4)
f2(n+2)=
and thus (4) becomes
which is an identity.
Thus lAn) == nr'i is a solution of recurrence relation (4). One can conclude by
similar reasoning that f(n}=
fl(n)+Cd2(n)=r!(C 1 -t"C 2 n) is a solution of
(4). The constants C! and C 2 can be chosen so that fin) satisfies arbitrary initial
conditions for n = 0 and n = 1. In fact one obtains the system
C 1 = f(O),
rl(Cl
-+C 2 l= /0),
f(n+k)=at!(n-+k-l)+'"
99
Solulions
I == a l l + .. , T
ak'
If the roots of this equation are r1 , " rs and their multiplicities are rpcnPI'!i\IP
. , . , m", where m 1 + '" +ms==k, one can show similarly that the
solution of(5) has the form
ml ,
!(n) =
- 1 )rl'.
i~s
r2
r-2=0,
1. The
an
C 1 2n +
1)",
= 1,
=t, and
an
1 +(
_l)n}.
D<---'----'
Fig. 1.1
.vv
r-~--------------~B
Fig. 1.2
square with side 1 remains uncovered in the 3 x 3 square with side AD. It can
be covered in a unique way by the striped domino. Thus
U(2n+ 2) = 3U(2n)+ 2V(2n-
(1)
where V(2n) denotes the number of ways in which one can cover the
ABeD of sides 3 and 2n to which one has added a
of a
its long side to the side AD of the
rectangle with sides 2 and 1, by
1.2 it follows that the additional domino can be covered in two
From
ways, and hence
U(2n) + V(2n-
Now in (1) use the expression for V(2n-2) given by (2) to obtain
=3U(2n)+
2)+2V(2n -4). From (1) it follows that 2V(2n
3U(2nand thus the relation becomes U(2n+
3U(2n)+2U(2n-2)+
U(2n) - 3 U(2n - 2). This establishes the linear recurrence relation
U(2n+2)
(3)
4U(2n)-
J3,
U(2n)==
are determined
where
[1.
'I'Ill-"f,
with c or with d.
101
Solutions
Each word of length n which satisfies the conditions of the problem can be
these
Let x.
obtained from a word of length n 1
denote the number of words of
n which start with a or with b, and let J'n
denote the number of words with first letter c or d which satisfy the given
conditions. The following recurrence relations hold:
Yo
1+
l'
the equations term by term one sees that
l+Yn 1)+2(x n -2+J'n-2)'
Now calculate
Zn
r'i +
Zn=
and
z2=14.
the system
C1
3+Jfi
2
C 3
2
4
=,
14,
yields
2Jfi
(n-2)-(k
k-l
Ifz=F
withsolutionsrl 1+
andr2=(1solution of recurrence relation (1) is
the general
an =C 1 ri +C 2 r1
where
and
are determined
(2)
the system
C1 +
= I,
---::---=1.
Therefore
and
and thus from (2) it follows that
If z = - t one has rl = r2
and hence, according to Problem 1.31, the
solution of recurrence relation (I) is
(3 )
where
=ao=land
=(al-rlaoJ/rl==1.After
together with r 1
in (3), one finds that
n+1
an=T
for
these substitutions
z -;\:.
-1) .. (e>=kz_l)
IUj
By equating the coefficients of z" on the two sides of this equation for n == I, ... , k,
one can conclude that S(n, k; Xl' ... ,
for
n<k and S(n, n: Xl"'" Xn)
==n!Xl X. Thus Sn(Xl,""
aoS(n,n: Xl ... 'xn)=aOn!xl "'X", [L.
Carlitz, Fibonacci Quarterly, 18(1) (1980), 85.J
1.37
Let
., . Xj-I>
O.
Xi+b""
for k ~ 1, where
= Pi by definition.
In fact. the G) combinations of the n variables taken k at a time can be
written as the union of the (~=~) combinations of the n variables taken k at a
time which contain Xi' and those k 1) combinations of n variables taken k at a
time which do not contain Xj. Thus one can write
=
+z1p,
where ~p is the sum of all the polynomials which can be obtained from P by
replacing k of the variables (including Xi) x I, ... , Xn with zero, and tzp is the
sum of all those polynomials which can be obtained from p replacing k of the
variables X I .. XI I, Xi"" .. X. with zero, in all possible ways.
From (2) it follows that
.. ,= {CX!
. ,X.
form<n
[orm=n
However, the polynomial ip with k ~ 1 does not contain any term of the form
XI'" X n , from which it can be inferred that c is the coefficient of Xl'" Xn in
the
of the polynomial p.
If p(x 1 . , ,
+ . , . + x n )\ then the coefficient of Xl' . x. for n = k is
equal to c=nl/(l W=n! by the multinomial formula (Problem 1.16), On the
+. , . for Xl = . , ,
other hand, the numerical value of the polynomial p =Xn= 1 is
to
(-
v,u"'~v.
I.
IS
104
equal to 0 for O,,;;k<n and is equal to c=n! for k=n, from which Euler's
identity follows.
1.38 Consider the left-hand side of the identity as a polynomial in n. The
constant term is then equal to
-(i) (p-IJP+ G) (p
(Use Euler's formula, Problem
it can be shown that the coefficient of nP is equal to
- ... + (-1)P
(p)PI == 0,
to:
(:){pm
(n (p
since m<p.
1.39 The identity will be established
mathematical induction on n.
For n = 1 it reduces to the identity 1/x l/tx +
l/x(x + Suppose that the
proposed identity is true. Replacing x by x + 1 yields
(~) n+ 1)'
x+l
Subtract this relation from the original equation to obtain
105
Solutions
CHAPTER 2
2.1
40 - 14 - 16
mathe-
11.
40
14-16
11+7+8+5
The students who prefer all three subjects were subtracted three times and after
were added three times. In order to obtain the number of students who did not
any of the three subjects it is necessary to subtract once the four students
who had a preference for all three subjects. The final result is
40
2.2
14-16-11+7+8+5-4=15.
q~2.
IA11+IA21
lAin
which can
be verified.
.... "'''''""\01"' the formula is true for each union of at most q
U'" uA q tln
+
by
l.;l<q
!A,11
\:Cl
+"'+(-1)q+ll!QA1i,
i~
regrouping terms, one obtains the formula of inclusion and exclusion for
unions of q sets. The formula is called the Principle of Inclusion and Exclusion
because of the alternating
of the right-hand side.
2.3 Let Pc Q= {I, 2,. ., q} be a fixed set with !pl =p. The number of
elements which
to all the sets Ai with i E P and do not
to any of
the sets Aj with j E Q
coincides with the set of elements which belong to the
Problem~
I 06
set
for
j E
Q'P.
By
the
of Inclusion and Exclusion one finds that the number
with i E P and do not belong to any
with
of elements which belong to all
j E Q,P is equal to
Ai
\+
IKI=p-!.J
( -I
K:JP
IK'
=p+ 2
-IPI
Sum these numbers with respect to all the subsets PcQ with
I(
IPI=p
IjIKI-IPI
== P elements:
I
I
PCI.:
IPI=p
to n which
uAq'
nq
n-
I -+ I
i= J Pi
I <;i<j.$fq
n
PiP}
-l)q---
Solutions
107
2.5 Let Ai denote the set of the (n-I)! permutations which have i as a fixed
point, and apply the
of Inclusion and Exclusion to find the number of
to
permutations which have at least one fixed point This number is
lAd
2::
1
i<
+ ... +(
n
j~
1)"-1
=C)(n-I)!-(;)tn-2)1+ ..
D(n'i=n!- " Ail=n!-G)(n
~(_l)n-I (~}
l)!+"'+(
1)"
Problem
D(n) can be
D(n)=n!
as
~+ '" +(-1)")
n!'
l!
In order to obtain the expression for E(n), let be the set of even permutations
i. Since there are ~ n! even
in 8 it follows
that
p E 8 M such that
M,
E(n)=in!-I;QI
Ail
nt
IAil+
=~n
Using
E(n)=~ n~ (~) n
=t{D(n)+(
1)1
+(;) ~(n-2)1
I)M-I(n
II}.
...
+(
108
2.7 Let n
P~ ... P~q, where Pb ... , Pq are pairwise distinct primes. The
result can be proved by induction on i l + i z + . . + i q If i l = 1 and i z = .. ,
= iq
then n is a
and the sum of the len hand side of the
becomes (J)(l) + (J)(n) = 1 + n - t = n, and the
is satisfied if, by definition,
rp(1)= 1. Suppose that the property is true for all numbers for which i l + ...
+ r I, and let n be a natural number such that i l + ... + iq=r. Let
={
0 '"
~). ~ l'
Ph2 ... plq
q
2 "" 2'
... ,
I
din
rp(d}=
rp(d)=~+p~' n
rp(d}+
dED,
PI
- plJ=n,
(:: :: ~:),
G3
b)
C3
If a3~O, the minimum value for Q3 is r+ 3 2(r+ 1)= l-r, and thus by using
OJ, it follows that the sum of any two of the numbers
Cl, b2 , C2 is smaller
than r + 3. It follows that the matrix will be completed
in row 3 (except
for the element G3), with elements that are greater than zero. Suppose that a3 ~ O.
In this case one can generate all matrices of the indicated form with row and
column sum equal to r+3, for which the unique nonpositive element is Q3' by
writing the number r + 3 + G3 as a sum of four positive numbers. Again by using
Problem 1.19, it can be seen that for G3
- L ... ,
r + 1, the number of
solutions of equation (1) is equal to
109
Solutions
Since
1
1!
D(n)
._+
(-1)"
n
-'" +
-t
(
_e_=
1
1- t
t
1
(2
+ 2! -
' , . ) (1 + 1+t 2 +
' , , ),
Ai=
It follows that Sn,,,, = mil -IA I u A z U .. , U Ami, since the total number of functions from X to Y is
to m". By using the Principle of Inclusion and Exclusion one can verify that
m
s",m=m"
I
i= 1
But AI is the set of functions defined on X with values in Y J'i}, and thus
(m -It, and AI (1 AJ is the set of functions defined on X with values in
Y"-{Yi,Yj}.Thus
(1A J I=(m- . In general,
iA11
IAII
(1"
(1
(m-k)",
contains
sn.m=m
n (7) (m
l)n+(~) (m
1~il<i2<"'<
where
m: with
(m -
2)"-'"
m.
k, it follows that
(m: 1)-
- ' " +(
110
If n < m, there does not exist a surjection from X to Y and thus Sn ... = O.
2.11
Let Z={Yl""
problem,
...
+( -
-r)".
since Z = Y.
2.12 The number of words which use all 2n letters of the alphabet A is
to
letters can be
among themselves in (2 !)" = 2" distinct ways,
to yield the same word formed with the 2n letters of A.] Let Ai denote the set of
words formed with the 2n letters of A for which the two letters denoted a/ are
adjacent. It follows that the desired number is equal to
(2n)1
2n
(1)
of I nelusion and
v ... vAnl=
rlAi,rl . . . Il
+, ..
(2)
One
' , , rl
111
Solutions
they can be chosen in (~) ways, and hence the number of words which do not
contain two identical
letters can be written
0).
and (3) as
-(nl) --'--- +
(2n)! -
-I)!
2"
2.13
digraph which does not contain a circuit has at least one vertex
x at which no arc
d+(x)=O] and at least one vertex y in which no
A; the set of
with n
arc terminates [Le .. d-( y) 0]. Denote
which have labels from the set p ..... n} which do not contain a circuit, and
which have the property d
O. It follows that
Qn=iA 1 VA 2 v'"
vAni
.AI. ,
I"n Ai'II
i: 1
But
n ... nA-" I
=(n)k 2
k (n-k)a
n-b
r"':-
(m;ly2 ...
A 0 (n;
+~
lr'.
'.,
+
This is equivalent to the expression sought, since n;: 1 S,
A. MacMahon, Combinatory Analysis 1, Cambridge
191
2.15 The number under investigation is of the form
For example, for the number 150=2 x 3 x 52 one has
2 1.
3 _
A(1 2 1 ) -
A(l)" 2)"
(3)(1)2(2) (3)(2)2(3) +
1
nAn; 1m).
=21
!)p.
1;01 A~I=ifl
(n
and thus M(p,
q)
the
IA~n
l2
has the
- I
-uP -
(~) (2
of Inclusion and
+ .. ,
q
- 2
Since the
K p,q
and
Kq,p
are
M(q,
and
" C)
(x
"G)C)
G)"
(-I);
1-1)1
xj.
" e)(;)
(_1)1- J = D j ,
is unique.
0)
C=:).
by
----_._._- -.
Aj is the set
11'1
of representations of m as a sum of II
k E K, it follows that
I (m-i-l\
n
A=
,I
n - i - 1 /I
I
IcK
1\="-1 (_
i
(m-n
(n)(mn-I )
i l1-i
2.19 Let A
1 ..... n and B=(bij)I.}=l .... n be two compatible n-by-n
aij + bl )
In this case at least one of the terms is
matrices and suppose
nonzero, say (Jij, and thus Xi:r;; Xj for l:r;; I, j:r;; n. It follows that A + B is a compatible matrix.
Let AB = C =
1, . . . . ' and suppose that clj =1= O. Since
there exists an index k such that aik =1= and bkJ'r 0. Thus by definition
Xk
and
and by
. It follows that the matrix C is compatible.
Let A
a
matrix of order n. By
the
elements of V one can assume that
Xj implies i
Thus A is upper triangular, which implies that del A=
1 ali 1=0. It follows that ail"f0 for
1=1, ... , n.
Let B
1. .... n = A I, and suppose that B is not compatible, that is,
there is an element Xi which is not less than or equal to x) and such that bij 1=0.
Choose an index i which is maximal relative to this property for a fixed index j.
Since XI is not less than or
to Xi' we have I> j and thus
n
aikbkj=O.
k=l
Qik
2.20
Let Z=
1. . . . .
bean
z ..
I)
=51
to
Wi
Solutions
n
Sli =
mikzki = miizii
+0
I,
since mu=zu 1 and mik:fO implies Xj~Xk' and hence tki 0 for k i. Furthermore, sij=
m"Zkj=O for Xi which is not less than or equal to Xj' since
mik:fO and
imply that Xi~Xk and Xk~Xj; thus Xj~Xj, which is contrary
to the
For Xj<xJ one has su=Ixl<,,,,.;x;mlk=O by use of the third condition
,rn,,.,,..,,,,,ri upon the Moebius function.
Zij= J for i= 1, .... n. it follows from the solution of the
problem that the matrix Z is nonsingular and similarly that M =Z 1 is a
the matrix
compatible matrix. Thus the desired function p(x, y) is defined
I;=
Z-1
= 1, and if
equation
{.l(a, y) =0
b
pta, b)= -
j.J.(a,
a.;y<b
the
defini-
IAI
A C),CB
\1
forA=B,
to
=<
(b)
We show that
{.l(X, Y)=j.J.
116
if:X!=0!2='"
otherwise.
(-It
/ilk) = { 0
a)
=(
=1,
p,(a, Y)
a }' b
Let b/a=k=
p,(dj.
/i
a I}' I b
p,(d)=
dlk
'<ft,1Il.r
the rest of the terms are zero by definition of the function /irk). Thus
(-1)$ = O.
p,fd) =
it follows from the definition of the function Il(k) that /lta, b)=O if a does
not divide b.
(c) In this case every interval of the form
[a,
is a chain (totally ordered
{z i a~z~b}
definition
ad 1.
the interval [al' a 2J, one sees that
/l(al, atl+j.i(a l , az)=O and thus /l(a l , a21= -1. For the interval [ai' a3J the
equation is obtained:
fJ,(at> ad + /l(a j ,
0,
and hence
an) =0.
1 if x= y .
.\ - 1 if (x. y) is an are,
0 otherwise.
o
t-/(Z,
I I
x) == o. It follows that
x)fCr)=
fly)
xl=
lli
SOIUliolls
).
2.23 For every function I :B .... C where ICi x and x is a natural number.
let the kernel of the function j be the partition p of B defined as follows: The
to the same class of p if and only if I(b j )
elements bj and bj of B
The number
of functions I :B->C which have the same kernel Jl is equal to
=
1) ... (x - k + 1) ==
where k =
is the number of classes in the partition p. In
from the definition of the kernel it follows that the desired number is equal to the number of
",pf"l""p functions
on a set with k elements and
its values in a
set with x
[XJk'
Let
I(q)
F(p) =
p
It follows that F(p) represents the number of functions I :B .... C which have as
their kernel a partition q of B such that q,;;; p. Thus q can be obtained by taking
that
the union of some classes of p, which
since the desired number is equal to the number of functions on a k-element set
and with values in an x-element set. It is thus the case that
L [x]C(q)=
q<;p
c( p) = n.
This
For k == 1 the coefficient of x in the left-hand side is equal to 1-1(0, I), since the only
118
partition q with c(q) = I is the partition 0, while the coetftcient of x in the polynomial
[x]"=
-l)"'(x-n+l)
is equal to ( Ir -lj!. Since this identity holds for all positive integral
values of x, it follows that the two polynomials in x are equal and hence f'(0, I)
=(
l(n-l)!.
W. Frucht, Gian-Carlo Rota, Scienria, 122 (1963),
111-1
2.24
Let U=Z
where
ifxi<Xj,
otherwise,
Uik,
Uk,k~'"
un is of the form
Ukn.,j=O
-u+u 2 -
(1+
summation would
+ ... +
and therefore
J-U+
that
that
M is the matrix which defines the Moebius function of the set V. It follows
n
1)=
L (-lYu~:1>
s=
1
where u~~ 1 is the element of the matrix Us located in the row which corresponds
to 1 of V. Finally one finds that
to 0 and in the column which
u~!t =
L
(i,.,."i,J)
. ,. Ui,.,!
=
O<X'l<'"
1 == Ps .
I'" I
since the remaining terms are zero according to the definition of the matrix U.
2.25 Apply induction on n~2. Un 2 then S!-S2~
UA21~Sl'
or
IAI +IA21-IAlnA21~IAIUA21~A11+
The
side of this relation is obvious. and the left-hand side is a consequence of the Principle ofInclusion and Exclusion.
119
Solutions
/1-
I subsets of X.
Ai!,,;;,h-l(_lt- 1
Ai!
and
Anl!,,;;,h-2 (-Ilk
,!n. A/nAn!,
..
! h
Ai";;'
(-1
CHAPTER 3
P(K)
ij'
j= 1
-k
P(K).
P
"n-
( 1
i;
=n-k
(:=;)
120
(1) one finds that the coefficient of Xk in the expansion of [x]" is equal to
L
K
),
.... n-Ij
="-k
3.2 Part
is called Vandermonde's formula. 1t can be proved by induction
on n. It is clear that the assertion is true for n = l. If (a) holds for n ~ m - I. where
m;;;:.2, then
+ Y]m=
m+ 1)
I(X+ Y
m- 1
_\{x
k+y-m+k+l)
k=O
.-1 + m
f [(mk - 1I) + (m -k 1
(mk
1)
-k
<=0
analogously.
3.3
In order to prove
let X and Y be two sets
nand m elements
Every function I :X - Y can be considered to be surjective if one
the codomain, that is, if I: X - f(X) {/(x)lx EX} c Y. Thus the
total number m" of functions from X to Y is equal to the number of functions in
the union of the sets
={/:X-YI
for k= 1, . ,., m, these sets are
since the set
k) (problem
ways. Hence
from Y in
m"
I"
.=1
=k}
It can be seen that IAkl =
with k elements can be selected
k!S(n,k)=
m(m
k)
l)"'(m-k+
[m].S(I1, k)
for
n;;;:'m,
since [111],,=0 for m+ 1 ~k~n. It must be shown that the polynomial x"
S(I1.
is
zero.
But this polynomial has
at most
to n -1, since
n)
l) ... (x - n + 1) contains the term x", but the other terms in the sum
do not contain x". The
equality, which is valid for m = 1. 2.... , n. shows
at most n-l has at least n distinct roots, and
that this
of
121
Solutions
The same argument can also be used to prove (b) by considering monotone
functions I :X->R where IXI=n, IRI=r, and the set Ris totally ordered.
monotone function I X -> R is in one-to-one correspondence with an increasing
word of
... I(x n), where X = {Xl' ... , xn) and I(xtl:;;;;
and the number of these increasing words-called comof r take n-is given by the formula
+n-l)
(Problem U8).
If the number of distinct letters in the word I(x 1) ... j(xn) is k (1:;;;; k ~ n), then
these k letters can be chosen from the set R in (~) ways. The number of increasing
words of length n with exactly k letters is equal to
In fact, if these k letters
are a! <12 < ... <Uk' then the increasing words have the form Cl C2'" Cn
whereci C2
=a tt ci 1 =ci 1 +1= ... =cI 1 - 1 =a2, .. , ci k_
ak. and 2:;;;;1 1 <i2 < ... <ik - l :;;;;n. Thus the number of
words of a length n with
k letters is equal to the number of sequences
2~il<i2<'" <ik t:;;;;n,thatis,itis
to
It follows that
(:= :l.
_:l.
[rJn=JI ~: (:=~)
This equality is valid for every r ~ 1. which implies
3.4
To every surjection
of the set X =
I(YI)U I
l(yZ)U'"
Sen, m)
Sn m
'
k)".
122
m=1
0
0
1
0
0
0
1
10
n==1
2
3
4
15
6
25
5
0
0
0
0
1
k-m-l
123
Solutions
Let p be a
of the set X = ~1, .. n} of type [k,
order of the length of its cycles.
the
which
of p one obtains a word of
n formed from all the letters
enclose the
of the alphabet {1, ... ,
The number of such words is n t.
But the same permutation generates kll k 2 !'" kit!
different
words, since the kj cycles of length i (l"i"n) can be permuted in k l ! kn!
different ways. On the other hand, a
of length i can be written in i ditTerent
each of its i elements. In this way
ways
as the first element of the
one obtains the 1k, . .
other
of
distinct words of
length n. One thus finds (without repetition) all n! words of
11 formed
from the numbers 1. .... n. It follows that
Perm(
! ..
3.7 Use the identities of Problems 3.2 and 3.3 to express the polynomial
[x + rJ" in two different ways:
k
It
$(n,
+.l'l
s(/1, k)
""'-0
=ktG)
n-k
(~)
It
G)xll "
s(k, i)x i
s(n - k,
(x+
=
It
(x + y)"
[n
k==
It
k)
<;0
11
(:)
G) [XJi[
n-k
S(k. i) [x ];
this case
S(k.
,,( 11. k)
m;
SIn - k. j )[J'Jj.
3.8
[xl n =
i'
124
and
n
x"=
S(n, k)[X]k
k)
s(k,
k=O
S(n+ 1, k)
S(n+ 1, k-l)={S(n, k
1)-S(n. k
+k{S(n,k)-
k-l)}+S(n,k-l).
+ 1, k)=
k-l),
k-l)-S(j, k-2)}.
The induction
now
k l)<S(j, k-2), since M(j)~M(n)
for
n, It follows that S(n+ I, k)< S(n+ 1, k 1) for every M(n)+2~k~n
+ 1. Thus the sequence (S(n,
1. . n is unimodal, and M(n+ 1)
M(n) or
M(n + 1) =M(nl+ L No
are known of sequences (S(n,
which have
two equal maxima for n ~ 3.
In the case of
Xk
in the
Solutions
125
n-1
xn = x n -
X ==
ak)=(x Ia)k+l'
=--.(xla)n+l
x-an
(!+a~+a;+
x x
\)txlaJn+l'
The proof of (d) is obtained by iterating recurrence relation (b) for different
values of n.
Recurrence relation (e) follows from repeated application of (a) for decreasing
values ofn.
In order to establish (f) one can write
.=0
m=
n (n
=
m=
k~O S,(n,
3.11
Let fk=
A275 (1972),747-750.]
n
Thus
x
and
fo:::
a~tn
""'0
3.12 Let X =
The set of partitions of X into k classes which
where PI reprecontain at least i elements can be written in the form P! v
sents the set of partitions of X into k classes which contain at least i elements
and
for which the element Xn belongs to a class with more than i
represents the set of partitions with the same property for which Xn belongs to a
class with exactly i elements.
It follows that S;(n, k) = IP +
since
without
by
from the
the partitions in P I are
of the set {x 1, . . . , X n - d into k classes of cardinality greater than or
equal to i. One then adds, in turn, Xn in k ways to each class. The partitions in
can be obtained by considering all the
:) subsets of X of cardinality i
which contain Xn as a class of the partition. To this one adds, in turn, the
Si(n i. k-l) partitions of the 11 i remaining elements in k-l classes of cardinality greater than or equal to 1.
In order to justify (b), consider the set of all functions f :
->
{1, .. ,k} such that IF l(sJI
for every 1 ~ s ~ k. It is clear that the number of
such functions is
to the number of arrangements of a set of n
in
II
126
k boxes such that the sth box contains), objects for s == 1, ... , k, which by Problem
1.15 is equal to n !;jl ! ... A!. By summing these numbers for all solutions of the
)1 + ... +A n with js~ i for s == 1, ... , k, one obtains the number of
f which
If-l(S)I~ i for every s= 1, ... , k. This number must
be divided by
since the order of classes in a partition of X is immaterial.
3.13 Every
into two classes X AvB is
determined
the set A, which is taken to be different from X and 0. Thus the number of
choices for A is equal to the number of subsets of the n-element set X minus two.
It follows that S(n. 2) (2" 2)/2 = 2"- I - J. since the order of the classes in a
partition is not taken into consideration.
every partition of an n-element set X into n - 1 classes contains
a class with two elements and n - 2 classes with one element. The two elements
can be chosen in (~) ways.
In order to prove (C), first show that the
function of
the Stirling numbers of the second kind is
oc
S(n, k) "
--I- x
I)k.
n.
I!
...
and
k!
=k!
0 (-
l)k
e)
Px
to
P~o (-1
in view of the known expression for the Stirling numbers of the second kind
(Problem
Thus k
k) is the coefficient of x" in the expansion of (~ 1)k, multiplied
by n!. It follows from this that
1-1
2) + 2!S(n, 3) 3 !S(n, 4) + ... }
is the coefficient of x" in the
of the sum of the series
(1)
tx4
Since x + + ... = InO + one can conclude that the sum (1)
is equal to In( 1 + eX - I) = x, which establishes the identity for n ~ 2.
3.14 In urder to obtain an
for ern, 3) one must determine the
number of ways in which one can express X = A u Bv C where A, B, Care
nonempty and each element of X
to two of the sets A, B, C. In fact each
element .\ e X can belong to the sets A, B, or C in
= 3 ways. In this way one
obtains 3"
for X in the form A v Bu C, three of which do not satisfy
the given conditions, since they
to situations in which either A, B
or C is
Thus the number ofbicoverings of X with three classes is equal to
(3n - !
1 -1), since the order of the sets A, B, and C is not taken into
consideration.
Comtet, Studia Sci. Math. Hung., 3
137-152.J
of the set .Y v
3.15 Consider a new element z q:
and in each
suppress the class which contains the element :::. One obtains in this way all the'
partial partitions of X without
for the case in which the
partition of X v
consists of a
Bn+ I -1.
3.16 Let
of the series
Now define
We show that if
function g, then L(g(x)) =
3.3 one obtains the
where
the sum
o un[xJn for those values of.\ for which the series is convergent.
operator L by the relation L(j(x)) = I:~o an, if this series is
o a.Bn, where Bo
= 1. Thus
'"
lim
m-
anS(n,
<=0
S(n, k))
In
lim
m-
a"B n
11=0
aMB n
n=
In order to obtain the desired formula consider the Taylor series expansion
r"x"
+
n
exp
Substituting e' = u+ 1 and using Newton's
yields
binomial formula
oc
e"=(u+l)"=
un.
"=0 n
It follows that
that
for
one obtains the expression for the
function of the numbers 8 n ,
3.17
S(n, k),
Sin, k)
Bn
k!
(-It-j(~\r=
\))
ct.
l
j!
l),S(n, kl
(-ll
G)r
Solutions
I*(n, k)=f(n-3, k
(\ n-k k -1 1) + (n -k k\)
1)+f(n-1,
n (n /).
1,k)
I*(n, k)=
f(n-l, k)+
f(n
f(n-3.k-l)
3.k-l)}
+
2'
1+
for n ~ 2. One finds that L 1 = 1 and
rence relation for the Lucas numbers
3.20
First we show
induction on n that
1)"+ - (FFM
1_
n+l
(1)
= 2 and thus
is satisfied.
130
to be distinct even if they difrer only in the order of their terms. For example:
2
1 + 1,
3=2+1=1+2=1+1+1,
4=2+2=2+1+1=1+2+1=1+1+2=1+1+1+1.
The first term is 1 or 2. In the first case the number
is
to u. _ 1, since the remainder of the terms are equal to 1 or 2, and their sum is
equal to n -1. In the second case the number of
is equal to
Un - 2' It follows that
(1 )
,2=r+ 1.
which has solutions '1 =(1 +.j5)/2 and
solution has the form
'2
1.
C\+
It follows that
L'"
n=1
and in view of
one has
j(x)-xj(x)-x 2j(x) =
-\
n=
131
Solutions
<
O~n-
lfn > 0, then in view ofthe fact that 1 is a term of the Fibonacci sequence,
one can find an index s ~ m 2 such that
<
Asbefore,itfollowsthatO~n
l'
n=
+ +
+"'+F q ,
where the indices of two consecutive terms of the sum differ by at least 2.
whereC 1 =1.
As in the statement of the problem, let
+
It follows that
+.,,+ (
,-1
k= 1
1.
.[2(x)-j(x)+x=O
yields j'(x)=(l
take the minus
132
Now
the function
in a power series in x, using the
Newton binomial formula for real exponents, which has the form
(x "t
art + ,;d' - I x +
,;(rx-l)
I
a' - 2 x 2 +
.. ,
where a>O,
This series converges for every x which satisfies < a. If rx E 1M is a
integer, then only a finite number of terms of the series are different from zero
and the
expansion is
the binomial formula named for
Newton. (This formula was not actually discovered by Newton, Mathematicians
from Central Asia such as Omar Khayyam knew it much earlier. In western
Europe, Blaise Pascal also used the result before Newton.
Newton
proposed the
to
In order to
(1-4x)1/2 in a series of powers of x, let y= -4x, rx
and
the binomial (y +
, It turns out that the coefficient of x" is
equal to
1_(_--"-----'-_--=-_-_11_+_0 (-4)"
( - l r 1 21n
1 x 3 x .. , x
n!
(211 -2)1
-::-C--;-:--'----:-"-:
2"
2(211-2).
11
However,
is the coefficient of xn in
obtains the coefficient of x" from the
2
Thus en
"_1 ).
n-l
3.24 Determine the number of sequences of letters which contain the letter
a k times and the letter b m times. and which have property (P): For every i,
1 ~ i~m + k the number of letters a among the first i letters of the sequence is
greater than or
to the number of letters b. It is clear that the number of
these sequences is nonzero if and only if the condition k;?; m >0 is
The
number of sequences of letters which contain the letter a k times and the letter
b m times is equal to Plm, k)=(m+k)!/m!k!
If one determines the
number of sequences which do not satisfy (P),
the desired number is
obtained by subtracting this number from (,";k). It will be shown that the
number of sequences formed from m letters band k letters a which do not satisfy
(P) is equal to P(m-l, k+ 1)
1)' It is equal to the number of sequences
formed from m 1 letters band k + 1 letters a. The proof of this property follows,
Consider a sequence formed from m letters band k letters a and which does
(P). There exists a position numbered 2s + L where s;?; O. such that
not
Solutions
133
Now apply the indicated mapping to this sequence. The result is the
original sequence. Thus in virtue of this bijection the number of sequences
with m letters band k letters a which do not satisfy (P) is equal to the number
of sequences with m letters band k+ 1 letters a which begin with b. If the first
letter b is suppressed, one obtains all sequences consisting of m -1 letters band
k+ 1 letters a. The number of such sequences is equal to
P(m -1, k+
ll=(mm-1
+ k).
(m + k) _(m + k) = k- m+ 1 (m + k\).
\
For
m-l
k+1
n-I
It is clear that this number represents the solution to the problem, since if 1
is replaced by a and -I by h. then condition (1) expresses the fact that the
number of a's is at least equal to the number of b's in the first k positions for
1:::; k:::; 2n - 2. Condition (2) expresses the fact that the number of a's is equal to
the number of h's and both numbers are equal to n-1.
134
3.25 It will be shown that there exists a bijection from the triangulations of
a convex polygon with n+ 1 vertices to the set of
of n
factors in the order Xl' X2,"" x.'
Let Al A2 ' , .
J be a polygon with n + 1 vertices, and traverse the sides
of the polygon from AI to
and so on. until
1 is reached, One obtains a
parenthesized
of n factors by using the following rules:
(1)
When
aside, write a new factor xiin the order Xl'" .,x.,
When one arrives at a vertex which is incident to some
of the triangulation, write a number of
to the number of diagonals which have an
vertex and whose other endpoint has been traversed. Write a
number of opening parentheses equal to the number of diagonals
which are incident to this vertex and whose other endpoint has
not been visited.
In this manner it turns out that for the triangulation of the convex polygon
with
vertices illustrated in
3.1. one obtains the following product
of seven factors:
(x
As
Fig.
:1.1
135
Solutions
1
this
for i = 1. . , .. n -lone obtains a rising path in
the network with endpoints (1, 0) and (n, f(n)). Also join the origin with the
(1,0)
a horizontal segment, and if f{n)<n, join the point (n, j(n)) to
A(n, n)
a sequence of vertical segments, This yields a path with
0(0,0) and A(n, n).
For the
illustrated in Figure 3.2, the increasing function J is defined
as follows:
J(Z}::::::1, J(3)=2. /(4)=J(5)=4, The corresponding
is
indicated
a
line.
It is clear that in
this path consists of n horizontal and n vertical
There are no descents from 0 to the point A(n, n), and the
beneath the line}' = x. One has therefore defined a f'flT'rp<:nnn{\I'n
between the set of increasing functions J :{I, ... , n} .... {I, . , . , n} which
the condition J(x):S;;x for every x= 1."., n and the set of paths with
o and A with the given property. This mapping is a bijection, In fact, it is
live because distinct functions correspond to distinct paths.
In order to show that it is surjective, let d be a path with the given property
0 and A. Define an
function as follows.
and
II.
A(5,5)
4
Fig, 3.2
136
To count the
paths of
2n with endpoints 0 and A(n, n) which are
situated beneath the line y x, observe that there is a bijection from the set of
Xl . . . , X 2n) with Xi = 1 or Xi =
1 for
these paths to the set of sequences
l~i~2n which
the conditions
(1)
+ ...
+X2n=O.
1 (2n)
n+l ,n .
This observation ends the proof.
3.27 For n=4 the number of solutions is equal to 2. Now let n:;:;. 5. A vertex
of the polygon can be chosen in n ways. Join the two vertices which are
which has side d l and a
adjacent to l'\ by a diagonal d\, Consider the
vertex in common with the
which is difrerent from VI' It must have a
Thus the third side must be one of the
side in common with the convex
of
two
which join a vertex located on d l with one of the
another vertex on
Thus a second diagonal d2 can be chosen in two ways.
Similarly, if d 1" " , d;(i<n-3)have been chosen, then there are two possible
choices for
1- There are thus n 2"-4 ways of selecting a vertex Xl and a se3 of diagonals with the desired property,
quence d\}
Each triangulation obtained in this manner has two
which contain
two adjacent sides of the polygon, and hence each is counted twice. rt follows
that the desired number is n 2"- 5 for every /1:;:;' 4.
1-'1
3.28
al
137
Solutions
fo(n) =
(1 )
-k),
j<;k,'2
where Ak .} = (~) - k I) for 0 ~ 2) ~ k. In fact, for k = 1 relation (1) becomes lo(n) = 11(n-l), which has been seen to be true. Now under the assumpholds,
Ik- -k) by Ik 2jk 1)
tion that k<n-I and
+
2j+
k 1) in (l). It follows that
1.
+1
2j
(n-Ik+ 1)),
where
[L.
Math. Nachr., 49
3.29 Let a1
and
sequences
g)(n+ 1).
It is easy to show that
gj+ l(n) for
1.
(1
+x+
-0;+
+(/I(n) and
=[ I
+ I)=y j _
elm, k)x k ] (I +x
k;;.O
yields
c(m+ 1, k)=c(m, k-2J+c(m. k
where dm. k)
ll+e(m, k),
2)+
=4g o(n
3l+5YI(n
2}
3)+3Yz(n-3)+Y3(/J-3j
138
In
(1)
In
ifonereplaceskbypin
and
(Jp_j(n-p)
gp-l-J(n-pgp_j(n-p-l)+gp_j+l(n-p-l)forj
.. ,p,thenoneobtainsan
of form (2) where the coefficients B p "" j.j are given by the recurrence relation
(3)
+ Bp,J
+l,j)-
e(p, j
+I,j-
the
{e(k,j) -e(k, j-
for every
O~ k"
{dk,j)-
j-
=e(k, k)+e(k, k+ 1)
for every
It was shown in Problem 3.24 that the number of sequences (Xl' X2,
1 which satisfy the conditions Xl + '" +Xk~O
for every 1 ~k~ 2n and Xj + ... .;..x 2n =O is equal to {1/(n + 1}}e:). Observe
that there exists a bijection from the set of sequences X =
X 2' .. , X 2") to the
set of sequences a
al' , . , , (l2n+ d which satisfy the
conditions. The
mapping is defined
f(x)=a if
3.30
aj
for
L~k~
a2=xj=1,
a3==xj+x2"'"
andhencea2n+I=0.
ak+l=x1+XZ+' . +Xk
139
Solutions
3.31 Consider a sequence which satisfies the condition of the problem, and
suppress all terms
to n. One obtains a sequence of k terms, where 0 ~ k ~ r,
which satisfies the
condition. For i n the condition implies that the
number of such sequences is zero for r = n. Start with a sequence
of
the numbers 1. .... n - L of length k, with the property that at most i -1 terms
are less than or equal to i for i = 1, ... n -1. One can insert r k new terms
equal to n so as to obtain a sequence
, ... x r ) with 1 ~ XI ~ n which satisfies
the same property. However. the r - k terms which are equal to n can be inserted
in (;) ways, which
to the (r~h)=(~) possible ways of
the
positions occupied by r- terms equal to n in a sequence of r terms.
Now start with all the sequences of length k=O, ... , r composed of the
numbers 1, ... , n -1, which satisfy the
property. By inserting r - k terms
equal to n in all possible ways, one obtains, without repetitions, all the sequences
(Xl' ... ,
with I ~xi~n which satisfy the same property. This implies the
recurrence relation
fin, r)=
kt (:) fin - 1,
k)
for
l~r~n-l,
(1)
f(n,r)
(n-
If n r it has been seen thatf(n, r) = 0, and this coincides with the value
by
Let n>r, and suppose that f(n-l,
(n-l
_1)k-1 for every
k
... , n -1. In view of (1) it follows that
fin, r)
G)
fin
1, k)=
G)
G)
(n-1-
(n-
1)k
kt G)
1)'-1
k-J
r)n,'-l
However, for r n it has been seen that formula (2) is also true. Thus
for every n~ r. [H. E. Daniels, Proc. Roy. Soc., A183 (1945), 405-435.]
is true
3.32 If If
)1 =
I, then these k elements can be chosen in GJ ways
and for the rest of the elements the function f can be defined in Sn-k ways.
One thus obtains the recurrence relation
Sn=
or
"
=}:
k
for
n';:;:1.
x"
= 1 + s(x)eX,
and hence
= 1/(2s(x)
Un.k
_l)(qn_q}'"
_qk-l).
Each system
of k linearly independent vectors generates a kdimensional subspace of V. Conversely every k-dimensional
has Uk .
ordered bases. Thus
simplification.
1'>olutions
141
Let
be a basis for v". The image of an arbitrary Xi can be any
of the vectors in Y, and these n images uniquely determine a linear transformation. There are thus .I'M such transformations.
It will be shown that the right-hand side of Cauchy's
counts the
number of linear transformations f; vn -+ Y
taking into consideration the
dimension of the subspace KerU) consisting of the vectors in Vn whose
is
the zero vector in Y. By Problem 3.33 there exist
subspaces Vk of Vn of
dimension equal to k.
Let 2 1. " " Zn- .. Zn k+l 2n be a basis for Vn such that Zn-k.o.l"' =n
generate the subspace Vk A linear transformation f:
Y has Ker(f) V.
if and only if it maps the vectors Zn-k+ 1 . . . , Zn into the zero vector in Yand
the n - k
vectors Z 1> , Zn-k into a linearly
set of
vectors in Y. The vector ZI can have as its
in Y any of these J' vectors,
other than the zero vector, the vector =2 can have as its image any of the y
vectors which do not belong to the linear subspace with dimension 1 generated
and so on. One therefore obtains (y _ 1)( y _ q) ... (y _ q" - k" 1)
by the image
linear
f:
Y which have Ker(f) Vk and dim(Vk) = k. Thus
O~k~n.Whenk==Otherearefy 1)(y q) .. fy qn-l)such
and when k = n there is a unique transformation which maps all vectors in 11;,
onto the zero vector in Y.
For fixed y this establishes that the
holds. Since y can take on an
infinite number of
it follows that the equation is a polynomial identity
in the variable y. [J. Goldman, G.-c. Rota. Studies in Applied Mathematics.
X LIX(3) (1970),
where oj=aJ
is one-to-one.
m-kE!
2) it can
consider two cases:
(al)
m-kEO
<02<'" <a,,=m 1,
o (mod
Now
the induction
hence
I, k - I
+k-4l/2 J)
k-l
0 (mod
and
142
=[m+ ~-
3J
and
k)
=([m: ~ ~ 'J).
-1)
k-l
and hence I a) is also true for n = m. It is easy to see that the numbers J(n, k) for
k ~ I generate a
line in the Pascal triangle of binomial coefficients. We
and prove that
denote their sum for
1
G.+ 2 =
for any
11
+ Gn
(1)
It follows that
=(P~l
+(~)+(P:l)+(P;l)+
Gn + 1 =
~1)+
... +1,
+(;)
+(P;l)+(P:l)+ .. +1,
2
(~)+ G)+(p; 1)
+(P;1)+(P:2)+ ...
But
+1.
143
Solutions
(p~ 1)=
(:) c-:}
where (:) 1 is the last term of
n = 2p + lone has
(p 0
Gn
2,
+(n+(i)+
1) + (p+4
+ ... + 1.
:l)+(P; +
2)+ .. + 1
'
CHAPTER 4
4.1
that neither (1) nor
holds. Then X contains at most a
pairwise distinct objects and there are at most a copies of each of these. Thus
which is a contradiction.
X has at most a 2 :( n -1,
4.2 The k rows and k columns on which the rooks are found can be chosen
in (7)(~) distinct ways. The intersection of the k rows and k columns forms a
table with k 2 squares, on which the k rooks can be situated in k! ways in positions
so that no rook can attack another.
In fact. the k rooks are found in k different columns. but the rook in the first
column can be arranged in k different ways on the k rows; the rook on the second
column can be arranged in k-I different ways in k-l rows other than the row
on which the rook in the first column is stationed, and so on. The result is that
arrangements.
there are k!
Thus the total number of
arrangements is k !G)G).
4.3 Each of the 19 numbers in A
disjoint sets:
{1}.
\44
4.4 Consider the set {k+ 1, k+2, .... 2k+ I}. which contains k+ 1 numbers.
The sum of each
of distinct numbers selected from this set lies between
2k + 3 and 4k + 1, and is therefore not divisible by 2k + 1. The difference of each
two different numbers lies between 1 and k and is therefore not a multiple of
2k + 1. Let the number
be denoted
It follows that n(k):;t k + 2.
Let A be a set which consists of k + 2 integers. If there are two numbers in A
which have the same residue modulo 2k + 1, then their difference is divisible
2k+ 1, and A satisfies the given condition.
In the opposite case, all the k + 2 remainders of the num bers in A modulo
2k + I, are pairwise distinct. Thus the set of remainders is a
2)-element
subset of the set {O. 1, ... , 2k i. One can also consider the remainders as forming a
(k+
subsetofthesetM {-k,-lk-l), ... ,-l,O,l" .. ,
since
every
p = (2k + l)q m, where q is an
and m EM. However. for
every choice of k+2 numbers from M, there will exist two among them whose
sum is zero, since otherwise one would have IMI:;t 2(k + 1) + 1 =2k + 3. Thus A
contains two numbers whose sum is divisible by 2k+ 1. But IAI k+2, from
which we deduce that n(k)~k+2. From the two opposite inequalities one can
conclude that n(k) = k + 2.
4.5
Sum the
+
If one further sums over i = L .... n. then
IMI + 2nlCkl:;t n3
by summing on k it is seen that nIMI+2nIMI:;tn 4 and thus IMI:;tn 3
The lower bound is attained if n 0 (mod 3).
Suppose now that ;MI = n3 /3. and define a partition of M,
M
A;u
u"'uA~u
U"'U
u"'uA'iu
u"'uA~,
Tomescu, E
American M athemalical
=x~
145
Solutions
function. then
j(f(x) =
=g(y)
... +
=exp(x+ 1
1 + ( x + 1T +
2T +
xn+ !
n!
... ) + 1 (x +
~~ +
"'Y+ ...
+ ...
+ ....
is
is
,M
146
""X
4.11 Fix a subset C E F. The function f : F -> P(X) defined by f(A) A c:, C
is
In
if At 6 C = c:, C, then from the properties of 6 one can
infer that At
t 6 C) 6 C
c:,C)6C=
and thus A l =A 2 It follows
that the num ber of sets of the form A 6 C, where A runs
the family F,
is at least
to
= m,
Let S = {I, . , , , n}, and denote
Ai the set of families of nonempty,
dist inct subsets of S which do not contain the element i E S, Since the
number of families of nonempty pairwise distinct subsets of S is equal to
1, it follows that
4.12
By applying the
vAnl,
IAtv"'v
IAinAjl+-"
1.::>'
It
147
Solutions
In lEK
'~I, where IKI=k, the formula for
follows immediif one takes into account the fact that the set K can be selected in G) ways
as a subset of S. [L. Comtet, c.R. Acad. Sci.
A262 (1966), 1091 1094.]
Since
"T
4.14
Let t be the smallest integer such that [t 2 /4J > 11. Consider the followsets of natural numbers:
(
J'
where
1~j~2
Let
1 ~ k ~ m, denote a subfamily F of this family of sets, which is unionfree.
the number Ik (or
if there does not exist another sel AI,. j, of this
family with m sets F with the property that ik = is and js <h (or jk
and is < [k)'
At least one of the
ik and Aof A ik h must be labeled, since otherwise
AI,.h would be the union of two sets in F, contrary to hypothesis. Since a
labeled
can be an
for
one set
it follows that m ~ t
and thus
or
f(n)~
1.
148
that
=(n-k+ 1
=(n
k+ 1)
i= I
en)
n nk+ 1 (n
k-
(n 1)
== k-l
for every 1 ~ i ~ n. This deduction uses the fact that in this case
for every XES.
= n
k+ 1
4.16 Let me be the smallest natural number with the property described in
the statement of the problem, and set U~= 1 XI = Y. Since iXil = h for 1 ~ i ~ k
and Xjc Y, it follows that k~(I~') and thus
Iyl, or mo~min In orderto
prove the opposite inequality. let Y c X with IYI =mo. Since h ~ k, one can
choose h-element subsets
... , X. such that U~= 1 Xi == Y. In
this property
follows from the inequality mo ~ kh.
however. that mo > kh. Since
h !) < k by the definition of mo, and since rna ~ kh + 1, one can conclude that
149
Solutions
which is a contradiction.
construction IU~:l Xil=IYI mo, and thus
min
! X il ~ mo, which establishes the identity in question.
4.17 Let YcX with IYI=p. The set Y may be written as the union of k
sets, Y = A I V .. , V Ak , in (2 k -l)P different ways. In
each of the p elements
of Y can
to 2' -1 nonempty families of subsets A I' . . . . . [t follows
from the fact that Y can be chosen in
different ways. that
LIA!v ...
vA,I=
(2k-l)P=n(2k-l)
p=!
(n
p=1
1) (2 k _llP -
p-lj
I)
=CAln'"
I)
which is the desired result. One should also note that each or the indicated sums
contains 2"" terms and each of the subsets A I ' ... , Ak can be selected from among
E
American Math. Monthly, 86
the subsets of X in 2" ways. [1.
(1979), 223.]
It follows
4.19 Suppose that a filter basis S contains the sets A I' A l , .. ,
that there exists Bl E S such that BI CAl n
Similarly, there exists
ES
c Bl n A 3 , and so forth. Finally there is a Bp_ I E S such that
such that
I cB p _ 2 nA p and
c A 1+ 1 for i= 1, ... , p-l. It is also the case that
c
, By construction,
Bp-
1 cB p - 2
c ... cB 2 cB 1,
! E
S={B,Bv
S such that B
for i = !, . , . , p.
form: There exists Bc B
.,Bv
(1)
where
... , Cs are
different nonempty subsets of X
Let IX ""-BI
=k. Then B=I=0
that O~k~11 1. Since
is a family of
=n-k. and
nonempty subsets of X~, it follows that o~s~
thus the set B can be chosen in (n:.)=G) different ways. For every choice of
B the family
of subsets of X
[which may be
(8=0)]
150
The number offilter bases for an arbitrary n-element set is obtained by summing
these numbers over k=O, ... n-1.
and Bj where
4.20 Let X be the union of all the elements of the sets
be an arbitrary
1~
m. Suppose that X
... ,
and let (x P(1)' . ,
permutation of X.
There exists at most one index i for which each element of the set AI has an
index smaller than each element of the set B;, In fact.
that this is not the
case. Let
be two indices such that each element
has an index smaller
has an index smaller than each
than each element of B; and each element of
element of B j. By the hypothesis, there is an element x Plk) E Bin A 2 and an
element xp(r) E B2 n A l' Since xpir) E A 1 and Xp(k) E B 1. it follows that p(r) < p(k).
But Xpl r ) E B2 and Xp(k) E A21 and thus p(r} > p(k), which establishes a contradiction.
Thus there exist at most 11 !
B I ) with the desired property, Let i be a
of the indices of the elements of X such
fixed
and consider
that each element of Ai has an index which is smaller than the index of every
element of B,. The number of such permutations is equal to
(
n \
In!
I(
p+q;I p.q.
11
p-q).=(-)
p+q ,
p
To see this, note that one can choose p+q elements from AlvB; in (p:q) ways.
The first p elements in
order of indices are taken from Ai' and the
remaining q elements (with indices
than the elements of Ai) are associated
with BI The indices of the elements from Ai can be permuted in p! ways, the
indices of the elements from Bj can be permuted in q! ways, and the remaining
elements' indices can be
in (n - p - q)! ways, Thus in this way one
obtains all permutations of {l, ... , n} with the property that each element of Ai
has an index which is smaller than each element of B i
Thus each pair (Ai> Bi ) is calculated n P times relative to all the permutations of indices for which each element of Ai has an index smaller than each
element of B;, Thus the number of pairs (A j , BI ) satisfies the inequality
Solutions
4.21
151
.. cMn_1cX
such that IMil =i for i= 1, ... , n-l. The number of chains of length n which can
be formed from elements of the set X is equal to n!. If IAI = r, then number of
chains of length n which contain A of the form
where
since max n, C) = ([n~2J)' It follows that max p ~ ([M~2J)' The opposite inequality
is obtained by considering the family G of subsets of X which contain m = [ni2]
elements.
This proofis due to D. Lubell [J. Comb. Theory, 1 (1966), 299].
4.22 Let n=(x!, ... , xn) be a cyclic permutation of the set X. Consider a
cycle C with n edges, and associate the symbols XI, ... , Xn with the edges of C
(in the usual cyclic order). If an r-element subset A of X contains consecutive
elements in the permutation n. then it corresponds to a subwalk of the cycle C
of length r.
By condition (2) the subwalks which correspond to the sets AI"'" Ap have
at least one edge pairwise in common. Let X be a vertex of C. Associate the subwalk having the same symbols with the corresponding r-element subset or X.
It follows that X is a terminal vertex for at most one walk AI' In fact. if Al and Aj
have a terminal vertex in common and i=l=} (and thus Ai and Aj are distinct),
then they must leave X in opposite directions on the cycle C. Since n;:; 2r. it
follows that these walks are disjoint relative to edges, which contradicts the
hypothesis. Now, since each walk A J (j = 2.... p) has at least one edge in common
with A). it follows that one of the endpoints of Aj is an interior point of AI' But
since two distinct walks cannot have a common endpoint, one can conclude
that there exist at most r-l walks Aj with 2~}~p, and hence p-l ~r-l, or
p~r.
152
Let X
that one has colored the elements X 1> ,Xi with 1 < i < n with a or
b so that no subset
is
and consider the case which occurs
when this process cannot be continued. Thus one cannot color the element
X/+ I with the color a, since there exists a set E c {x b . . . , Xi+ I} with Xi + 1 E E
which has all the elements other than Xi+ 1 colored with a. The element Xi+!
can also not be colored with b, since there is a set Fc{xl!"" xi+d with
XI+ ! E F which has all elements distinct from x/+ 1 colored with b. It follows
that E, F are distinct sets chosen from
... , Em with EnF=
+l}' which
contradicts the hypothesis. Thus one can color Xi + 1 with either a or b so that
no monochromatic set
is "'r",.rll1ro"ro
It has thus been proved
process can continue
until one has colored X with two colors so that no set is monochromatic.
4.24 Color the elements of X
with red and blue. Assume that the
"'rlP""t'lrlPt'\T and that each color has probability 1. Let Ai be the
all the elements of
with a
color. It
follows that P(A j )=
1 for every i= 1, ... , n, since there are 2' ways of
coloring E; with two colors and among these only two lead to a monochromatic
coloring. Thus the probability that a random coloring contains a monochromatic subset is
to
n
P(A 1 U
...
u An)<
I:
P(A i ) =
1.
i= 1
The first inequality is strict, since the events A I' . . . , An are not independent;
they occur simultaneously when all the elements of X have the same color.
Thus the probability of the complementary event is strictly positive, which
shows that there exists a coloring with the desired property.
4.25 Assume that n~ 3 and the family F of three-element subsets of M
has the property that for each two distinct subsets A, B E F one has IA nBI =0
or IA n BI =2. In this case it will be shown that
~ n, which establishes the
desired nr""prrv
Thus suppose that F contains only three-element sets which either are
153
Solutions
ci
'*
C 1 ={a,b,xd,C 2 ={a,h,x2}"" ;
(c)
From this one can easily find the maximal cardinality of the family F as a function ofn. Let max IFI = f(n). Thus ifn =4k, it follows that f(n) = n, and this maximum is attained when F is obtained by starting from a partition of Minto n/4
four-element classes and considering all four subsets with three elements of each
154
class. For n=4k+ lone sees that ffn)=n-l, and this maximum is attained by
applying the
construction to the set M
where x is an
element of M The maximum is attained only in this case. For n =4k + 2 one
has
= n - 2. The maximum is attained only in the following cases:
(I)
For n = 4k + 3 it turns out that fIn) = n - 2 and the maximum occurs only in the
fol1owing two cases:
(4)
Since
~ n for n ~ 3, the property in question has been established. One
considers n ~ 5 in the statement of the problem. because then there are n + 1
distinct three-element subsets. One can also observe that the limit
n+l can be reduced to n or n-l when n51 (mod 4) or n52 or 3 (mod4)
respectively.
4,26 One can assume that ai' bl ~ 0 for i == I, .... n, since the problem remains
the same if an arbitrary constant is added to all the numbers ai and
Define
the following polynomials:
n
,,",
= 2::
i~
Then
+2
j(x)+
{b l . . , bn }.
Further, since j(1)=g(l)=n, one can write
g(x)
where k ~ I and
p(1) =F O.
It follows that
=F
155
Solutions
k p(X 2)
(X+ I) -(-) .
f(x)+
PX
2n
+ g(l)
or
11
---<
n-
(I)
since O<IAI<n. Now take the sum or the inequalities of form (1) for every pair
A) with X If: A.
It has been assumed that for every .x E X there is a set A E F such that
x r; A, and thus every element x E X belongs to at least one pair
A).
for every A E F there exists an element x E X
-4= 0 with the property that
to at least one pair
x If: A, and hence each set A E F
m - d(x) sets A with the property
F or a fixed element X E X there exist
that x r; A. For a fixed set A there are exactly n -IAI elements x with the property
156
(m
IAI
(n- A)n_IAI'
or
-m.
It follows from the Cauchy-Schwarz
that
Ctl aY ~n iii
and thus from the preceding inequality one has
4m2=( i
!= 1
-1)+
or
- 2nm
2n 2 (n - 1
Thus m~(n+
<n.Jn for n';::.1. This
observation that the inequality is equivalent to n>
IJCLlUV.Il. Amer. M mh. Monthly, 86 (1979),
O.
is immediate from the
-1. [1978 W. L. Putnam
157
Solulions
/1-3
In a similar manner, one can see that the number of lines which contain two
of M is
to (~). Each line of intersection can contain at most two
of M, since no fou; points of M are coplanar.
The total number of lines of intersection is therefore equal to
4.30 One can choose a vertex of the triangle in n ways. The two other
vertices must be chosen from among the n 3 vertices different from and not
selected. Thus there are C~3)=(n-4)/2
adjacent to the vertex
f/V"~H~'HH'''~, of which n 4 must be eliminated, since they
to the
cases in which the two chosen vertices are
a side of the polygon.
There therefore remain (11- 4)(n ways of
the two other vertices.
Since anyone of the three vertices can be selected as the first vertex, it follows
that there are
-4)(n 5)/6 ways of
a
which satisfies the
condition.
4.31 No three
are concurrent in an interior point of the polygon.
It follows that each interior point of intersection is
determined by the
two diagonals which meet on it and thus by the four vertices of the
which are the
of these
Thus the number of points of intersection of the diagonals inside the polygon is equal to G).
Each
AB intersects all diagonals which join pairs of vertices, other
than A and B, in points other than the vertices of the polygon. It follows that the
number of points of intersection other than vertices of the diagonal AB with
other diagonals is
to the number of diagonals which do not have an endpoint in common with AB. But this number is equal to
n(n
3)
-3}+ 1
1,
UHl,I',V,!l"'l
158
vertices is
to
Subtract from this number the number of interior points of intersection. The
number of exterior points of intersection is thus equal to
11(11-
-7n+14)
-~~-----~
-5)
n+l+~-..:..
since the number of interior points of intersection is equal to (:). The formula
is valid for every n;;;?! 1.
4.33 The property is established by induction on the number c of curves.
If c= 1, there are no points of intersection and hence the number of
is
to 1. Suppose that the property holds for every family of c curves which
have np points of intersection having multiplicity p, for every p;;;?! 2, where the
multiplicity of a point of intersection is defined as being the number of curves
which intersect in it. By the induction hypothesis these c curves bound
1 + n2 + .. + (p -lJnp +. . closed
Consider a new curve, and suppose
that it passes through kp points of intersection of multiplicity p with the first c
curves ~
The total number of points of intersection of the new curve is
159
Solutions
equal to kz +k3 + ' " + kp + . , ., and hence the number of arcs induced onthis
curve is equal to k2 + k3 + ' ... Each portion corresponds to a new
with
to the family of c curves. Thus the total number of regions bounded
the family of c + 1 curves is equal to
(1)
rnp=np
kp+!
kp,
1+m2+2rn3+"
+(p-l)rn p
+ -l)(np-k p + l + +'"
=l+nz+
+ ... +(p-l)n p +'" + +k3+'" +kp+ "'.
This is the number (1) of regions formed by the family of c + 1 curves. The property is thus established by induction.
4.34 Suppose that (SI" .. , Sm) has an SDR, denoted (a l ., .. , am!. It follows
that SitU'" uSi,::J{a""", aik}' and hence
U'" uSiJ~k for every
k and every choice of pairwise distinct numbers ii' .... ik
The
will be established
induction on rn.
that the family
.... S'" satisfies the condition for the existence of an SDR. For rn = 1 each
element of S 1 forms an SDR.
further that the
is true for every rn' < rn, and let
M(S) (S\)., . Sm)' Two cases will be studied:
(1) Si,U ... uS;. contains at least 1\+1 elements for l~k~rn 1 and
for each choice of distinct numbers it, ... , ik E {I, ... , rn}. Let at E SI'
(/ \ each time it appears in the other sets of M(S), and denote the sets thus obtained
by S;'.
. Thus M'(S)
... , S;") satisfies the necessary and
sufficient conditions for the existence of an SDR, since the set Si, U ... U Sj,
contains at least k + 1 elements and a single element a 1 has been suppressed.
By the induction hypothesis M'(S) has an SDR. The element at together with an
SDR for M'(S) forms an SDR for M(S) in which a 1 is a representative of SI
no
appears in the sets of M'(S)].
that l~k~rn 1, and let [il"'"
e{t, .. rn; such that
= k. Renumber the family
... , S'" so that Si, becomes
160
becomes
... , Si, becomes Sk' By the induction
(S I' S2' ... ,
has an SDR. Denote it by D* (aI' a2' ... ,ak), and suppress the elements of D*
whenever
appear in the sets SH 1, SH 2, . . . , Sm. Denote the sets thus
obtained
I, St+ 2' . . . , S~. The system of m - k sets M*(S) =(S:+ I> "
satisfies necessary and sufficient conditions for the existence of an SDR. In
fact, if
u ... u stp ' where
i 2 , . , ip} C {k 1, ... ,
contains fewer
than p
then S 1 U U U
S~ u ... u
contain fewer
than k+p
u ... u =k. By construction SI u ... USk
and hence
U' .. U
SI, U ... u Sipl < k + p, which contradicts the
that M(S) satisfies necessary and sufficient conditions for
the existence of an SDR.
By the induction hypothesis M*(S) has an SDR, which
with D'"
forms an SDR for M(S}, since M"'(S) does not contain any element of D"'.
[Phillip
J. London Math.
10 (1935),26-30.]
4.35 It will first be shown that if F is a minimal
of X, then there exists an element x E X such that
of h-element subsets
h
I{E lEE F, x E E}I~- M(n. k. h).
n
(1)
n-h
161
Solutions
C=:)
(:),
M(n, k,
(:) G)
(~)=(k\'
k-h
h)
l,k
I,h
l)+M(n-l,k,h)
~(n-:~~-I)+(n
k:h-l)=(n-:+h).
M(2n, 5, 3)
2 (n).
3/
162
f:
such that the sets
subsets of X defined by
(X "'.S)
F=
G =({x}ug(X))xeT'
One can at this
=k for every x E T and also that G
contains h + 1 subsets. Let U
== n - and suppose that there are indices
... ir (O;:;;;r;:;;;h+ 1) such that U does not contain np elements of the set
for every 1;:;;; p;:;;; r. It follows that one can write
;:;;;IUn
+11 h-l-
np '
[1=
and hence
IUnTI~
[1=
np+l~r+l.
1
I
1
Solutions
163
..,
),
).
.. , ~)
..
),
.. ,
.
= {i! aij= l}
for every 1
4.39 One first evaluates the determinant of the matrix Al'A where A is the
incidence matrix of a
k, ).}-configuration. Recall the form of the matrix
AT A obtained in the preceding problem; subtract the first row from rows 2
U, and then add columns 2 through to the first column. In this way one
obtains an upper
matrix with elements on the main
equal
to k +
VI, -;. + k and the
V 1 elements
to k ;.,
Thus det
(k
leVA }"+kO, that is, the matrix A is nonsingular,
since det (AT A)=(det A)2.
In order to prove that the
k, i.)configuration of the matrix A is a BIBD
with parameters v, k, k,;') it is necessary to show that each element belongs to
k blocks and each pair of distinct objects is contained in exactly i.
blocks. These conditions hold if and only if the matrix A satisfies the equation
=(k
+i.J
(1)
164
1.
1.
It follows
and thus
(2)
=(k-),)A- +),k-1J.
Thus
A
-).jA IJ +Ak-
=(k-).)A-1J +).k-1vJ,
and
A IJ =mJ,
or
J =mAJ,
It has thus been shown that J A = AJ; this property is essential to the verification of
(1). The
proceeds as follows:
AAT =A(AT A)A -1 =A((k-;.)l +).J
=(k
Solutions
165
'+LL-,+,,:.).
4.41
4.42 Let p be the maximum number of subsets with the desired property.
the family of sets
Then by
uB AcY,IAI=r;BcX,,",y,IBI=[(n k)/2]},
one can show that
and let
be the
obtained from F I by suppressing all elements of AnY
in the sets B of . It turns out that
is a family of subsets of X ""' Y which are
noncom parable with respect to inclusion. It then follows from Sperner's
theorem that
which
that
166
There exist
i)
C: -\
c: t).
16i
Solutions
n 1 + - .. + n", =
I lAd
100=75m,
i= 1
Fig. 4.1
168
I
BI
A1V'~
Ir A2:~
.
B2
~B3
A3f~
l~B4
~ Bs
A41~
As
I
0
~VI
A6
B6
Fig. 4.2
Solutions
169
similar manner one can show that if Ai, B i+1 EB then {M, N}={B j Aj + 1
if B i ,
I EB then {M, N}
{A;, Bi+d; and if Bh Bid EB then {M,
{Ai'
Since n;;:t3, one can apply this argument to the pairs {C I ,
and {
. It turns out that {M, N} =
A2,
B 2 } ("I
A3,
== {A 2, B 2}' This establishes a contradiction, since M and N do not
It follows that dim4(R) == nand R has exactly 2" minimal 4-metric bases. [R. A.
Melter and 1.
Computer
Graphics and Image Processing,
(1984),1
CHAPTERS
5.1
Let
A ={mll ~m~
m=O
B={mll~m~
m=::l(mod
n(3n 2 - 3n + 2)
of a number n into at most k
form a set with
P(n,1)+
+
k) elements. Each
of n into at most k
can be
in the form n=a 1 +a2+ ... + a", 0+'" +0, where the sum
containsktermsanda 1 ;;;.a2;;;.;;;.
l(l~m~k).Fromthis
for
n one can obtain a partition of n + k in to k
in the
manner:
n+k=(a1+l)+(a2+1)+'" +
+1)+1+'" +1
where the sum contains k terms and a1 + 1 ;;;. a2 + 1;;;' . " ;;;. am + 1;;;. 1.
The mapping thus defined is an
since different partitions of n
into at most k
to different
of n + k into k
The
mapping is also
since every partition of n + k into k parts results from
the partition of n with m ~ k parts obtained by
1 from each term of
the partition of n + k and retaining the first nonzero terms. The existence of a
between the set of partitions of n into at most k parts and the set of
partitions of n + k into k
implies the validity of the
recurrence
relation. This
the computation, by iteration, of all values of PIn. k). One
starts with P(n, l)=P(n, n) 1 for all It and P(n, k)=O for n<k.
A bijection will be defined between the set of partitions of n into odd
and the set of partitions of n into
distinct parts. Thus suppose
that in a partition of n into odd
the number 2k + 1 appears p times. Write p
as a sum of powers of 2:
5.3
(1)
~OIlIlIons
1/1
The (2k+ l)p entries in the Ferrers diagram associated with the partition of 11
as follows: Put in different rows
+ 1)2"
1)2" entries. Maintain the
order of the
num ber of entries from
to bottom. For exam pie, the
7 + 5 + 5 + 3+
3+ 3+ 1 + 1 + 1 + 1 is associated in this way with the
10+ 7+ 6+4+3
into distinct
The
thus obtained have distinct parts because
every
can be uniquely
as a
of an odd number and a
power or2.
The injeclivity of the mapping follows from the uniqueness of the representais a surjection, consider a
tion (1). In order to show that this
partition P of n into distinct parts. Each
can be uniquely written as a
nrr,{111rt of an odd number and a power of 2.
the terms of the sum
and combining common factors one obtains only terms of the form (2k+ l}p
where k?J:. O. This will generate p terms equal to 2k + l.
By arranging these terms in decreasing order one obtains a partition Q of n
into odd
Apply the previously defined mapping to Q. The result is the
partition P and this establishes the surjectivity of this mapping.
5.4 Let at + ... + am n be a partition of n into m
It follows that al > az > ... >
1, which
that
distinct parts.
-(m-
+ ... +am=n
(;).
1i2
this argument. one finds that the numbers which occur in the partition
of n are
+ 1),
andhencen+1
If n+ 1 is
n=l+
'+1;-
has the property that every number between 1 and n can be uniq uely rPTITP',pn
as a partial sum of this partition.
}~T
SOUTH
fig. 5.1
173
Solutions
23 = 7 +6+ 5 + 3 +2,
After performing this transformation, one finds the row SOUTH laid
EAST, Since m=2 and k=3, the
23=8+7+5+3 is
obtained.
if the diagram contains at least two trapezoids and if m> k, then take one cell
from EAST in each row of the upper trapezoid, and with these cells make a new
row SOUTH in the new diagram. This construction is possible because In> k
and thus the row SOUTH is shorter than the old row SOUTH in the diagram. The
length of each row in the upper trapezoid has been shortened by one. It foHows
that all the rows of the new
are
different in length, The new
diagram contains the same number of cells as the old diagram, but the parity
of the number of rows has
The new diagram contains one more or
one less row than the
This operation can be carried out when the
consists of a single
trapezoid (when the diagonal EAST contains k cells and k is equal to the number
of parts of n) if m d: k and m l' k + 1.
The transformation just described is an involution on the set of partitions of
n into pairwise distinct parts. (This means that if this transformation is applied
one obtains the original diagram.) It follows that the transformation is
Thus the Ferrers diagrams for partitions of /1 which admit this transformation can be divided into an equal number of
with an odd and
even number of rows.
One can now find the
which do not
admit this transformation. They consist of a single trapezoid for which m = k
or m k+ 1 (Figure
In the first case
fig. 5.2
1/4
(l-al
=(l+alx+
1 +a1x+
1+'" +1.
_ . - - - '----v---'
1-----,.,.--,---,,,.-- =--.
(1-
+ x)(1 +
5.8
Euler's identity and the
of the num bers P(n). one can write
175
Solutions
After
to zero the coefRcient of x" on the left-hand side of this equait turns out that
P(n-
0,
j"O
or in other words
P(nJ+
(-1)'
{p
=0,
+p(n-
k" 1
(l+al x + a x2 )(l
and observe that each monomial 01!a~2' "a~k which occurs in the coeflkient
+" +
=11,
of x" has the property that O~AI~2 for 1 ~ i~k and ':1 +
and thus determines a partition of n of the form
+x 4 )"'(1+x P +
n
f
p;t
In fact
(j
(l3)
the identity
1-
..... H f
", "'IIVW 11
function of the
numbers P(lIl is
prO) -I- P(l)x + ... + P(lllx" + ... =
while the
-----.::---~._..-.-
(1)
as
1
x 2 for x in
after
the result is
(4)
The
then leads to the following relation between the associated formal series:
Q(i)x i
L (- 1)iQU)xi = L
j;.O
Q(i)x 2 i.
1;.0
n1):
Each
.. ): nm ):
on the two
1)+{n2-1)+"'-I-(nm-l),
(1)
m+ 1 and
(x+ y)+CI'
11
into
+(x+=)=2n
and
(y+ z)
+z)=x+)'+2z>x+ y.
Thus x + y.), + z. x + z are the lengths of the sides of a triangle with perimeter 2n.
It is also the case that no two sides are equal, since
.\:+y>x+z>y+z.
Conversely. suppose that a> h > c are the
triangle with perimeter
to 2n. Let
x=n-{l,
y=n-b,
of the sides of a
n-(;.
and
It follows that
b+c-a 0
> ,
a-b"!-c O.
a+b-c
>0.
(11-1)
\ 2
112-311+2
2
different ways (Problem 1.19). It follows from this that two terms are equal in
each of the following
of 11:
_ _ _ _ _. .IiIIIIIIIII-IIIIIIIII--Fll!li...
--~rtlM~"V'~---'-''''''''' .
178
n=1+1+(n
2J=1+(n
2H-l+1
2)+1=(n
-4)+2+2
3+ 3+(n-6) = 3 ..!-(n-6)+ 3
-61+3+3
There are thus 3(n representations if n is even and 3(1l- 1li2 representations if n is odd and n:;;;: 4. But for n = 1, 2, 3 one has Q(n, 3) =0, and hence the
formula is verified.
If n is a
of 3, one must also subtract 2 from the numbers obtained,
of n with three
terms which is counted three
since there is a
times instead of being counted only once. For example. for n=6 one obtains a
to 2.
6 = 2 + 2 + 2.
unique partition with two terms
In order to obtain the num ber of representations with three
distinct
terms, one must subtract from the number of all representations of n as the
sum of three
the number of representations which contain equal terms.
The result is that this number is equal to
n2 - 3n+2
2
nl
,,2
,
11-
if
1(n-2)+2
3n -I.. 2
3n+2
3n-l..2
-I)
- 2)
1)+2=
n l -3n+2
n l - 3n-l.. 2
-2)=
nl- 6n -I.. 5
-----
nl -6n+ 8
n l -6n+9
nl-6n+8
2
-1)=
n-
6n-l.. 5
if n = 6k -1..1,
if
I!
=6k+ 2,
if n=6k+3,
if n 6k+4,
if n
6k~5.
Since these
of n as the sum of three terms contain only pairwise
distinct terms, in order to find the
of n into three pairwise distinct
parts, one must divide the number obtained in each case by 3 1 = 6, since the
order of the terms is no
of any
It can
be seen
that all the
obtained have the form
+1
For example, for n
for every n.
nl -6n
-24k
12
"--='~------=3k2
12
2k-
179
Solutions
and thus
-6n..l-5
12
n2
6n..l-5
I)
tn. -
n2-6n..l-12
that
Q(n, 3) ==
5.13 One first shows that the number of partitions of n into
distinct
odd terms is equal to the number of partitions of n with a symmetric Ferrers
diagram. (The axial symmetry of a Ferrers
is with respect to a line
drawn from the top left of the
at an
of 45 with the horizontaL)
Define a
from the set of partitions of n with symmetric Ferrers
onto the set of partitions of n into
distinct odd terms as
follows:
that a
F errers
has k cells on the
and let a 1 be the total number of cells which are found in the first row and first
column of the diagram. Since the diagram is symmetric, it follows that a 1 is odd.
Now let Q2 denote the number of cells which are found in the first row and first
column of the diagram obtained by suppressing the a 1 cells. Similarly let a3 be
the number of cells which are found in the first row and first column of the
obtained when the a2 cells are
and so on. One thus obtains
k odd numbers a 1>a2> ... >ak which define a
of n: n=
Fig. 5.3
Ferrers
180
In fact, in order to obtain a term equal to x" in this expansion one must multiply
terms of the form x D "
,xu,, where 0 1 +02 + ... + Ok = n, al ... ' (lk are
pairwise distinct odd numbers, and we set (11;;:;: (12;;:;: ;;:;: {lk in order not to
count these monomials twice, Since the coefficient of each product of the form
O
XD' . X , is
to 1, it turns out that the coefficient of x" is equal to the
number of partitions of n into pairwise distinct odd parts.
To obtain the
function for the number of
Ferrers
with k cells on the
one suppresses the square with k cells
on a side which lies in the upper left-hand portion of the
Now consider the number of cells in row i plus the number of cells in column
i (i;;:;: k + 1) as a new term in a partition of n with a term
to k 2 and a sequence
of other terms less than or equal to 2k. For the diagram of Figure 5.3 this new
partition can be written
30
+6+4+4.
One thus has shown that the number of partitions of n with symmetric Ferrers
of
having k cells on the diagonal is equal to the number of
n of the form
+"')(1+
...... ')'''0+
+ .. )
In fact the number of partitions of m = n - k2 into even parts which are less
than or equal to 2k is the coefficient of xm in the expansion of the product
(1+
+X4+ "')(1+x4+
+ "')"'(1+
+X4k+ "').
181
Solutions
In order to show
(l
+ (I~XR + .. ), .. (I
=
+ GkX2k +
m
. (I~' + ' , ')X + " .
1+ (11
The term
relation
(11'
+ . , , + 2k}'k m,
and thus it defines a partition of m of the form
2k+
2k+ ... +
represents the generating function for the number of symmetric Ferrers diagrams
with n cells; this
the proof of the first identity.
In order to prove Euler's identity, observe that (as in the discussion of the
the
function of the number of
of n into distinct odd
number of
of n into k distinct odd
is the coefficient of
in
the
of the product
(1
On the other hand, it has been seen that there exists a bijection of the set of
partitions of n with
Ferrers
with k cells on the diagonal
onto the set of partitions of n into k distinct odd parts, Thus the number of
partitions of n into k distinct odd
is equal to the coefficient of x" in
or
the coefficient of
in
(l+xy)(l+
y).
I ------.------;--,------,,,,k~O
182
is
... ;;::
i,;;:: and
2n
BM
+1,
CHAPTER 6
6.1 There is a unique walk which joins each pair of vertices of a tree. The
since A itself does not contain
subgraph induced by B does not contain
If x, y E B and x i=}', then x, yare vertices of each subtree AI' ....
and thus each of these subtrees contains the unique walk
Z l' . . . , Zk' ,l'J
joins x and J in A. Hence Zl"",ZkEXl"'"
or Zl,,,,,Zk EB. and thus
the subgraph induced by the set of vertices B is connected and is in fact a tree.
6.2 The proof uses induction on the number of vertices in the tree G.
lf G has two vertices the property is immediate. Suppose that the property
holds for all trees with at most n vertices. and let G be a tree with n + 1 vertices.
G contains a vertex x of degree 1 which is adjacent to a vertex .\'. By the induction
obtained from G
suphypothesis the property is valid for the subtree
pressing the vertex x and the
[x,
If no subtree G 1 , ... , Gk is the graph
, ... , Gk obtained from
of only the vertex x, then all the subtrees
Solutions
183
GI' . . .
by
the vertex x have at least one vertex
in
common. In fact, if x is a common vertex for Gj and G;, then y is also a vertex
common to
and
and thus also for Gj and Gj.
the induction
Gj. . . . .
have at least one vertex in common, and thus the subtrees G I ' .. Gk
have this property. If, for
G 1 contains only the vertex x. then x is
common to all the subtrees
and the property is again verified.
6.3 The
induction on the number n that a tree with 11
vertices has n - 1
If n = 1, the tree has a
vertex and no
that the property
is true for all trees with n vertices, and let A be a tree with n + 1 vertices. The tree
A contains at least one vertex of degree 1, since otherwise A would contain a
cycle, which contradicts the definition of a tree. In fact, let
184
On the other hand, it has been seen that every tree with n vertices has n - I
6.3), and thus by suppressing
u the resulting graph
IS
no
since it has n- 2
There is an
v E U 2 which joins two vertices located in components C 1
and
. For otherwise it would follow that the
of the tree
only
of vertices located either in
, which would imply that A2 is not
connected. But All
a tree, is
and hence there exists an
v E U 2 which joins vertices located in
and
. Since
does
obtained from G 1 by
the
not contain a cycle, it follows that the
edge v also does not contain cycles and is connected. It is thus a tree. which
wi!! be denoted
is a spanning tree of G which has more edges in common with
But
this transformation, replacing all the edges U E U I ""'U 2
than A l '
of U 2, to obtain finally a tree Br =
where r;:::' 2.
6.5
We show that if all the vertices of
1 of the tree G are suppressed then e(x) is decreased by 1 for every vertex of the
All the vertices at a distance e(x) from x have
1, and thus by
them
decreases for all of the
vertices. One can also observe that
by this operation e(x) decreases
exactly one, since the longest walk which
1 in G, which is then suppressed. The property
leaves x ends in a vertex
is true for a graph with a
vertex. Assume therefore that it is true for all
trees with at most n 1 vertices. Let G be a tree with n;:::. 2 vertices. Denote by
C the set of vert ices x in the center of G, that is, those for which e(x) is a minimum.
1, and suppress all vertices
Suppose that C does not contain a vertex of
l in the
G. For all the
vertices the value of e(x) is
of
reduced by one. and hence
this operation a new tree G' is obtained with the
same center C. Since G' has at most n - 2
it follows from the induction
hypothesis that C consists of one vertex or two
and nr(\T\prtv
(a) is therefore established. If C contains a vertex of
1, then x
will be adjacent to a unique vertex y. It is clear that J' is strictly nearer than x to
every other vertex of G. Thus e(x) can be a minimum only jf e(x) 1 and G is a
an
In this case C = y) and the
tree consisting of x and y joined
nrr,nprtv is established.
By Problem 8.4, the walks of maximum
in a tree have a
intersection. It can be shown that this intersection contains the center of the tree.
(b) Let L be a walk of length
which starts at x. If L does not contain
either}' or z, then
e( y) =
+ 1,
e(z)=e(x)+ 1.
and thus
e(y) +
1,
e(z)
+1.
185
Solulions
(c) It is easily shown that the distance thus defined on the set of vertices ofa
connected graph is a metric for this set and thus satisfies the
inequality.
Let x, y be vertices such that d(x, y) =d(G), and let z be a vertex of minimal
It can be shown that
eccentricity [
d(G)=:
y)~d(x,
z)+d(z, y)~p(G)+p(a)=2p(a).
6.6 Let L=
, ... , X2k 2] be a walk of length 2k - 3 of a tree A. To every
vertex y which is not on L associate a walk,
in the
manner' Let M
be the walk which
)' and a vertex z of L and which has only the endpoint z
in common with L. If the length of M is greater than k - L let Ly be the subwalk
of M oflength k, and with endpoint .1'. Otherwise L). consists of M and a sub walk
of L. The construction is always possible, since L has length 2k- 3 and thus
there is a subwalk of L of length k - 1 incident with an endpoint of M. In fact.
in the opposite case L would have length less than or equal to 2(k which
would contradict the
It is also the case that L contains the subwalks [x I ' ... , Xk+
- 2, , .,
X2k- 2] of length k. One thus obtains n (2k- 2) + k - 2 n - k
distinct
walks of length k.
6.7 (aj Let
denote the
obtained from a by suppressing the
vertex x and the
incident with x. Since a is a tree, it follows that ax is not
connected and yand z are found in different connected components of which
This
that kl +k2~n 1. It
contain kl and k2 vertices
follows from the
of the function
from x to J' at each
step one moves closer by a distance 1 to kl vertices, but further away by I from
n kl vertices. It is hence the case that
+kl
(n-
=s(y)+
-no
=s(y)+
-2.
(b)
that there are two nonadjacent vertices x and y such that s(x)=
s(y)=minimum.Let
XI,X2"
be the
walk which
xandy
in the tree (p';:!
By hypothesis
The inequality
in
shows
that
S(X)+S(X2
S(X 1)+S(x),
and thus
S(X2) > six 1) ~
... >S(Xl)~S(X),
Hlb
The points in which s(x) attains its minimum form the barycenter of the tree
G. By
a walk with an odd
even} number of vertices
one observes that the
vertex (or of two adjacent
If Xl' ... , xp are the vertices of a walk and Yl , ... ,}'q are other vertices
to Xl' then if p is even, it follows that the center of the tree
by an
. If q is sufficiently large, for
q
thus obtained is the vertex
then the barycenter of the tree Xl' while the distance between the center
for values of p
the
is p/2 - 1. This number can be
which are sufficiently
If the tree G has vertex set X of cardinality n, it follows that it also has
Then in the sum
d(x. ,1') there are exactly 2(n -1) terms equal
to 1, and the other nonzero terms are greater than or equal to 2. If G is a star
K 1,n-l), all the terms different from 0
x = .v) and 1 are equal to 2.
(the
If G is not a star, there is at least one term equal to 3, and thus the desired minimum is attained only for the tree
1 In order to find the maximum of this
sum one can show that s(xj is a maximum in the set of terminal vertices of a
If L is a walk
tree
when the tree is a walk and x is one of its
with n vertices and x is one of its endpoints, then
6.8
n- 1
s(x)=1+2+" +(n-l).
If G is a tree and x is a terminal vertex with e(x) =d. then there will exist at
least one vertex at a distance 1, 2, ' .. , d from x. It follows from the definition
that the sum which enters into
is of the form
of
d(x, .v)
2s(a) +
d(x, y).
Xd'El'
is a maximum only if G is a walk and a is one of its endpoints. In this case the second term can also be shown to be maximal by
to the subtree whose n - 1 vertices make up the set y,
the induction
Consider th ree pairwise different indices i, j, k e {I, .. , , r}, [If, for ex=0 and (a) is
Since A is a tree, there
then dij +
between the terminal vertices XI and Xj'
exists a unique walk Lij [x;,...
6.9
Solutions
187
" P---C--<>--r!v
XI
Xj
Fig. 6.3
Xj)+
which
(a).
Consider i,j, k, I E {I, ... , r} which are pairwise difTerent. If, for example, i
the three numbers become dkb dki+dl/, dkl+d ll , and thus two are equal and the
third satisfies the inequality
dkl~dkl+di1'
+djk=dij+
vJ,
If the walks
and Lkl have at least two vertices u, v in common tFigure 6.3)
then (b) is also true. If u and w denote the endpoints of the subwalk common to
the two walks, then it follows that
dij+dki=di/+djk=dik+djl+2d(u. w).
r~
Nauk,20
94-96.]
dA(r,
il+
189
",UlUllons
== r.
where
E X,.
190
subtree A" of A with vertex set X,,, In the solution of Problem 6.5 it was shown
that A and A,. have the same center. It therefore follows from the induction
hypothesis that either the center of A is equal to u, in which case g(u)= I(u)=u,
or the center of A consists of the adjacent vertices u and v, in which case either
g(u)= flu)=u and gft')= !(v)=t'. or g(u)= !(u)=r and g(v)= I(t') =11.
The stated property is thus valid for every m. Since it must be shown that 1
has a fixed point, the only case which must be investigated is that in which A
has center (u, d with j(u) [' and f(r) u. Let
and Au denote the subtrees of
A obtained by suppressing the
[1/, 1'J and which contain the vertices u and !'
respectively. Let Ii l ' ... , II, denote the vertices in Au which are adjacent to u.
Since 1 preserves adjacency in A. it follows that f(UI),"" flu,) are adjacent
to v in the subtree AI" and so on.
Let
and X" denote the vertex sets of the trees
and Au
It
follows that I(X.) =
Consider the restriction of the function 1 to the set
Xu; denote it by h: X .-X v' The function h is a bijection, and
y] is an
in the tree A. if and only if
hU')] is an
in the tree Av. Thus h is an
isomorphism of the trees Ali and Av. I t follows that
and
have the same
1=
+
and is thus an
number of
which
that
even num ber.
h was assumed that
2n+ 1, and thus the case in which f(u)=v and
u does not occur. It foHows that! has at least one fixed point.
6.13 Let
AI
where m(A l
that
and
by
vertices has /1-1
is equal to
x and the
(2)
The fact that the
Al
-x and
By
and (2) one can show that dA,(xl=dA,(x) for every vertex x EX
md thus the trees A! and A2 have the same terminal vertices
1). Let
r be the set of terminal vertices for the trees A 1 and A 2 If ITI
it follows that
41 and A2 are walks oflength IXI- I, and thus Al and
have the same diameter.
iuppose that iTI ~ 3, and let L be an elementary walk of maximal length in the
ree A l ' The length of L is by definition
to d(A d, the diameter of Ai'
The endpoints of this walk are two terminal vertices in the set T. The set T
dso contains at least one other terminal vertex x which does not
to the
valk L. By hypothesis
- x is isomorphic to Al - x. Since the walk L is conA I X, it follows that
- x contains an
walk
ained in the
Solutions
191
which has the same length as the walk L. Thus the graph
walk
of the same
as L. It follows that
in the
one can
the roles of A 1 and
~ d(A 2 ) and hence A 1 and
have the same diameter.
conclude that
It can also be shown that under the
conditions the trees A 1 and
[P.1. Kelly, Pacific J. Math., 7 (1957), 961-968.J
are
-2
~\
-2)
ZkiQklZlj=
But
Qkl:i=
Ukl'
Xk4!tXi :q~:t;j
1= 1
(- 2)+ I
1,
X,.
+1)+(d(x 1 ,
,x,.)+ 1)+
=d(Xj,x;)+
1+
+1)
x}l.
,x)-2d(Xl,XI'J
[R. L.
1_
det A,
H. C. Pollak, Bell
and hence
Techn.
det A = 50
(1'1-
2495
192
6.15
(a) Since every tree has at least two terminal vertices. it follows that
the procedure previously described one obtains a tree
only
of the vertex Xn and another vertex adjacent to X n The Priifer code of A is completed by a new position (In-I = n.
Let b l , ... ,bn I be the indices of the terminal vertices which are
when the algorithm determining the Priifer code is applied to the tree A. It will
now be shown how to determine the numbers bi from the Priifer code
, ... ,a,,-l)
A;=
...
,Xb,
}.
that bd aJ for
i, and thus ad b l , . , bi - 1 , which
By construction the vertices
and xv, are
with a vertex in the
Ai'
vertex
cannot be
adjacent to a vertex of
other than x. I ' since if [x a!' XbJ] were
edge of
incident with Xb" it would follow that j > i, since Xbj is a vertex of A j
But Xb, is one of the vertices xaJ or Xb" and thus bi == bj or bl =
which con
tradicts identity (1), sincej > i. It follows that Xb, is a terminal vertex of the graph
Ab and hence A and all of the graphs
are trees. This property follows by
induction on i. For i n the graph An is composed of the vertex xv" and is thus a
is a tree is a consequence of the fact that + I is a tree.
tree. The fact that
Suppose now that
has a terminal vertex Xk with k < bi' It follows from (1)
that either k = b, with < i or k = (lj with j:;::' i. The first alternative is
since Xb, is a vertex in the tree AI' which does not contain the vertices
,,,,,xbl.,.Ifk
with
i,thenj~n-2,sincean_l n~bi>k.Butithas
been shown that
a terminal vertex of
which is
to
= Xk'
It follows from
193
Solutions
(n-l)
k-l
Since
-k)=(n-l) t n'
(I)
G=;)=(:=;),
11 -
k.
(2)
194
(~) tktn-kk(n
(3)
k)=2(n
This
can also be found directly if x 1 is not a fixed vertex in A!.
It will now be shown by induction on n that tn == n"- , For n = 1 there is a
unique tree with one vertex and the formula is satisfied. Suppose that tm = mm 2
for every 1 ~ m ~ n -1. It will be shown that t n= nn- 2, Since (3) holds, one must
show that
1=
2( n _ 1)n" - 2,
This equation is in fact identity (c) of Problem 1.29 and implies that t n =
Dziobek, Sitzungsber, Berl. Math, G" 17 (1917), 64-67.J
6.17
that the terminal vertices are fixed and in fact that they are
Since d 1 = . , , = dp = 1. it follows from the
problem that
number is equal to
In
2)!
(1)
and
+ '"
+dn =2n-2-p.
IYI =n
here
jX!=n
2,
n!
p
Sin-I, n-
195
Solutions
6.18 (al Let f(n) be the desired number of possible ways of selection. It
follows that f(I)= 1 and f(2)=2. This corresponds to the choice of edge
[Xl' Yt] and respectivcly to [Xl' X2J and [.1'1' .l'2J or [Xl' J'IJ and [X2, Y2]. If
the ladder graph has 2n vertices. then one can select [x ,. }'tJ and for the remain1) possihle choices. One may also select
and
ing edges there
[YI' Y2], leaving
further choices. It then
f(n-l)+ f(n-2).
and this relation
the initial values f(l)
implies
that fin) = Fn'
num ber.
(b) Let g(nl
number of spanning trees
It
follows that g(l) = 1 w hcn thc spanning tree consists of LX l ' .It J. Also g(2) = 4
for the trees which are obtained from a cycle with four vertices if one suppresses.
in turn, an edge of the cycle.
In order to prove the recurrence relation for Yin), consider the graph of
Figure 6.1 with 2n+2 vertices:
xl'yl
X n+I'Yn+'
l , Yn-t. Its
BI is the set or
is the set of
follows that
Xn+
(1)
)6
that
g(n+ 1)
4g(n)-
-1).
(2)
'hich has the solutions rl =2+.j3 and r2=2-.j3. Thus the general solution
f the recurrence relation
is of the form
r1 +
gIn) =
'here
and
are determined
1"1,
the system
C1{2+.j3)+C 2 (2
+4.j3)+
hich has the solution C 1 = 1/2.j3,
g(n)=
pro
J.
.j3)=1,
4.j3)=4,
1/2.j3. Thus
+
matem., 94(2) (1969), 21
Let D
be the distance matrix of a connected graph G. Properties
are precisely the expression of the fact that the distance function is a
let ric on the set of vertices {I, ' .. ,p}. In order to prove (5), let 1",
p, so
\at
d(i, j) > 1, and let L be a shortest walk from i to j, which contains at
:ast two
Let k be a vertex of
difTerent from the endpoints i and j. It
,!lows that both subwalks of L from i to k and from k to j are subwalks of
linimal
that is,
dik + dkj
It will be shown,
that a square matrix D of order p which satisfies
roperties (1)-(5) is the distance matrix of a given graph. Let G be a graph with
~rtex set X={l, ... ,
and with edge set V {[i,nldij=l}. It remains to
lOW that for each two vertices i and j it is the case that dU. j) dij.
If i
then d(i,
0= du. If
E U, one has d(i,j) = 1 =
in view of the
:::finition of the graph G. Thus suppose that i i= j, [i, j] ~ V,
hence dlj;:: 2.
y
use of property
one finds
i p i 2 , ... , ik such that
6.19
dij=d H, +di11 ,+
... +
1,
Solutions
197
198
== L det B det BT =
L (det B)2= L 1,
Let B =
, and
199
Solutioll.'
-I
I -I
=1
-I
n-I
-I
-1
n-I
-1
0 n
-I
n-J
-1
-1
n-l
0 0
0
'
=11"- 2,
. n
1.= 21.-1
21. - 2
From the initial conditions one can conclude that C 1 =(3 + 2j3)j6 and C 2 =
-2j3)/6. [H, Prodinger. R, F. Tichy. Fibonacci Quarterlv.
19821,
1621.]
6.29 The proof is by induction on n. For n=2 this inequality becomes an
equality and coincides with the Principle of Inclusion and Exclusion.
Suppose that the inequality holds for any n - 1 subsets of X and any choice
a Iree on vertices 1, ... n-l Without loss of generality one ean suppose
that n is a terminal vertex of the tree T. Denote by T I th e tree obtained from T
suppressing and its incident edge
nJ. It follows from the induction
hypothesis that
i(Alu ... uA._1)uA"!=IA1u" UAn-ll+IAnl-i(A1U , .. uA._ 1)IlA.1
"
L
IA{iL
i
1
=2:"
i= 1
since (AI U
297-302.J
.. ,
uA._ dn
IAIIlAjl-IAkIlA.1
[Lj]EE(Ttl
iAi
Ajl,
[t.j]Et:{T)
200
(m/1)=n-p
CHAPTER 7
S5 n(j) +
r+ s = n(jl + n - 2,
of all the
one
0,
that is,
n(!)=np.
7.2 Suppose that the three colors are a, b. c. Each triangular face for which
the vertex set is colored with all three colors has an edge whose endpoints are
colored a and b respectively. All the other faces contain 0 or 2 edges with this
and count the number of
property.
all the faces of the planar
with endpoints of colors a and b. It follows that
1+1+"'+1
!J
.. , +0+2+2+'" +2=O(mod
201
SolutIons
Thus 13
the number of faces whose vertices are colored with all the
colors a, b, and c, since each edge with colors a, b is counted twice (in both faces
with it). Thus /3 == 0
This
is a
which is
to an
The result remains valid for an
7.3 The
of the condition is
since if a graph G without
isolated vertices has an Eulerian
then it is connected. In fact each two
x and y,
incident to an arc which belongs to an Eulerian
are
a walk.
On the other hand, an Eulerian circuit uses all the arcs which
at
and terminate in every vertex x. The Eulerian circuit uses a unique arc which
ends at x and a unique arc which starts at x each time the vertex x is traversed,
and hence r(x)=d"'"(x). In order to show the sufficiency,let C be a circuit of
the graph G which contains a maximal number of arcs. The graph G is connected and
d+(x) for every vertex x. If C does not contain all the arcs of
then it follows from the fact that G is connected that there is an arc (x, y)
which has a vertex in common with the circuit C Suppose, for
that
x e C One can make this
because the circuit C uses the same
number of
and exit arcs in each vertex, but the
of the vertex y
is
to the
of the vertex y. Therefore if y e C there will exist an
arc of the form (y, t).
Let Gc denote the spanning subgraph of G induced
the arcs which do not
belong to the circuit C Since d-(x)
for every vertex x. and since the
circuit C uses the same number of entry and exit arcs at every vertex. it follows
that all the vertices of
have equal indegrees and outdegrees.
Leave by the arc (x, y) of Gc , and move
the arcs of Gc
each arc
once. Continue this process as
as possible. One cannot end in a
vertex z
since the vertices of
have
and
and
each traversal of a vertex z
uses an entry arc and an exit arc. Thus if one has
arrived at a vertex z x, one can also leave this vertex on an exit arc. Since the
number of vertices of Gc is finite, one must terminate at the vertex x, and this
produces a circuit C 1 in
The union of the arcs of the circuits C and C 1 is a circuit which is
than C, which contradicts the assumption made. Thus C is an Eulerian circuit.
7.4 One can suppose that the graph G has at least one Eulerian circuit C,
since otherwise the property is evident. The Eulerian Cifcuit passes through
every arc of G and hence passes
the vertex x with d+ (xl ~ 3.
Move
the circuit C by
from x and returning to x. At each
traversal of x one obtains a circuit. Let these circuits be
C 2l ,
where
m =d+ (xl.
permutation of the circuits
.... , Cm determines an order of
passing
the arcs of the graph G once, and hence an Eulerian circuit.
Two Eulerian circuits obtained in this way are identical if and only if the permutations of the cycles C I, . , Cm are identical as cyclic
The
202
n:=
7.5 First we show that every graph without isolated vertices and whose
vertices have even degree can be expressed as the union of cycles without common edges. The union of two graphs
G1 =(X 1, U I ) and
G2 =(X 2, U 2 )
is defined to be
G 1 UG 2 =(X 1 UX 2 , U j uU 2 )
In the solution of Problem 6.3, it was shown that d(x)~2 for every vertex X
implies the existence of an elementary cycle C I in G. By suppressing the edges
of the cycle Clone obtains a spanning graph of G which may contain some
isolated vertices. After suppressing the isolated vertices one obtains a spanning
subgraph G! of G whose vertices have even degrees and which does not contain
isolated vertices. In fact, by suppressing the edges of the cycle C 1 some vertices
of G have their degree reduced by 2. One can write
G=C 1 uG 1 ,
where G1 has at least three edges less than G. G has all vertex degrees even and
lacks isolated vertices.
By continuing this procedure the edges of Glare eventually exhausted and
one finally obtains a single cycle C k' that is, G = C 1 U ... U C k such that C 1"'" C k
do not have an edge pairwise in common.
Now let G be a graph all of whose vertices have even degree. Excluding
isolated vertices, it has been shown that G can be expressed as the union of
elementary cycles C j , , C k which do not contain an edge pairwise in com
mono By selecting a sense for traversing each cycle Cp' one directs the edges of
the cycle in the sense of their traversal. Thus the in degree and the outdegree of
every vertex on the cycle Cp increase by one. Finally, after all the edges of the
203
Solutions
which
K:
K:
K:
iAr,n'" n
=n!+
0)
The term
n ... n
represents the number of Hamiltonian paths of K~
which contain the arcs Ui" ... , u'p' This term is nonzero only in the case of arcs
Ui"
. , ui p which form
paths which are pairwise disjoint with
respect to vertices. In this last case suppose that there exist r elementary paths
which contain PI' P 2' .. ,p, vertices respectively. The number of connected
components of the spanning subgraph of K~
the arcs u'" . .. , u'p
will be equal to
I'+n-
+"+p,.)=:n-p,
since the number of arcs satisfies p=tpI-l)+ ... +(p,.-l)=Pl+ ... +p,.-I'.
Every Hamiltonian path which passes
the arcs u" . ... , tllp defines a
permutation of these n - p
and conversely. and this correspondence
204
VI"f'f,f',""o
1.11" ,
n ... n
if the
1.11" , Ut. form q
walks without common vertices. The
right-hand side is equal to zero otherwise. In fact, if one considers the n - p
connected components reduced to a single point, then one can form
(n-
Hamiltonian walks, but each walk L from among the q elementary walks of the
form
L=
, ... ,xp ]
205
Solutions
a),
from which one can conclude that h3(a, b)=h3(b, a) modulo 2. Hence
=h 3 {O)+h 3 (a, b)=h 3 (O)+h 3 (b, aj
h(GJl.
walk which
L
at a vertex Xo of the
is likewise a
elementary walk which
at Xo. The walk
will be
is a transformation of L, then L is also a
called a transformation of L. If
transformation of L l ' There are exactly d(Xk) -1 transformations if Xk is a terminal vertex of L
in G, and let Xo be an arbitrary
Let Y be the set of vertices of even
vertex in G. It will be shown that there exists an even number of longest elementary walks L which begin at Xo and have their last vertex in Y.
In order to prove this, let H be the graph defined as follows: The vertex set
at Xo in the graph G.
of H is the set of longest elementary walks which
Two vertices of H which correspond to two walks
are
if and
is a transformation of
only if
The
of a vertex of H which corresponds to the walk L = [xo, ...
is
- L It follows that the set of
walks which originate
to the set of vertices of odd
at Xo and terminate at a vertex of Y
H. The number of
of odd
is even for all
of the
This observation completes the proof of the property previously stated.
One can now prove that there exist an even number of Hamiltonian cycles
[x o y] in a graph G with all vertices of odd
To
which use a
this end, consider the graph
obtained from G by suppressing the edge
In
only the vertices Xo and y have even
Thus. by applying the pre-
206
(1.1, x)
(1.1, x)
(3)
(1.1,
(ll
xl E
V,
V,
+2:
v) V or (1.1, x) V,
v) E V, then dG2~X)=dGl(X);
v) E V, then dG1(x) dG,(x) - 2 for every x E V.
207
Solutions
seen that
U 1 6, W) has even
where W is the set of edges of the
C.
contains the
u, then since U E W, it follows that G 2 does
not contain the edge u and hence is a
tree of even degree of G". The
COl're~;pc!naen(;e J which associates
Since
(A
6,
B)
6,
IA n
is odd.
d,
(1)
(2)
in the graph G.
d 2(x)J+l
IYjn
and in this sum each term is even.
If x E ,it can be shown analogously that if x fE A then dZ2 (x) is even. If
x E A, then
d Z2 (x)
-d s(x)+d 6 (x)
which
n AI- 1- ds(x),
the equation
This number is always even, since d4 (x) is even by the induction hypothesis and
such that the degrees of the vertices of the subgraph generated by X 1 are even
and the
of the vertices of the subgraph induced by X 2 are odd. To this
G a new vertex y, which is adjacent to all the vertices of X.
end add to the
Let Gibe the
thus obtained.
the previous resul t, there exists a
Y1 U Y2 of the set of vertices X u
where
and
induce
even degree in G I' If, for example, y E Y2, then by denoting Xl = Y! and
X 2 == Y2 "'-{y} one obtains the desired partition of the vertex set of G. [W. K.
Chen, SIAM J. Appl. Math., 20 (1971),526-529.]
7.12 It is clear that if C contains only nonempty
then
= Cu
satisfies the
and hence one can assume that
E C.
It follows that C 1= {X}, since otherwise there exists a proper subset Y c:: X
which has elements in common with
and hence with an odd number of subsets from C. Thus there exists a subset A in C such that IAI =a is minimum and
a ~ 1. Because a ,,;;; n - 1, it follows that X "'-A is a proper su bset of X, and X "'-A
intersects all sets of C but does not intersect A. By the hypothesis Icl 1 is an
even number, and hence C contains an odd number of subsets of X.
Solulions
If x E X and
C, it follows that X ""-{ x} intersects all sets in and hence
an odd number of sets, which contradicts the
It follows that. C
that every subset BcX such
contains all one-element subsets of X.
that 1 ~ IBI < k < n has the
BE C. Let A X be such that IAI k. If
A C, one can conclude that
intersects all but
- 2 = IP(A) ""-{ A,
I
subsets from C.
Since k ;:'1, it follows that 21AI - 2
- 2550 (mod 2), and hence X ""-A intersects an odd number of subsets from C, which contradicts the hypothesis. This
induction that every subset
implies that A E C. It has thus been proved
A c X satisfying 1 ~
~ n -1 belongs to C.
Suppose that X ~
Then Ici = 2" - 2 55 0 (mod 2), which is a contradiction.
It follows that C = P(X) ""-{0} and C 1 = P(X) are the solutions of the problem,
since both
the condition in the statement of the problem.
subsets
In fact, if Y c X and IYI = k, 1 ~ k ~ n -1, then Y intersects 2" in both collections e and C 1 , and this number is even. [A. Adelberg, Problem
E 2887, American Mathematical Monthly, 88(5)
349.]
CHAPTERS
~ i1
Since k ~ ib one can show that dk~dl, ~ k -I, so that the vertices adjacent to
all found in the component . This is a contradiction, since by hypothesis
k~n-d"-l implies that dk;:.k, and the property is therefore established.
Xi. are
(1)
1, ... ,p. Equality holds only for components which are trees.
By
inequalities (1) for i == 1, ... p, one finds that m ~ n - p, since no
10 connected components have a common vertex and hence have no common
1ge.
r i=
= I(L 2).
and L2
Q. L:;).
'ollows that I(L'd = I(L 2), since if, for example, I(L'! I(L'1), then the walk
,Q, L~) would be longer than L 2 , which would contradict the
In the same way it is seen that I(L = I(L'2).
;;ince (L'l ,
is a
its
is at most
to the
of a maximal
k, and hence 21(L~)~ I(Ld or I(L'J tl(Ld; analogously, l(L'i)
). Thus
median point or the two
median points of the walk
belong to
walk Q and hence to
Since
can be chosen arbitrarily, it follows that
median point(s) of Ll
on whether I(Ld is even or
he intersection of all the maximal walks of the tree G.
f the connected graph G contains cycles. this property does not hold.
r)
Solutions
211
which has a
where ai E A and bi E B for 1:;;;; i:;;;; k. The length of this cycle is 2k, and thus an
even number.
Now suppose that every
ofG has an even number or vertices.
Color the vertices of G with two colors so that each two vertices joined by an
have different colors. The coloring is perrormed as follows: Start with a
to Xl are colored b. Then the
vertex Xl which is colored a. The vertices
vertices adjacent to the vertices which are colored b will be colored a, and so
on. In this way no vertex in the connected component which contains XI will be
colored once with a and once with b, which would be a contradiction.
In fact, suppose that the vertex z is colored a in a walk L I == [x l ' ..1'1 , ... , Ykt z]
of even length and is colored b in a walk L2 = [Xl' t I, . , [s' z] of odd length.
If Ll and
have only endpoints in common. then the union ofthe
of
and
forms an
with an odd number of
which contradicts the
Otherwise
and L2 have a
number of vertices in
common, which implies that the union of the
of
and
generates a
0111".or<.nn of G
of walks and cycles. It will be shown by
induction on the number
of LI that the fact that G does not contain odd
elementary cycles implies that the lengths of Ll and
must have the same
parity.
If I(Ld= 1 and I(L 2 ) is even. then the elementary cycle consisting of the edge
and the edges of
is odd, which contradicts the hypothesis. It follows
of
that I(L 2 ) is odd. Suppose that the property is true for every two walks LI and
orthe indicated form such that /(LI
t, and let
and L2 be two walks with the
= t + 1.
same endpoints such that
II has been assumed that
and
also have a vertex .r in common other
be subwalks of
and L2
contained
than Xl and z. Let L~ and
between Xl and Y, Similarly let
be sub walks of
and
which are
located between y and z, Since I(L'd:;;;; I, it follows from the induction
If Xl is replaced by y, then since
that I(L'd and I(L 2) have the same
/(L 1):;;;; t, one can conclude similarly that I(L'{) and I(L'2} have the same
I(L 2)+/(L'2), it follows that I(Ld and I(L 2 )
Since I(LII==I(L~)+I(L~) and
have the same parity. Thus the vertices of the connected component which
continuing this process
contains XI can be colored in this way by two colors.
for all connected components of G one obtains a
two colors of the
vertices have different colors. It
vertices of G such that each two
the set A to be the set of vertices colored a
rollows that G is bipartite by
and the set B to be the set of those vertices colored by b.
It also follows that every graph G without odd
which has at least one
edge. is bichromatic, that
x( G) = 2,
8.6
The vertex of
212
+".
(3)
dt
(4)
d l +'''+dn- 2 +
+dn - 2 +(dn -
1)+(dn -l)=O(mod2);
!-l~dn-1.
d 1 +'"
is
3+(dn-l-l)+(dn-l)~dn-2'
since
2 = max (d l , ,
2,
1 - I,
1). However, condition (5) also
holds. In fact
1, condition (1)
that the left-hand side of inequality
(5) is odd and thus is at least equal to 1,sincein this case dn - 1 =dn = 1. Ifd._ 2
then dn - 1 1 + dn -1 ~ d._ 2 because dn - 2 = d.- 1 = dn
It follows that the numbers d l , ... ,
2'
l-l,d.-1 whose sum is 2d
satisfy conditions (1) and (2), and
the induction
there is a multi
with n vertices whose
are equal to the
the vertices of
t -1 and dn - 1 by a new
whose
d l " , dn
8.8 Suppose that there exists a
Then kn
where m is the number of
k cannot be
greater than n - 1. Thus two necessary conditions have been found which the
number n must
(a) nk=O (mod 2);
(b) n~k+1.
It will be shown that if (a) and (b) are satisfied. tl1en there exists a regular graph
of degree k with n vertices.
Two cases will be considered:
213
Soluliolls
k is even. Consider a
Xl' ... ,
n '" 12
k '" 6
n '" 12
k
7
Fig. 8.2
214
these vertices Xr and XS' The mapping which associates to each vertex z which
is nonadjacent to x the pair of vertices {xr'
is also injective.
Suppose that the same pair {x,., xs ) corresponds to two vertices Zl -I=Z2< It
follows that there exist at least three vertices x, Z t. Z2
to x, and xs ,
which
contradicts the
Thus the number of vertices z which are not adjacent to x is at most equaJ to
(~)< From the two opposite inequalities it follows that the number of vertices
which are not adjacent to x is equal to G), and hence
8.10
G(r, g) of
r and girth 9 has been constructed. Consider also a graph
G(r', 9 -1), where r' is equal to the number of vertices of the
G(r, g).
Replace each vertex of the graph G(r', 9 -1) by r' vertices of degree 1
Figure
8.2).
Now identify these r' vertices with the vertices of a copy of the graph G(r, g}.
In
8.3 the
G(r, g) is
which is obtained for r=2 and g=5.
Denote by G 1 the graph obtained in this way. The
G 1 is regular of
r + 1 by construction. It will now be shown that g( G1) = g. Consider an elementary
of minimal length in a copy of the graph G(r, g). Such a cycle has
Fig. 8.3
215
Solutions
of minimal
(= which is not contained in any copy of the
Replace each copy of
g) by a
vertex while
the
mCIdent to the vertices in Glr,
In this way the
G 1 is transformed into the
C is transformed into a nonempty
subgraph G(r', g 1). The
graph of G(r', g -1) with all its vertices of even degree. This is because the cycle
C has a number of entries equal to the number of exits of each copy of G(r, g) if
one fixes a sense of traversal for the cycle C.
nonempty spanning subgraph all of whose vertices have even
In
if this were not the case, then a connected
contains an elementary
component of this
would have the
of its vertices even and
would not contain a cycle. It would thus be a tree. But this contradicts the fact
that every tree has at least two vertices
one, that two vertices of odd
Let
be the elementary cycle contained in the
of the cycle C obtained
by contracting each copy of G(r, g) to a single vertex. It can also be seen that C
contains at least one edge from a copy of G(r, g) by the construction of the graph
One can deduce from this that
. Thus C1 has at most s -1
s-l):I(Cd):g
1,
since the
Gfr'. g-l). which contains the cycle C 1 , has
to g-l.
The fact that every
of
has
at least equal to g implies that
s):gor
=G(r+l,g).
The
of the graph G(r, 3} for every r):2 is demonstrated
considering the
graph Kr+ l ' Examples of graphs ofthe form G(2, g) where
g): 2 are given by elementary cycles with g vertices.
By
the construction
described one can prove the existence of the
G(4, G(5,
graphs G(3, 4), G(4, 4), G(5, 4), ... , G(r, 4) for every r): 2;
G(r, 5) for every r): 2; and so on. Thus one can show by induction that there
exists a
G(r, g) for every r): 2 and
3.
-1
i = 1, ... ,
-3
n~ISol+ISti+'" +i s(O-I)/21
=l+r+r(r-l)+'" +r(r-l)(y-3)/2.
Suppose now that 9 is even, and consider two adjacent vertices x and y.
:t Si be the set of vertices at a distance i from the set {x, y} for i = 1, ... , g/2 -1.
follows that iSII=2(r-lj and ISi+ll=(r-l)ISil for i=1. ... ,g/2-2. From
IS one can conclude that
n~ISol+ISI!+'" +ISg/2-11=2+2(r-l)+ .. +2(r_l)9/ 2 -
8.12 (a)
Let
8.13 Suppose that for every vertex X the subgraph Gx is not connected.
t L = [Xl' ... ,xmJ be an elementary walk of maximal length in the graph G.
'hypothesis GX ! is not connected. Denote by C J a component of this subgraph
lich does not contain the walk [X2, .. , xm].
fig. 8.4
SolutiollS
217
Xl"'"
a E A, and bE X "-..A. It follows that there is a path in G of the form (a, ... , b).
Since a E A and b A, there will exist at least one arc of this path of the form
(x, y) where X E A and y A.
8.15
that G contains a circuit, and hence an elementary circuit.
Further assume that the following elementary circuit of G has a minimal number
of arcs:
C=(XI, X2,""
x., Xl)'
218
sr.
8.17
(1)
lEX
where X is the vertex set of the graph G. It will be shown that this vertex satisfies
the conditions of the statement of the problem.
If G does not contain the arc (x, y), then it must contain
Let y e X and y
(y, x). This follows from the fact that a tournament is complete.
now
at x.
that the vertex y cannot be reached by a path of length 2 which
Thus for every arc (x, z) there is an arc (y, z), since otherwise there would exist
an arc (z, y) and hence a path of length 2 from x to z, namely (x, y, z), which is
contrary to the hypothesis.
z)), there is an
for every arc which originates at x [of the form
z) which originates at y and is also an arc (y, x) which
at y
arc
and terminates at x.
It follows that d+( y) > d+(x), and this contradicts (1). The vertex x which was
defined in (1) therefore satisfies the given condition.
8.18 The
will be established by induction on the number of vertices
y}. Otherwise
of the graph G. If G consists of two isolated vertices, let S =
there is an arc (y, xl and S =
Suppose that the property is true for all graphs with at most n
and
take G to be a graph with n + 1 vertices. Let x be a vertex of and denote by A
the set {z\ (x, z) is an arc of the
G}. Denote by G 1 the subgraph obtained
from G by suppressing the vertices of the set A v {x}. It follows from the induction hypothesis that G1 contains a set of pairwise nonadjacent vertices S I with
from a
the following property:
vertex z S 1 can be reached by
vertex yeS 1 and traversing a path of G1 of length at most 2. Two cases will
be studied.
(a) The vertices of S I v
are not
Let S = S 1 v
vertex z in G! such that z can be reached
starting at a vertex y e
and traversing a path of length at most 2. If z e A, then there exists a path (x, z)
of length equal to L
219
Solutions
(b)
that
xl
8.20 It is clear that C(2)=1. since the vertices Xl and X2 are joined
is connected. For n ~ 3 it must be shown that
if the
n
an
f k (n)k 2("i')C(k).
k= 1
"c.
220
4 38
C(n);
728
26,704
1,866,256
8.21 Consider the 2/;) graphs with vertex set X == {Xl" .. , x n }. Let GIJ be
the set of graphs among them which have the following properties:
(1)
(2)
Xi
and
Xk
are
Then
Thus for k f i, j there are three possible ways of joining the vertices Xi> Xi' and Xk'
It follows that
for every
The set of
hence
Ui<J
and
. 8 (n) 3"
!T!
() 2 4"=0.
Thus almost all graphs with n vertices have diameter equal to 1 or 2 as n...... 00.
But there exists a unique graph with diameter equal to 1,
Thus
almost all graphs with n vertices have diameter equal to 2 as n...... cc. From this
it follows that almost all graphs with n vertices are connected as n...... 00.
It can be shown similarly that almost all directed
with n vertices have
the
that for each two vertices X and y there is a path of length 1 or 2
from X to y as n ...... oo.
8.22 It follows immediately from the definition that this binary relation is
reflexive and symmetric on the set U. In order to prove the transitivity it will
be shown that if the
Ul and U2 are found in the same elementary cycle
and if U2 and U3 are found on the same elementary cycle C 2, then there is an
elementary
which contains Ul and Uj.
Traverse
in both directions by
at the endpoints of the edge U3;
terminate at the first vertex which is found on the
. Let X and y be these
vertices on the
(see Figure 8.5). It can happen that.\ or yare endpoints
of 1.13' However x
since the
U2 is found on the part of the cycle
delimited by X and y and which does not contain U!. The cycle
(which
indicated by the heavy line in
8.4) is obtained by taking the union of (1)
the elementary walk on the cycle C 1 wh ich joins x and y and which contains the
221 '
Solutions
Flg.8.S
222
the
,al.""a,-I'
and B=[b o , b l , . " .
1. bo] be two
8.24 Let A=
elementary cycles of maximal length in the graph G. Suppose that these
have at most one vertex in common, and let ao == bo be that common vertex,
Since G is 2-connected, it follows that there also exists an elementary walk
which does not pass through ao and which has one endpoint in the set of vertices
{al"",a,-d and the other endpoint in the set {bJ.""br-d, Let
[aID Xl' , , , , Xb bq ] be such a walk where k~ 0, p, q
and XI does not
to
the cycles A or B for 1 :( i:( k.
that
q. One has therefore obtained an
elementary cycle [ao. ' , . , ap Xl" , , , Xk,
' , br - 1 , ao] which is longer than
A. which contradicts the hypothesis.
Now let A and B be cycles which have no vertex in common. Since G is 2connected, there exist two elementary walks without common vertices which
a vertex of A and a vertex of B. There will be an elementary walk of length
than or equal to r/2 which is
of the cycle A and has as its endpoints
the endpoints of the two walks. An
result can be obtained for the
cycle B. The two parts of cycles A and B, together with the two elementary
walks which join a vertex in A and a vertex in B, form an elementary cycle
which is longer than A, and this again contradicts the hypothesis.
8.25
m(G{-x-
y)=(n~2) m(G
t ),
(1)
since on the left-hand side each edge u contributes 1 for each pair {x,
of
vertices which are different from the endpoints of u. The fact that there exist
(n; 2) such pairs of vertices implies (1) for i = 1,2.
By
for x
the
G1 -x - Y is isomorphic to
- x - y.
Thus
have the same number of
and hence (1)
that m(Gd:=:
m(G 2 ). Now consider the sum
(2)
where Xo is a fixed vertex. If u is an edge incident with Xo, then its contribution
to the sum (2) is zero. Otherwise its contribution to this sum is equal to n - 3.
This corresponds to the case in which y is different from Xo and from the endpoints of the edge u. Thus it follows that
(n - 3)m(G ,) -
(3)
223
SolUflons
Here
(X/(x,
and
8.26 LeI G be the graph with n2 vertices which correspond to the squares
of a chessboard. Two vertices are considered to be adjacent if one can be
reached from the other by
a
Since a knight always moves from a
black square to a white square or vice versa, it follows that this graph is bipartite.
One can conclude from Problem 8.5 that this graph does not contain an elementary cycle with an odd number of vertices and hence there does not exist an
elementary cycle with n2 vertices. It is therefore impossible for a knight to visit
all the squares of the chessboard in the manner described.
8.27
two
of
M =M)'UvMU5'
where M}'u is the set of the perfect matchings of Gn that contain [y,
and Mus
is the set of
containing [u, s] (see
8.6). If a perfect
matching of
contains
then it follows that it also contains
s],
t],
and [v,
and hence
== K(n
Thus this is
to the number of
perfect matchings of the graph obtained from Gn by deleting both
(X and p. If a matching belongs to MuS' then one can show that it contains the
and hence
"5\ = K(n -1). This is the number of perfect matchings
edge [t,
of the graph obtained from Gn by deleting the hexagon p. Since K(l)= 2, K(2)= 3,
and K(n) = K(n -1) + K(n - 2) for n ~ 3, it follows that K(n)...
1 for any n ~ L
[M. Gordon, W. H. T. Davison, J. Chern.
20
428-435.]
1M},.!
1M
fig. 8.6
8.28 As in Problem 6.9, one can show that for any three vertices x, y, z of a
tree d(x, y) + dry, z) + d(x, z) 0 (mod 2)
and for any four vertices x, y. z, t
of a tree the numbers d(x,
d(z, l), d(x,
dry, n.
t)+d(y, z) are not all
distinct.
(a)
Suppose that G satisfies the hypothesis and contains an odd cycle with
224
2k + 1 vertices. Let x, y, z be three distinct vertices on this cycle such that d(x, y) ""
d(x, z) and
z) 1. In this case
d(x, y)+d(y, z)+d(x, z)=2k+ 1 1 (mod 2),
which is a contradiction.
On the other hand, if G contains an even
x, y, z, t be four vertices on the
such that
d(x, y)
t)=l
and
d(x,z)=d(y,t)=k-1.
Then
y)+d(z, t)=2,
d(x, t)+ dey,
2,
2k,
which is a contradiction. It is also clear that a cycle with four vertices is not
itself embeddable in a tree.
(b) Let K 1 3 be a star with vertex set {a, b, e, d} and
set {[a,
[e, d]}. Define the
S(p) to be the graph obtained from K 1. 3
inserting
of Kl,3 such that ds(p)(a, d)= ds(plb, d) =ds(p)(e, d) = p.
new vertices on the
G is bipartite. Let S = {x, y, z} be any set of three vertices of G. It will be
embeddable in the tree S(d(G)-l), where d(G) is
shown that S is
the diameter of G. Consider the identity
(mod 2).
First note that if there exists a subgraph spanned by shortest paths between the
vertices x, y, z which tS a tree, then the equation follows from a previous result.
Otherwise, one can assume that the vertices are distributed as in Figure 8.7 and
d(x, y)
It follows that
dew, v)+d(v, u)
Solutions
225
y
Fig. 8.7
and, for example, a= {do (x, y)+ do(x, z)- do( y, z)}/2~ {2d(G)-1}/2,
which implies that a~d(G)- L
(c) Suppose that G is not bipartite. Then G contains an odd
with
2k + 1 vertices and, as in the proof of (a), one can choose three vertices x, y, z
such that
d(x,
z)+
z):a 1 (mod
APTER 9
or
v(G) +
n.
us follows that
p(G):(n
v(G),
2
~s
or
+p(G):(n.
d(x)}
d(x){n-l-d(xl}
riple
If
y,
y] and
z] are
of G and
z] is an
of G, then in the
nation the triple
y, z} is also counted twice: once with
to x and
with respect to
ual to
-1-
in G and in
Solutions
227
(a) If G is regular of
nk
(n
k-l).
G)
~(n;ly=_n(_n-:---_5)
This bound is
for n;;;;' 6 and vanishes for n = 5. The
with five
vertices is such that neither
nor
eontains a triangle. It can be shown that
the lower bound is attained if n
+ 1 where p is a natural number. [A. W.
Goodman, Amer. Math. Momhly, 66 (1959), 778-783.]
9.3 Let G=(X, U) where IXI=n and IUI=m. Let x. y E X, and denote by
A(x) the set of vertices which are adjacent to x. In similar fashion A(y) will
denote the set of vertices which are adjacent to y. ]t follows that
IA(x)"A(y)\ = IA(x)1 + IA(y)I-IA(x)u A(y)\;;;;' d(x)+d(y)- n.
If
y] E U, then there are at least d(x)+d( y) - n vertices which are adjacent
to x and to y. Hence at least
d(y)-n triangles in the graph G contain the
edge
y]. From this one can conclude that G contains at least
~ L
3 [x,y]eU
d(y)-n}
triangles, since each triangle is counted relative to each of its sides, ]n this sum
d(x) occurs exactly d(x) times for every x E X, It follows that the sum is
to
By
the
inequality and
one can see that the last sum is bounded below by
that
d(x)=2m,
228
To see this one uses Jensen's inequality and the fact that
number of circuits with three vertices is bounded above
x,
X k ... 1 , ... , X. -
d.
229
Solutions
Let t(n) denote the maximum number of Hamiltonian paths in the class of
tournaments with n vertices. The following values are known: ((3) == 3, t(4) == 5,
c(5)
t(6) =45, and t(7) 189.If
_. (t(n))lm
,
,
a-lim
tt-CC:
n!
then '1 exists and satisfies the inequalities 0.5 == 2 - I ~ 11. ~ 2 - 3,4 <0.6. Szele's
Szele,
conjecture states that 11. = 0.5, bu t a proof of this has not yet been given.
Mat. Fiz.
50 (1943), ....
.jv.
..l- . .
(~)~
-1 )/2 is convex,
that
(d;)~
nCin) =m(2:-~},
and thus
nm
From this one can see that
m~
n
4
n
-(1+
4
230
9.7 Let n
-l)q+r with 0::;;;r::;;;k-2 and
2)/1
l)p+s, where
0::;;; s::;;; k - 2 and r, s are integers. It follows that if r == 0 then s == 0 and if r;;::: 1 then
s k-r-l.
that the number of vertices x of
d(x)
is smaller than m,
that is, the other vertices Y have degree
p + 1. Thus one can assume that
there exists a partition Xu Y of the set of vertices such that d(x)::;;; p for every
vertex x EX, d(y);;::: p+ 1 for every vertex Y E Y, and also IXI <m, IYI > n - m.
Let Yl be a vertex in Y, and denote by A(yd the set of vertices which
are adjacent to Yl' In the set A(y,)n Y choose another vertex Y2' It follows
n
will contain at least IA(ydnA(Y2)1=IA(Ydl+
that
IA(yduA(Y2)1;;:::2(p+ 1)-n vertices.
Suppose that the vertex sets A(yd,., A(Yk- 2) with YJ e nt<jA(y;)n Y have
1, ... ,k-2. Let B=n~:~ A(y;). It will be shown that
been constructed for
B n Y is nonempty. This property will demonstrate the possibility of choosing
the vertices Y2 ... ' Yk-j. In fact it can easily be shown by induction that
!BI;;:::(k-2)(p+ 1)-(k- 3)/1.
Consider two cases:
(1)
(2)
2)q+1}-
+1)-(k-3)n=(k-l)p-p+k 2
- (k - 1)p - s + n
=n-p+k-s-2
-p+k-s
r
==q+
s
=q+
r+s
p+k-s 2
k-s-2
;;:::q+ 1,
since r+s=k-l and k-s-
O.
Solutions
231
I
s > 0,
XI
232
tion shows that n - 1 [(n -] )/(k - 1)] = [(k 2)nj(k - 1)]. It follows that a
with n vertices and without complete subgraphs with k vertices and which
contains a maximal number of
must have the desired structure. Thus
M(n'k)=(;)-rC~l)
(k
l-r)(;)
- n - rt( t + 1) (k
where c=(n
1 - r ll(1 -
n)
~ ( n2 - n _ ("n___ -'--'--:--:--'--__
2_r2 (r)
k-2. n
k
2
+ 2 .
9.10 First we show that for every choice of four points A, B, C, D from M,
there exist at least two points which are at a distance less than or equal to
1/J2. If three of the
are collinear, then one of the distances is less than
or equal to t< I/J2 and the property is seen to hold. Otherwise it will be shown
that the configuration formed from the four points contains a triangle with an
of at least 900. There are two possible cases:
(2)
): b2 + ( 2 ): 2 min (b 2 , el ).
If b):c. it can be seen that ):
or C2~
and hence c~l/J2.
which has as its vertices the 3n points; two vertices are
joined by an
if the distance between them is greater than 1IJ2. From the
property just
one can conclude that this graph does not contain a
subgraph with four vertices. Thus it follows from the
that the number of
is at most equal to M(3n, 4)=
. The
distances which are
than 1/J2 can be chosen in the interval (1-1:,1) for
every e > 0, by grouping each n points sufficiently close to the vertices of an
equilateral triangle of side 1.
233
Solutions
9.11 The proof follows directly from Turan's theorem, since M(2n, 3)=n2.
The graph which realizes this maximum number
and does not contain a
triangle is the complete bipartite
9.12 It will be shown that for every n ~ 2 the maximum number f(n) of
with n vertices
maximal
(cliques) in the class of
takes on the following values: f(n) == 3"13 for n == 0 (mod 3); f(n) 4 X 3("-1)13 1
for n == 1 (mod 3), and f(nJ == 2 X 3(n- 2)13 for n == 2 (mod 3).
For 2~n~4 the expression for f(n) can be obtained by a simple counting
argument. In fact, if n == 2 or n = 3, the maximal number of cliques is obtained for
graphs consisting of isolated vertices. In the case of n=4 one must consider
both a graph which only has isolated vertices and the complete
2'
Let G be a
with n ~ 5 vertices which contains f(n) cliques. G contains at
least two nonadjacent vertices x, y, since otherwise G would be the complete
graph on n vertices K n , which contains a unique clique; this would contradict
the maximality of G.
Let V(x) be the set of vertices adjacent to x in G. Denote by
y) the graph
obtained from G by
all the
incident with x and replacing them
with
from the vertex x to each vertex in the set V(yJ.
The symbol
will
the
obtained from G by
the vertex x, and a(x) will denote the number of
contained
in V(x) and which are maximal with
to the subgraph G x . Finally, c(x)
is the number of cliques of G which contain x.
By suppressing the edges incident with x, one causes c(x) a(x) cliques to
an
to all the vertices of V(y) creates c(y)
But joining x
Thus if c(G) denotes the number of
in G, one has
c(G(x, y
= c(G) + c(y) -
c(x)+ a(x).
Thus, in view of the fael that c(x)=c(y), it follows that a(y)=O, and hence
c(G(x,
=dG(y,
c{G).
Let x be an arbitrary vertex of the
and let )'1, ... Yp be vertices
G into the graph G t := )'1' x),
which are not adjacent to x. Transform the
followed by the transformation of G1 into G2 == G 1()' 2, Xl, and so on, until one
the
finally transforms G p - 1 into Gp=Gp_I(Y P' x), in every case
number f(n) of cliques. The graph Gp has the property that the vertices
x, Yl"'" yp. are not joined to each other by an edge, and V(x)= V(yd= ...
234
V( yp)' If V(x)
the process terminates. Otherwise consider a vertex in V(x)
and repeat the construction for the subgraph obtained from G by suppressing
the vertices x, Yl," . ,yp'
Finally a multipartite complete
G'" is obtained with the property
that its vertices can be partitioned into k classes which contain n I'" ,nk
vertices
Two vertices are
if and only if they do not
to the same class. It is also the case that c(G"')= I(n). But c(G"') =nl ... nk> from
which it follows that
f(n) =max
k
max
nt+"'+nk="
n l n 2 , nk'
rom which it follows that p = 1. Thus the graph is connected and without cycles,
hat is, a tree.
now that the spanning tree A obtained in the final application of the
llgorithm is not minimal, and thus there is another tree A I such that c(A d < erA),
vhere c(A) denotes the sum of the costs of the
of A.
Let U!, U2,' , , Un - 1 denote the
of A. The indices are to correspond to
are obtained in the algorithm. Suppose that the
he order in which the
.rst edge of the tree A (in this sequence) which is not an edge of A I is the edge
'k' Add the
Uk to the tree AI'
Let G! be the graph which is thus formed. It will have a unique
conisting of Uk and the unique walk in the tree AI, which
the endpoints of
k' This cycle contains at least one
v( which does not belong to the tree A,
lnce otherwise A would contain a cycle, By suppressing the
v" a tree A2
esults, since the graph obtained from G t by suppressing the edge Vj does not
235
Soilltions
... ;;:'c(A,)=e(A),
9.14 Suppose that there are two trees of minimal cost. A and A I' It follows
that one can find an edge u in A which is not an edge in AI' Consider the walk in
Al which joins the endpoints of the edge u. There is an edge v of this walk which
two vertices located in the two components of the graph obtained from A
the
u. It follows that the graph A2 obtained from A by
the
u and inserting the edge v is a tree, This is also true for the
graph
obtained from AJ by suppressing the
v and inserting the
u.
Since e(u)
one can conclude that
min (e(A 2 ), e(A 3 )<c(A),
since e(A2l
e(u)+e(v) and e(A 3 )=e(A)+e(u)-c(v). These observations
contradict the hypothesis that erA) is a minimum.
Hence the minimal
tree is unique.
9.15 Let C be a
x! = l/k for i E C and
Xi
=0 for i
f(C)=f(C')
since
k'~k.
1(1- ~)~~(l- D.
236
Suppose now that f(G) is attained for all variables x, > O.1f G is not complete.
then there exist two nonadjacen t
say] and 2. Let F (G) = F(x 1, ... , Xn) ==
L[i.n<ux,Xj, and O<C~Xl' Then
where A represents the set of vertices in G which are adjacent to vertex 2, but
to vertex 1. Similarly, B denotes the set of vertices in G which are
to vertex 1, but not
to vertex 2. It remains to show that
Xi' For if Lj<AXj>
then F(XI-C,x 2+C,X3,""x n
which is a
if the
inequality
then
+C,X2-C,X), ... ,xnj>
for every O<C~X2' which contradicts the maximality of
If C=X 1, then
F(O,
Xl
+X2, X3,""
F(x),
and hence the maximum is attained for the subgraph G' obtained from G by
the vertex 1. This reduces to the previous case if one of the variables
takes the value zero. It thus follows from the induction
to G' that
IfG=
=~
(1 _
xi ) ~ ~ (1 _~).
U 1, ... ,Urn
S. Motzkin, E. G.
dull;;<l: C(U2);;<l: .. ;;<l: c(u m ). Let k be the smallest index with the property that the
... , b). Since
set of arcs {Ul,"" uo} contains the arcs of a path Do
, .. , Uk -I} does not contain all the arcs of any path from a to b, it follows
Co = {Uk, Uk" I, . , Urn} is an (a.
with
n A(Dol =
[Here A{Do)
denotes the set of arcs of the path Do.] It follows that
min c(uJ
C(Uk)
and
.<Do
max c(u)
OJ
"ECO
c(u)~
E A(Do)n C.
(2)
Uj
If D =
E A(D) (\
... ,b)
It follows from (1) and (3) that maxD minUED C(U) = C(Uk)' From (1) and
one can conclude that
maxUEC c(U) = C(Uk), which establishes the property
in question. [1.
D. R.
J. Combinatorial Theory, 8(1970).
299.J
9.17 Let 9 be a function which satisfies the two conditions in the statement
of the problem, and let D =
Xl.", Xb b) be a
in the
G. It follows
that
If Z
g(y)=g(x)+
u).
that this property holds for every set of vertices of cardinality less
than or equal to lSI constructed by the indicated procedure. Suppose further
that there exists a vertex U E S such that g( y) < g(u).
Since g(y) = g(x) + c(x, y) ~ g(x), it follows that
g(y)
The induction hypothesis now implies that the vertex x was selected in the set S before
238
Since x, v E
+ c(v, u).
the inequality
=g(x)+c(x, y)<g(v)+
u)=g(u)
contradicts the choice of u as the next vertex for which the function 9 is defined
Thus it has been shown that the function 9 takes increasing
by this
and therefore (1) is valid and the function f satisfies both of the
... , x) with
conditions. By the induction hypothesis there exists a path Dx
g(x) in the
by S. It follows that
adding the arc
y) to the path
one obtains a path D).
. .. ,x, y), whose value is equal to
y)=o(x)+
y)=g(y).
The
In view of the condition (C) for the conservation of the flow for every vertex
x =1= a, b, it follows that the term corresponding to x =1= a, b in the sum (*) is zero.
Thus (*) reduces to IUEW-Ib) f(u)- I"Ew+la) f(u), since w-(a)=
(b)
But since every arc (x. y) E U belongs to both of the sets wand
it follows that by
terms one can express (*) in the form
239
SQlulions
C,~(X)
u.~(X) flU)) .
{**}
I ..
{J(u) - f(u)}
.V A
f(u)-
f(u)=
f(u)
flu),
_w-~)
where
is the set of arcs u which have both endpoints in the set A. On the
other hand, jfthe arcu Ew-(A), then the flow f(u) appears in (**) with a plus
sign, and if 14 w + (A) then the flow f(u) appears in (**l with a minus sign,
d and u E w + (x 2)'
since there will exist vertices Xl' X 2 A such that u w
Comparing the two expressions for the sum (**), one sees that
.,w
f(u)-
f(u)~
u,,,, -(AI
f(u)~
.,w -(AI
c(u)==c(w-(A))
9.19
Let v be a walk which joins the source a and the sink b. Denote by
the set of arcs of v directed in the same sense as the direction determined in
traversing the walk v from a to b. Similarly v- is the set of arcs oriented in the
opposite direction.
Let
c=min (min {cluJ- f(u)}, mi!l f(Ul).
UEV+
UEU
For e>O one can increase the flow fb as follows: [ncrease the flow on each arc
by i:, and diminish the flow by <: on each arc u E v -. It follows from the
method of defining e that one obtains a new flow j', which satisfies
UE
O~
j"(u) ~ c(u)
for each arc u U. The conservation condition is also satisfied at each vertex
x
b. The flow at the sink
since f{, = fb + <: > fb, and the last arc
of the walk r which terminates in b belongs to the set t.:
A walk for which I: = 0 is said to be saturated. Thus if a flow f realizes max 1'0.
there will not exist a nonsaturated walk from a to h. Otherwise the flow could be
increased at b.
Let f be a maximal flow in the network
and consider all the
walks from a to b.
all the arcs u for which there exists an elementary
Here u is the first
walk v such that 14 V and flu) = c(u) or U E v- and
arc encountered with this property in
the walk v from a to b.
The spanning graph thus obtained has at least two connected components,
since otherwise there would exist a nonsaturated walk from a to b, which conoj-.
fb=
=c(w-(A)).
But it has been seen that for every flow f and every cut induced
A c X with a ~ A and b E A one has the inequality
the set
L
UEw-(A)
f(u)-
flu)
Soilltion~
241
But it has been shown that for every flow f and every cut w-(A) one has
fb~
-(A)). For the
flow and cut this inequality becomes an equality.
Thus the flow
is maximal, and the cut w - (A) has minimal capacity.
This reasoning also provides a new proof of the F ord- Fulkerson theorem of
the
problem in the case when the capacities of the arcs are
Observe that this algorithm allows one to find the maximal flow after a finite
number of steps in every network G whose capacities are rational numbers.
Let the arcs of the network be U I, .. , Urn with c(ull pdq; where Pi' q/ are
integers and
1 for every 1 ~ i ~ m. Multiply the capacity of all
the arcs by the least common multiple
, .. " qmJ of the denominators of these
fractions. One th us obtains a transport network G I which has the same
and whose
are
Let f be a flow in the network G I , and
the flow g by
(1)
for every u e U. The conservation condition at every vertex x =/= a, b and the
boundedness on each arc will be satisfied for the network G.
In
from
f(u) =
+(x) f(u) it follows that
IUEOJ+(X)
, , qmJc(u)
that O~
every arc u E U. If fv is
then go= fb/[ql"'"
is maximal in the
network G.
In the
case, there is a flow h in the network G such that hb > gb'
Define the flow with components
t o , ... , qmJh(u) for each arc U E U
of the network
. One obtains a flow with value at the sink equal to
, ... qmJhb>
.... , qmJgb= fb, which contradicts the maximality of the
flow f.
It follows that the flow g defined by (1) is maximal in the network G if and
only if the
f is maximal in the network GI' This maximal flow can be
determined
the
algorithm in a finite number of steps, since in the
network
all the
are
The
problem shows that the Ford-Fulkerson algorithm may not
have a finite number of
if the
of the arcs are
9.21 Let v=[a, ... , bJ be a walk in the network from the source to the
sink, and let the arc u E r +. The reserve of flow on this arc will be the quantity
f(u) by which the flow can be increased without becoming larger than
the capacity of the arc.
It will be shown by induction that there exists a
for determining a
walk from a to b on which one can increase the flow according to the algorithm
n the flow fv increases by an'
at
of the preceding problem so that at
One
step 0 with a zero flow on each arc, and consider the walk [a, Xl' YI'
finds that Co min
ao, c)=ao. Define a new flow equal to ao<c on the arcs
(a. x I)' (x! ,
, b). On the other arcs the flow will be
to zero.
,A~, A~, A~ be a permutation of the arcs AI'
,A 3 ,
Let 11 1. Let
242
so that A'I has flow reserve 0, A2 has reserve an' A) has reserve an + I, and
has reserve an + I' Notice that for 11 = lone can take Ai = AI for 1~ i ~ 4,
at
11, choose a walk from a to b which includes among the
arcs Ai only the arcs
and A); for example.
Y), b],
[a,
v=
~.~.~,
,~,
.~,~
with Ez=min(c-f(a,
an+2, ce(A'd, e f(x'I' Y3), C(A'3)'
e- fIx). y~), c- f(y4. b)). The arcs Al and
have their reserve of flow equal
to 0, and thus on these arcs the flow is equal to the capacity of the arc.
One first sees that c- f{a.
I~ z +
an+z. since the amount of
1 at + a.... !. All the differences
flow transmitted to b up to now is equal to
....
A'2
A~
A3
A4).
A3
1
1
243
Solutions
max f
= 4c,
follows:
f(a,xd=
,Y2)=
f(Yl.
f(a,
, b)=c.
=f(a,
D. R.
Fig. 9.2
Fig. 9.3
244
no flow ~ith integral components can have values other than 0 and 1 on the
arcs of the network. The arcs of the form
y) with x E A and y e B which have
flow equal to 1 determine a
of the
[x, yJ of the graph C. In fact the arcs with flow equal to 1 cannot have a
common endpoint. since the entry arcs and the exit arcs of the network both
have
equal to 1. Thus they can have a maximal flow equal to 1. The
y) which have a flow feu) == 1 is thus
to the number
num ber of arcs u
of
in the associated matching, which is, in turn, equal to the flow fb
at the sink.
The maximal flow
in the associated network
to a maximal
matching in the
graph C obtained by
the arcs between
fb' The FordA and B which have a flow equal to 1. It follows that
Fulkerson theorem implies that max fb minT c(w-(T)), where T is a set of
vertices such that a f; T and beT. Note that for T = A v B v {b} one has
c(w-(T)) IAI and C IAI + 1. It follows that the minimal capacity of a cut in
the network is attained for a cut which does not contain an arc of the form
(x, y) with x e A and y e B. Thus
c(w-(T)) c(w-(To)), where
w
={(a,x)lxeAo}v
bllyeB o},
Ao
AandBocB.
245
Solutions
vertices. Let G., denote the subgraph obtained from G by deleting x and all
incident to it. It follows from the induction hypothesis that D2( G.,)::;; E(n).
Hence by using at most
(!Xj and (fJ), G can be transformed into
K n, v
wherenj:;;;'O,n2:;;;'O,andnl+n2=n.Ifxis
tOPl vertices of
K n, and to P2 vertices of
then G can be transformed into Knl v
1 or
.,.jvK 2 either
PI operations
and n2 P2 operations ({3) or
P2
operations (:x) and nl-PI
Let zl=Pl+n 2 and
P2 + nl - Pl' It follows that Zl +Z2 = n, and hence min
, Z2)
and min
1) for odd n.
one has
D2( Gx) +
min
. z2)~E(n+ 1), since E(n)
=E(n+ 1) for even nand E(n)+t(n-l)=
E(n+ 1) for odd n.
In order to characterize the extremal
G with n vertices with this
property, observe that if DleG) = E(n), then for any vertex x of G one has Dl(G x) =
E(n -1). The characterization of all
G such that r5 2(G} E(n) can now be
that all extremal
obtained
induction on n. For n~3 it can be shown
are complete bipartite
that this property is true for all
and let G be a graph with n + 1 vertices such that
with at most n
D2 ( G) = E(n + 1). If the subgraph
with n vertices is composed only of isolated
vertices, then x is also isolated or it is adjacent to all vertices of , since othersuch that Gy is not a complete bipartite
wise there would exist a vertex y
graph, and hence D2(G y) <E(n) by the induction hypothesis. But this would imply
< E(n + which is a contradiction.
that
Thus G contains only isolated vertices
G=K o.n + tl or G=
.n'
A similar proof can be used when
Kp.q where p, q> 0
and p+q=n. It remains to show that
=E(n) when p, q:;;;,O and
p+q=n. For
one may obtain a
of x vertices from
the set with p
and y vertices from the set with q vertices of
. the
operaremaining vertices constitute the second clique. Hence the number
tions (!Xl and ({3) is equal to(~)+ 2 +(i)+(q?)+x(q- Y)+ YlP-X) (x(p-q)(x- Y)-tn+t(p2 +qf). This expression has a minimum equal 10
O~x~p, O::;;y~q, p+q=n. and this minimum is reached only if x- r
for even n and x Y=f(p q-l) [or t(p q+ l)J for odd n. For the
Ko,n with n isolated vertices one finds that
E(n) if x
= n, and equality
holds only for x=y
for even n and x - I ) ,
+1) for odd n.
[M. Petersdorf. Wiss. Z. Techn. Hochsch. Ilmenau 12 (1966),
and
1.
Math. et Sci. Humaines, 42 (1973),
Let
maxG
where (}.(G) represents the minimum number of operations (~) andior ({3) which transform G into the union of k disjoint cliques (some
of them may be empty). It is known that ()I =(~) and Dk [;t(n -1)2J for any
2~k~n. [I. Tomescu, Discrete Math., 10 (1974), 173--179.J
Gl+
CHAPTER 10
246
If G has at most k + 1
then it is evident that x( G) ~ k + 1. Suppose
that the property is true for all graphs with at most n vertices, let G be a graph
with n + 1 vertices such that the degrees of the vertices are bounded above by k,
and let x be a vertex of G. Each vertex of the graph
obtained from G by
suppressing the vertex x and the edges incident with x has degree at most
equal to k.
It follows from the induction hypothesis that
X(G,,) ~k+ 1.
X(G)~X(G,,)+ 1,
X(G)~X(G,<)+ 1.
If at least one of these inequalities is strict, then the desired inequality follows,
~n. However, if ;((G) =
since by the induction hypothesis one has x(Gxl+
X(G,,) + 1 and X{G) = X( Gx )+ 1, then it follows that the vertex x is
least one vertex colored with each of the X(G,,,) colors of Gx ; thus
and analogously
X(G,,). It can thus be seen that
=n-1 and hencex(G)+x(G)~n+1.
Let a(G) denote the maximal number of vertices of G which induce a subgraph consisting of isolated vertices. It follows that x(G)a(G)~n, since each
class of a coloring with X(G) colors induces a
which consists of
wise nonadjacent vertices.
On the other hand, it is also the case that X( G) ~ tx( G) since each vertex in a
set M of pairwise nonadjacent vertices in G must receive a color different from
the other colors of M, for every coloring of the vertices of Thus
n.
The other two
now follow
from the inequality
(a+W~4ab for a, be~.
A. Nordhaus, 1. W. Gaddum, American Math.
M Onlhly, 63 (1956), 17610.3 Consider a
G. It will be shown that
of the
the faces in the interior of the Hamiltonian cycle C can be colored with two
colors so that each two faces which have a common edge are colored differently.
Now construct the dual graph GT of the faces which are found in the interior
of the
C as follows: Each face is represented as a new vertex located in the
interior of this face. Two vertices are
if the corresponding faces have
in common. Thus it must be shown that the vertices of
at least one
can be colored with two colors so that each two adjacent vertices have different
colors.
247
SoIUlions
Fig. 10.1
248
Let
b] be an
of a
[a, b] is located on the boundary
between two faces Sand T. By
the edge
b] one obtains a new
planar connected
G! with n 1
m!
and
faces, in which the
faces Sand T are
to form a new
while the other faces of G remain
unchanged. Thus nj n, ml =m -1, and II == 1 - I. By the induction hypothesis
one has II =ml -nl +2 and hence 1 11 + 1=ml - nl +3=m-n+2.
10.6 Since G is a
graph with m
there will exist ml ~ m
on the boundary between
two faces. If G has no vertices of
1,
then m! =m. Cut out all the faces of the
and count in two different ways
the 2ml edges which are found on the boundary of all the faces. Since each face
has at least three edges on its boundary, it follows from Euler's formula that
2m~
~31=3(m-n
or
m~
3n-6.
If G does not contain triangles, then one can show similarly that
n+
or
m~2n-4.
10.7
Suppose that the complete graph with five vertices is planar. Then
l=m
It follows from the
n+2=10-5+2=7.
249
Solutions
v+ 1 m=2,
(1)
(2)
312m.
Suppose now that each vertex has degree d(x)?':: 6. In any graph one has the
relation
L
since every edge [x,
that
=2m.
It is also the case
2m?'::
or
m
}?':: 1:.
2=1'+ 1 -m=v+
2m
-m=1:-
0,
Fig. 10.2
Problems in
UllllI1H11.'"
and Graph
Suppose that
contains an cdge [a, b] whose removal disconnects the
graph C. Denote by H the spanning graph obtained from C by suppressing the
edge [a, b]. H consists of two disjoint planar graphs C I and C 2 which have n l
vertices and nil edges (n2 vertices and m2 edges) respectively. At least one of the
graphs C I
has girth
. say g( Cd
The other
tree or has
qIC2)=g2~
property
from the fae!
the edge [a.
not belong
cycle in
C. it can
eluded that g(H)=g(GI.
If the graph C 2 is a tree. then
Otherwise. by
induction
it follows
and similarly
-2).
since n l
<-g-
g-2
2g
g-2
-4)+-
in-2).
if C contains
edge whose
causes C
hecome disconnected,
then the inequality is proven and it has been seen that the inequality is in
fact strict.
It remains to consider the case in which C does not contain an edge [a. b]
Let Jibe the number
elimination transforms C into disconnected
faces which
edges for i
let j' be the
number of
representation of C. It follows
since in this case each edge [a. h] lies on the boundary between two faces. Thus
2m=
251
Solutions
2
m+2=n+ j';;'n+- m,
g
and hence
m,;;.
g-
(n
2).
252
Fig. to.3
253
Solutions
Fig. 10.5
suppose the
G has vertices x \' ... ,X n does not contain
and has X( G) == k. Associate a new vertex Yi with each vertex x, of G
for i = 1, ... , n. Join the vertex YI to all the vertices adjacent to XI for i 1. ... , n.
Also add a new vertex z which is joined by an edge to all the vertices Yl, ... , Yn'
lt will be shown that t he graph G1 which is thereby obtained does not contain
and has x( G d = k + 1. Since G does not contain triangles and the
vertices YI . , Yo are pairwise nonadjacent, it follows that every triangle in G 1
must have three vertices of the form X" Xj' h. This is a contradiction, since
Xi and Xj are
to Xk and thus G contains a
Xi' Xj, x., which contradicts the hypothesis.
It will also be shown that X( G 1) k + 1. Suppose the vertices Xl' ... , Xn have
been colored with k colors so that each two adjacent vertices have different
the
colors. The vertices Y1, ... ,.I'n can be colored with k colors by
vertex Ylwith the same color as the vertex XI for i= 1, ... , n. This is the minimum
number of colors with which one can color the vertices Yr," . ,Y., since if
p < k colors were sufficient to color the vertices YI'" . ,Y., it would follow
that x( G) < k by
the vertex with the color of the vertex yJor i = 1, ... , n.
Since the vertex z is
to all the vertices YI. it follows that
d = k + 1.
By this
from the cycle with five vertices (C 5) of
10.4, one obtains the graph
III
10.5. It has no
and
to 4. By repeating the construction one finds that
its chromatic number is
for every natural number k ~ 3 there exists a
G with XlG)= k which does
not contain
10.12 Suppose that G contains three mutually adjacent vertices (a I ' hi),
(a2,h 2 ). and
,b 3 ) such that al=a l +b l ,a3=a 1+b 1, and a3=a2+b2< This
would imply that a3 = a 1 + b l + > a\ + b l , which is a contradiction.
Let x = L'l and x == C2 be lines with C2 < [I' It follows that the point (Cil C2 cd
on the line with equation x = [ I is
to all the points with
coordinates on the line with equation X = C2' Thus the set of colors of the points
of G located on the line X = C I is different from the set of colors of the points of
G located on the line x =C 2 .
that the chromatic number X(G)= m < %.
It follows that the number of lines with equation x = c, C > 0, and c e!!l is at
254
most equal to the number of nonempty subsets of the set of colors, that is,
2'" 1. This is a contradiction, and hence X(G) = IJ". [A. Gyarfas, Discrete Math.,
d2
= 2d(x,l + 2d(x 2) - 2d(x) - 2d(x 1) + 4> 0,
since
~ d(x d~ d(xtl for i = 2, ... ,r. However, this inequality contradicts
the maximality of the graph G, and thus every graph G for which S is maximal
d(x) = 3.
contains a vertex x of
The proof of the property will now be completed
induction on n. Let
n =4, and consider a
of the
K 4' In this case both
sides of the inequality are
other
with four vertices has a
sum of squares of its
of some vertices
the
with at most n
now that the
vertices, and let G be a planar
with n + 1 vertices for which the sum of the
squares of the
is maximal and which has all of its faces triangular. By
fig. 10.6
255
Solutions
{d(bJP-{d(c)}2
+d(c)~2n+
(1)
1.
In fact, if another vertex d is adjacent to all three vertices a, b, e, then an additional vertex e can be adjacent to at most two of the vertices a, b, or e, say with
a and with b. This follows from Problem 10.7 and the
of the graph G
10.7). Thus the number of
which join vertices a, b, c to the other
n 3 vertices of the
G is bounded above by 2{n - 3) + 1 = 2n - 5. Recalling
the contribution of the
b], [b, e], and
e] to the
dial, d(b),
one obtains
2n - 5 + 6 ::::: 2n + 1
d(a)+ d(b)+
Fig. 10.7
256
Fig. 10.8
face of the graph G) which is joined by edges to a, b, c as in Figure 10.8. The new
infinite face of the graph
is bounded by the cycle [b, c, X n +1, b). Also d(xn+ ==
3, deal 4, deb) = n, and
= n. G 1 is a triangulation, and
=S +9 +
2(n - 1)2 + 16 - 9 = S + 4n + 14.
the induction hypothesis S =
+3)2_
and thus SI=
+3)2-62+4n+14=2(n+4)2 62 and the
property is established.
the fact that the function x" I :[0,
is convex for IY. ~ 2, it can
be shown analogously that
I
j=
df~2(n-1)~+(n-4)4" +2
d.- z
x 3"
(2)
IY. ~ 2.
d1
dn - t =dn =3.
condition is
PG(A)=i."-IA 1 U
Uj
of the
and let
to
U'"
... U
Am by using the
v,
where p{V, ic) represents the number of functions f:X ...... p, ... , A} which take
on the same value for the
of every
in V. It follows that these
functions have the same value from Lhe set {1, ... ,
for each connected component of the
graph (X, V) of G. Thus p(V, = ),r(V). This
the
nrpccu,n for the chromatic
of the graph G in view of the fact that
257
Solutions
1+ "',
where e= [x,
X1
Let
have vertex set {Xl'" .. x n }. A .
f can be
in ). ways, at x 2 in i. 1 ways, ... at x" in ), n + 1 ways, so that
ll" ().-n+ 1)
258
pcPJ=
where Cn-e is a walk with n vertices. Thus from (b) it follows that
Ie is a cycle with n - 1 vertices. Thus
PcP,)
PdJeJ=
since PcP,)
).(i. - l)r 1
_1).-1 -PCH(Je),
yields
1_
i.(/. - 1)" - 2. + .. . + l - 1
1),
p.
pcPJ=p,-l)n+o, l)n-!-(}.-I)"
+(
2(Je-1)2+(
V lJ"-Z+'"
20.-1)
(Je-l)"+( -1)n().-I),
Since the graphs G - e and G I e have at most pledges. one can use the induction hypothesis to show that
x" - bn _ 1 xn - 1 + bn =xn-1-cn _
where
Substituting in
2.
... +(
-2+ c._
259
Solutions
a/~ i- ~) by induction on the number of edges ofG. IfG has the minimal number
of edges, equal to
then it is a tree, and by Problem 10.16 its chromatic
polynomial is equal to
1'1-1,
PG(x)=xlx _1),,-1
=xn_(n~
1)
+( _1),,-1
xM-I
(11; 1)
X,,-2
(1'1-1) x.
\1'1-1
with n vertices
-1.
The property will be proved for a connected graph G with n vertices and p ~ (;)
"lr\rt()(P that G is not a tree. Then there exists an edge e such that G - e
is a connected graph. The graph G Ie obtained by identifying the endpoints of e
is also connected, and. using the previous notation and the induction hypothesis,
one can see that G,=b,+c, for i= 1, .. , n-1 and Cn - 1 = 1, and hence ai~
Since the chromatic polynomial of a graph is
to the product
the
chromatic polynomials of its components, it follows that the smallest number s
such that x' has a nonzero coefficient in PG(x) is equal to the number of components in G.
il.
10.18 If the
G has components
then a
can bc
defined on a component
of its definition on the other components.
It follows that
PG(;)=PGP)
Thus PGP') has no roots in the interval (0. 1) if and only if each polynomial
PGp.) has this property for i = 1, ... ,m.
Finally, one can suppose that G is connected and proceed to show that
( _1),,-1 PG()') > 0 if the graph G has 1'1 vertices and 0 <;. < 1. This property will
be established by induction on the number of edges of the graph G. If G has a
minimal number n lof
then it is a tree, Pv().)
_1)"-1, and the
property is satisfied.
Suppose now that the property is true for all connected graphs G with
m ~ 1'1 1
It will be shown that the property also holds for a graph G
with n vertices and m+ 1
which is
than n -1, it follows that
Since G has a number of
that G - e is connected. The graph
there is an edge e in G with the
G Ie obtained by identify ing the endpoints of e is also connected; it has n - 1
by the induction
vertices and at most m
(_l)"-lPG _.(XO and (_l),,-2P G1 eV0
for
0<).<1.
260
>0
-eVl+(
for every
0<).< L
Thus one can concl ude that P d).) has no root in the interval (0, 1).
The fact that (3 - J5)/2 e (0, 1) implies that (3 - J5)f2 is not a root of any
chromatic polynomial
the chromatic polynomials have rational
='!' + 1 is not a root of any chromatic
it follows that (3 +
polynomial PG()') for any graph G.
incident
q(G)~D.
~xists
261
Solutions
and PI at W2 it turns out that the color (J. becomes available and it is
from among the colors of the
incident with 1), it follows that
e2 =
\\'2J can be colored with IX and this yields a coloring of the
the graph G with at most D + 1 colors,
(J.
\1'1' W2
belong to the
"',+
Fig, 10,9
262
E~----+-:---\-----~B
Fig. 10.10
263
Solutions
E~--------------------~
Fig. 1O.l!
It follows that by taking a new vertex F and joining it to all the vertices of the
pentagon, the coloring of the
of
is uniqucly extended to a coloring
of the edges of
with five colors. For example, the
AF is given color 4,
which is available at vertex A, and so on (Figure 10.11). This construction can
be
to any two graphs
and
1 with 11 odd.
10.21 Represent the chess
by the vertices of a complete graph
The matches
in one day can be
by a set of
which do
not have an
in common. It follows that the minimum number
of
in which the tournament can end is equal to the minimum number of
colors needed to color the
of
so that each two edges with a common
endpoint have different colors. In fact. one can use the same color to color
Thus the
which correspond to matches which are played in the same
the previous problem) is
to
minimum number of days is q(Kn), which
11
1 for even ,. and to 11 for odd n.
10.22 The property will be proven by induction on the number 11 of vertices
of the graph. For n = 1 or 2 the result is immediate for 1 ~ k n. Suppose that
the property is true for all graphs with at most 11 1 vertices.
Let G be a graph with n vertices and chromatic number X(G)=k (l ~k~n).
Let x be a vertex of the graph. and let
be the sub graph obtained by suppressing
the vertex x and the
incident with x. The number of minimal colorings
of the graph G with X(G) colors will be denoted C",(G).
If X(Gx)=k, it follows that
Cm(G)~kC",(Gx)~k'
=k"
264
The inequality becomes an equality only when x is an isolated vertex and the
subgraph
has a maximum number of minimal
This follows from
the fact that the vertex x can be added to a minimal
of
with k
classes in at most k different ways.
If X(Gx)=k 1. then a minimal coloring of G is given as follows:
, ... ,
l' where the sets
1 consist of pairwise nonadjacent
vertices and there exist k 1 vertices Xl E , ... , Xk _ 1 E C k _ 1 which are
to x. Otherwise one would have X(G):S;; k-1.
Let X be the vertex set of G. It follows that every
of G has a class
which contains the vertex x and a subset of the set X "{ Xl' . , Xk - d. Since
x I, ... , Xk _ I} contains n k
it follows from the induction
hypothesis that the number of
of X which contain in the same class
the vertex x and r vertices of the set X
Xl' . ,
is bounded above
r
- 1)" -k-, for O~ r:S;; n
k. In fact the r vertices can be chosen from the
II - k vertices in
." ) distinct ways. The maximal num ber of (k - 1)-colorings
ofagraphGwithn k-r vertices and X(G) k-lisequalto(k l)n-k-r.Thus
n-k (
Cm(G):S;;r=
n~
k) (k
265
Solutions
does not contain an edge. and it is sufficient to let H = G. In this case dH(x) =
ddx) = 0 for every x EX, and the graph H is monochromatic. since it consists
of isolated vertices.
Suppose that the property is true for all graphs which do not contain a
complete subgraph with k + 1 vertices. and let G be a graph which does not
k + 2 vertices.
degree in G. Denote
adjacent to x,
subgraph induced by
Since G1
complete subgraph with
that there exists a graph
from the induction
which is k-chromatic
for every
:.
Let H be a graph with vertex set X. In H all the vertices of X ",",X 1 are joined
to all the vertices of X l' Also adjacent are all pairs of vertices in X 1 which were
adjacent in H l' The graph H is (k + I)-chromatic by construction, since X(H 1) = k.
If Y f' X 1 then
dH(y) = Ix II =ddx)~dd.\'),
-Ix 11 +dH,(Y)
I-IXII +dG,(y)~dd
which establishes
Now let G
vertices and without a
k + 1 vertices,
monochromatic subsets
Denote IAI
. ,. + Qk = n, and let
the graphs G and H respectively. It follows that
1
IUI="2 L
.>:EX
dd x )::;;"2
x,X
dH(x)=IVI::;;
with
aiaj,
I.; i<j<;k
since there are edges in H only between vertices from distinct sets Ai and Aj'
The last sum is maximal if and only if lai-ak.::;l. Thus aJ = ,., =a,.=
m + 1 and ar + 1 = ' . , = ak = m, where m = [11/kJ and 11 == r (mod k), Observe that
this limit is attained only if the last inequality becomes an equality and hence
in the class of
graphs. (See Turim's
9.9.)
[Po Erdos. Mat,
249 - 251.J
class
10.25
possesses the maximum numher
number
chromatic number equal k,
of graphs with
clear
of vertices WIth
to 11, for 1::;; i::;; k (111
that any two
colors are adjacent.
vertex
multipartite
nl ~ n2 + 2, then
from the class with nl vertices into the class with n 2 vertices, thus obtaining a
new multipartite complete graph G1 with 11 vertices and mJ edges, It follows that
ml -m=n 1 -1-n2;;;:; I,
which is a contradiction. Hence jn;-nr:(1 for any l:(i.j:(k, and G is isomorphic with the Tunin
defined in Problem 9.9.
10.26 LetGbea
with n vertices. and let
=;'"-U n
1+, .. +
1)"- la
It follows that an _ 1 is the number of
of G, and X(G) = r if and
if P G(l)=P G(2) = ... =PG(r 1)=0 and
>0. If P G().) = PT(n.kP), it
follows that ZIG) x(T(n, kJ) = k -\ and that G and
k) have the same
From Problem 10.25 one can conclude that G is
number M(n, k) of
isomorphic to T(n, k). [c.- Y. Chao, G. A. Novacky, Discrete M a/h., 41 (1982).
139 143.J
I)k-i
e)
PG(i)
(-ljiG)PG(k-i).
10.28 The set of points having coordinates (0.0), (t, i), H, and (I. 0) is a
4-c1ique for G4 and the points (0,0), (0, I), (1, 0), and (1,1) induce a 4-c1ique for
,which
that X(G 4 );;;:;4 and X(G 8 );;;:;4.1t remains to define a 4-coloring
for G4 and
. In the case of G4 consider all Jines with slope 1 or -I passing
through the
of E 2 having
coordinates (digital
The intersection points of these lines are points M( p, q) where p, q E:!l and points
N(r/2, .>/2) where r, S E :!l and r, s 1
Let S denote the set of all such
Color M(p, q) E S with color r:J. if p=q (mod 2) and with color fl if
p q + 1 (mod
Color
E S with the color y if r s (mod 4) and with
1, v
the color () if r = s + 2 (mod 4). For P( u, vJ E S consider the points Q=
and R
If P is colored with the color a E
p, Y, o}, then all interior
points of the segments PQ and PR will also be colored with the color a. In this
way any square ABCD having vertices in S and length of a side equal to Ji/2
will have its four vertices colored with 0:, (3, i', 0, and the colors of the sides will
be a, a, b, c, where u, b, c E
fl, y, In this case color all interior points of
ABCD with the color a. Thus all points of
will be colored with four colors.
I t is easy to see that if d4 (E, F):.: 1 then E and F have different colors.
A 4-coloring of Gs may be defined in a similar manner. Let S denote the set
of digital points of E2, and color the points of S in the following way: the point
M(p. q) with p, q E :!l will be colored with the color ct. if p =1 (mod 2) and
q=l (mod 2): fJ if
(mod 2) and q=O(mod 2); ')' if p=l
2) and
q == 0 (mod
/3 if p =0 (mod 2) and q == 1 (mod 2). If Mlp, q) E S is colored with
Solution.~
267
10.29 If G has no
isomorphic to
it is clear that G has at least
p+ 1 vertices, Suppose that G has p+ 1 vertices.
X(G)
il follows that
there exists a partition of its vertex set of the form}.
I},
XP .. l} where
, .. "
I} spans a complete subgraph K p - 1 and xp and
xp+ 1 are not adjacent. Since
has no p-c1ique, it follows that xp is nonadjacent
to at least one vertex Xi> and
1 is nonadjacent to at least one vertex Xi'
where 1::;; i,
p 1. But in
case {xd .... ,
xp" d, " .,
d(fori:fj)or
}, ... ,
xP'
d, ... ,{xp - l (fori isa(p-l)of
which contradicts the hypothesis, Thus contains at least p+2
vertices.
Now consider a (p - I )-clique
two vertices a, b E C, and three new vcrtices
x, y, z ~ C. By definition x is
to all vertices C E C such that c 'f' a; y is
adjacent to all vertices C E C such that c:f b; z is adjacent to x, )' and to all
vertices C E C such that c:f a, b. The graph G defined in this way satisfies all
the conditions in the statement of the problem, and it reduces to the five-vertex
for p=3.
CHAPTER 11
[Yl' ... ,
n(n-1J{n-l){n-2)(n-21'(l){l)
-l)! nl.
The family of cycles thus obtained contains every cycle exactly twice, corresponding to the two directions in which the cycle can be traversed. Thus Kn,n
268
which is represented in
11.1.
Now add 1 modulo 2k a total of k 1 times to all the nonzero numbers in
this sequence. with the exception that 2k is not replaced by its residue. One
Hamiltonian cycles. In order to show that
thereby obtains a total of k
these Hamiltonian cycles are disjoint with respect to edges it is necessary to
consider the sum modulo 2k of each two consecutive nonzero numbers in the
sequence. For
these sums form the set
and adding 2 modulo 2k yields
{4, 5}, {6, 7 ... , {2k-2, 2k-l}, {O, I}.
It can be seen that these k Hamiltonian cycles are disjoint with respect to
edges. This implies that they cover all the
of K", since K" contains n(n 1)/2
Solutions
269
k+ 1
Fig. 11.1
1)/2 Hamiltonian
11
edges.
11.4 (a) Suppose that G does not contain a Hamiltonian
Add edges
under the condition that G does not contain a Hamiltonian
as long as
cycle. It
that the degrees of the vertices increase and thus conditions
(a), (b). and are
satisfied. One can therefore suppose that Gis
that is, the addition of a new
a new graph which contains a
If
is not an
then the addition of this
to
Hamiltonian
Thus G contains a Hamiltonian walk
G
which
x and y.
Denote by Zlt"'" Zi, the vertices ~~,,~~ ..... with x, where 2 = il < i2 < .. < ik ~ n.
It follows that y is not adjacent to
1 for s = 1, ... ,k, since otherwise G
would contain a Hamiltonian cycle
, . , . , Zit-a, Zn' Zn-l""
",Zis'
k=I1-1-d(x)~n-l
<
which contradicts the conThus
It follows that if min (d 1 , , do) ~ n/2, then G contains a Hamildition d 1 :;?;
tonian cycle.
tcl Now suppose that condition (c) holds and G is not Hamiltonian, but that
joining each two
vertices by an
one does obtain a Hamiltonian
cycle. Consider two nonadjacent vertices Xk and X, such that k < I and the sum
k + I is maximum. It can be seen that Xk is adjacent to all the vertices X,+ 1,' .. , X n '
and hence
(1)
Xn.
...
,X,- l'
Xl+ l' ..
270
it follows that
(3)
dk+dl~n-1.
n-l-(n-k- l)=k.
drn~dk=m.
Since k<l,
(5)
11.5 Let x, y be any two vertices of the graph G. It will be shown that G
contains a Hamiltonian walk which joins x and y.
If x and yare not joined by an edge, then add the
[x. to G. The
of each vertex remains greater than
and no Hamiltonian walk with endpoints
x and y uses this edge.
Insert a new vertex z on the
yJ to
a new
Gl' The
has a Hamiltonian
if and only if G contains a Hamiltonian walk with
endpoints x and y. The sequence of
of the vertices of the graph G1 is
whered2~
...
271
Solutions
Figure 1
Otherwise there would exist an index i such that 1::;;; i::;;; 2n - 1
to Xo, but Xi is not adjacent to Xo. It follows from
and the vertex Xi+ 1 is
an earlier observation that the vertex Xi 1 is adjacent to X2", and one thus
obtains an elementary cycle with 2n vertices in the graph G. namely
Let C =
. , ",\'2", be an elementary
with 2n vertices in the
G,
and Yo the vertex of G which does not belong to the
C. Since G does not
to two neigh
contain a Hamiltonian cycle, it follows that Yo cannot be
X} _ 1
Fig. 11.2
X}
272
vertices of
for in this case C could be extended to a Hamiltonian
cycle. In view of the fact that devol n, this would imply that Yo is adjacent to
al! the vertices of the cycle C whose indices diffcr by 2 (mod 2n), for
to YI' Y3, ... , )'2"-1' By replacing Y2i with Yo for 1 ~ i ~ n one obtains another
elementary
of length 2n. Repctition of this argument shows that Y2i is
adjacent to .\'1. )'3."" )'2"-1 for i=l, ... , n.
YI IS
to
Y2,
... , Y2m and hence
n+ 1,
which contradicts the
that Gis
(c. St. J. A.
Fig. 11.3
Solutions
27:1
Recall that x I. . , x, are all the vertices of C which are adjacent 10 vertices
of G1 It follows that if Yo is a vertex in G 1> then the set S {)'o, )'1' .. , ,
is an
independent set of vertices. By
from G the vertices x 1> . , x, one
obtains at least two connected
one of which is G l' Since the
it must contain, definition, disconnecting sets with at least k
G is
vertices and hence s:;;;: k. But this implies that
ISI=s+l:;;;:k+l,
which contradicts the hypothesis. Thus G is Hamiltonian. [V. Chvatal, P.
Discrele M Gill .. 2 (1972), 111-11
11.8 The property wi!! be established by induction on n. If n 3 then m:;;;: 3
K 3, which is a Hamiltonian
Suppose thai the
and hence G is the
with at most n - 1 vertices, and let G be a graph
with n:;;;:4 vertices and m:;;;: 2. I) + 2
It will be shown that G contains a vertex x of degree
= n - 1 or = n - 2.
Otherwise one would have d(x) ~ n 3 for every vertex x, and since d(x) 2m.
it would follow that
m~
n(n - 3)
n- 2
ml
which passes
If there exisl two adjacent vertices of the cycle, Xi and Xi+ 1 (where the sum is
taken modulo n 1), which are also adjacent to x, then it is
to insert x
between Xi and XI+ 1 so as to obtain a Hamiltonian
C in the graph G.
Otherwise, for every i =0, .. "n - 2, if x were
to XI it would follow
to XI';' 1 and hence
~ (n - I )/2. It can thus be seen that
that x is not
n-2:::;;(n 1)/2, which contradicts the hypothesis that n:;;;:4. One can now conclude that G contains a Hamiltonian
(b) There does not exist a vertex x with d(xJ == n - 2. It follows that there are
==
=n-1. If not, one would have
at least two vertices YI and Y2 with
a unique vertex of
n -1 and the other n -1 vertices of
less than
or eq ual to n - 3, and hence
274
(n-l)(n-2)
(n-l)+(n-l)(n-3)
2
+2~m~
2
(n-l)(n-21
2
which is a contradiction.
Now suppress the vertices Yl and Y2 and the 2(n - 1) -1 = 2n - 3 edges
incident with them. The result is a subgraph G 2 with n - 2 vertices and m2
edges such that
2
m2:;;'
n -3n+6
(n-3)
2
-(2n-3)=
2
.
for every n:;;' 6. By adding two edges U l and U2 to the graph G2 between two pairs
of nonadjacent vertices one obtains a graph G 3 with m3=m2+2:;;,(n;3)+2
edges, which by the induction hypothesis must then contain a Hamiltonian
cycle C 3 .
If C 3 does not contain the edges U 1 and U2, then it has been shown that one
can insert vertices Yl and Y2 to obtain a Hamiltonian cycle in the graph G.
Let C 3 =[xo ... , XI- Xi+l . ,, X n -3, xoJ, Ul =
Xi+l], and suppose that C3
does not contain the edge U 2 . Jt follows that there is a Hamiltonian cycle C for G:
C=[Xo,, X;,
Yl'
X n -3. XO].
A similar result holds when C 3 contains U2 and does not contain U l' Suppose
that C 3 contains UI and U2. and let U 1 =[Xi-l,
and U2=[Xj' Xj+1J with i~j.
In this case let
xa
275
Solutiolls
;"1
Yl
Yl
Y2
Y2
Fig. 11.4
11.9
Let L=[xo, Xl'" ., x"'] be a
elementary walk in the
G. It follows from the
of L that all the vertices which are adjacent to
Xo belong to L Since
;;: k, there exists a vertex Xj which is adjacent to xo,
and such that k~i~m. Thus C=
... , X;,
is an elementary cycle of
i+l;;:k+l.
Let L be a
276
walk L 1 has an endpoint in Xi, and that L2 does not have a vertex in common
with L!. If L I also has an endpoint in xi' the procedure terminates. Otherwise
walk
with endpoints at Xi and Xj' Traverse L3 from Xj
consider an
towards Xi' Suppose that one first encounters a vertex of the walk L 2 In this case
by the subwalk of
which terminates at Xj' This proa subwalk of
if one first
duces the two walks with the desired property. On the other
C I' then instead
consider a subwalk of L 3 conmeets a vertex of the
tained between xJ and the first intersection of
with the cycle
One again
obtains the two walks with the
property. Suppose there exists a walk Li
with endpoints Xi and Xj or different walks with these endpoints. In both cases,
one obtains an elementary cycle which contains the vertices Xo and x'" and all
vertices adjacent with them
II
The
C I and C 2 which contain
the vertices adjacent to x 0 and x'" respectively have at most one vertex in common (when i= j). It follows that the cycle which is
formed has a length
A.
Proc. London Math. Soc., 2 (1952),
than or equal to 2k+ 1.
69-81.]
Xl
xo
Xm - 1
XO "";:"-_-.1.
Fig. 11.5
11.10
more
case.
now that n > k and that the property is true for every graph with at
with n vertices and m > (nmost n I vertices. Let G be a
and suppose that G contains a vertex x with
less than or
to
the vertex x and the
Denote by
the subgraph obtained by
in Gx is greater than
incident with x. It follows that the number of
(n - 1)k/2 - k/2 == (n 2)k/2.
the induction hypothesis the subgraph
contains an elementary cycle of length at least equal to k + 1.
There is one remaining case: when each vertex x of the graph G has
(k+ 1)/2. If Gis 2-connected. then property (b) of Problem 11.9 implies
the existence of an elementary
of length at least equal to k+ 1. If G is not
then it has at least one cut point z, and hence there exist two suband G 2 of G with vertex sets X I and
such that Xl (')
= {z}.
The
and
also do not have a common
If ml' m2 denote the
Solutions
277
One can therefore apply the induction hypothesis to the subgraph G;,
which also contains fewer than n vertices. It follows that
and hence the graph
G contains an elementary
of length greater than or equal to k + 1.
Erdos,
T. Gallai, Acta Math. Acad. Sci. Hung .. 10 (1959j,
278
V(Dp)
Xjq (:
l~q~s.
(1)
p=
IpVl V(Dp)i ~ I + r.
since the union of the sets VW p ) contains
distinct vertices XI, + 1.' .
XI, + l ' Also there exist two vertices. say
and
such that the
(Xi, + l' ... 'Xi,) formed from arcs of the circuit C
a vertex x j .' In this
r does not contain the vertex
case it has been seen that the path DI of
Xj" nor therefore the vertex XI,. It follows that the r vertices of the path DI
which are diITerent from XiI + I, . ,
to the union of the sets V(Dp)
for p = I, ... , t. This observation
of (2).
Observe that
and
imply that s ~ m (t + r), so that
!
n
r+,i -r+r n-r.
Since the path D has r + 1 vertices in a sub graph with n - m vertices, it follows
that
r+l~n-m,
or
m~n
1.
But (3) and (4) are contradictory, which (",)lTI1"IIpl,'" the prool that C is a Hamiltoni an circuit.
It remains an open problem to show that under the condition of the present
problem and for n ~ 5 the graph G contains at least two Hamiltonian circuits
without common arcs.
St. J. A. N ash-Williams, The Many Faeets of Graph
Theory. Lecture Notes in Mathematics,
110 (1969),237-243.]
11.12 If the tournament G contains a Hamiltonian
then it is strongly
llI<O"L<O'U, since every two vertices of a circuit are
by a
Now suppose that G is
connected. Since for every two vertices x, y of G there
is a path from X to y and from y to x, it follows that G contains a circuit.
Let C == (y 1, ... ,Yk' YI) be an elementary circuit of G with a maximal number
of vertices.
that C is not a Hamiltonian
and let X be a vertex
which does not
to C. Since the graph is
there exists an arc (y 1,
If there also exists an arc
, x, Yz, . , . ,
Yb yd is a circuit
than
which contradicts the
It follows
that the arc between x and yz has the form (Yz. x). In fact there exist arcs (,Vj, x)
for i = 1, ... , k. Let A be the set of vertices X for which there is an arc (Yl' x).
One can conclude that
x) is an arc for x E A and i= 1, ... , k. Since G is
strongly
there exists an arc (x, z) with x E A and z (: A. It follows that
z (: C, and since G is
and z (: A, one can find an arc of the form
Yt),
This yields a circuit (x, z, YI" .. , Yk, x) which contains more vertices than C,
279
Solutiolls
and this contradicts the hypothesis. [Po Camion, C. R. Acad. Sci. Paris, 249
(1959),2151-2152.J
11.13
which
Let P=
,X2,'"
and let S be a selection of k
components. There are four possible cases:
(I)
(2)
(3)
(4)
of P
e Sand
eSand
j,xnJeS;
to the number
al+"'+aJ=k,
hj + ". +
n-k
I,
Problem
+ ... +aj=k,
hI + .,. +
I=n-k
aj
with
j- 2
al
bj
+ '"
1. In case
the
system is
+aj
+'" +bj+l=n-k-L
(n-~- 2)(~=:) solutions, and for the last case the system is the same as
for the first case. Hence
as
be a fixed Hamiltonian walk of K n , and
11.14 Let H [XI' Xl'"''
denote its edges by ej
Xi + 1] for 1 ~ i ~ n
1. Let Ai be the set of all H ami 1tonian walks of Kn which contain the edge ej of H for 1 ~ i ~ n - L Thus H(n, k)
is the number of Hamiltonian walks of
which belong to precisely k sets Ai'
By using C Jordan's sieve formula (Problem
we can show that
H(n, k):= 0-1 (_l)/-k
(~)
L
K ell, ..
IKI
nAp.
Il pEK
(1)
=:
280
nApi=
-1)12)
(2)
pEK
+ (-1)"
G)
1 -k
PAn, i)21
(n k 1),
(\.K
where Pj(n, i) is
Problem 1
since I
To obtain an
for DH(n, k) in the case of a
path DH of
K:, denote its arcs by at , .... Gn-l and let Ai be the set of all Hamiltonian
of
arc a, of D H for 1 ~ i:( n 1. The rest of the
is similar to
that for the numbers H(n, k). since K:- i has (n- il! Hamiltonian
and
of
in a unique way.
each such path may be expanded to a Hamiltonian
One also uses the identity
K:
K:
Problem l.S(a)].
11.15 Since G is connected. it has a spanning tree T. It is sufficient to prove
that 1'3 possesses the property of the statement, which says that G 3 is
Hamiltonian-connected. Now prove by induction on n that for any tree T with
n
is Hamiltonian-connected. For n~4 it follows that the diameter
of T is at most three, and hence
is the
graph which is Hamiltonianat most n -1 vertices have as their
connected.
that all trees
and let T be a tree with n vertices. If x
cube a Hamiltonian-connected
and yare two distinct vertices of T, one now considers two cases:
an edge u == [x. y]. Denote by Tx and
the
(a) x and yare joined in T
contains x and
two subtrees obtained from T by deleting [x. y] such that
Ty contains y. By the induction hypothesis
and
are Hamiltonian-conwhich is adjacent to x, and let Yt be a vertex of
nected. Let x 1 be a vertex of
T), which is adjacent to y. If one of the trees
or
reduces to a single vertex,
then let Xl =x or Yl = Y respectively. The vertices x 1 and Yt are adjacent in T3
because dtxt, yd:(3 in 1'. Let
be a Hamiltonian walk with endpoints x and
281
Solutions
X 1 in
(which may reduce to a single vertex), and let P, be a Hamiltonian walk
with endpoints y and Yl in
The walk composed of
followed by
, 'vI] and
is a Hamiltonian walk between x and J in
(b) x and yare not adjacent in T, Since T is a tree, there is a unique walk P
between x and y in T. Let v =
:] be the edge of P incident to x, By deleting l'
from T one obtains two subtrees: a tree
containing x and another tree T:
containing z, By the induction
there exists a Hamiltonian walk P:
between z and y in
. Let Xl denote a vertex of
which is adjacent 10 X or
Xl =X if
reduces to x, and let
be a Hamiltonian walk between x and x\
in T;. Since d(x 1,
2 in T. il follows Ihat
contains the edge [x l ' :]. The
walk composed of followed by
[Xl. z] and by
is a Hamiltonian walk
between x and y in
It follows thaI if G is a connected graph with at least three vertices. then the
Canad. Math. Bull., 11 (1969), 295-296;
graph G3 is Hamiltonian.
M. Sekanina, Pub!. Fae. Sci. Unit'.
412 (1960),137-142.]
A, Hobbs proved that if G is a 2-connected
IS
Hamiltonian-connected, [Noriees Amer, Math.
CHAPTER 12
12.1 Suppose that the permutation p is a cycle oflenglh k. say p = [i 1." . ikJ.
It follows that p(i I) i2, p2(i 1) = i3 , , pk- 1 (i 1 J it, and pk(i d = 11' Analogously
one can conclude that pk(j)
for every j, and hence k is the smallest number r
such that p' = e; every multiple ks of k has the property that pks = e,
Consider the cycles Pl' ... , PI in the representation of the permutation r
of disjoint
P=PI .. ' PI' These cycles commute among
Therefore if pi' = e one can
and hence it follows that pr
of the
of the permutaconclude that r is a common mUltiple of the
tion p.
12.2
have k
that is.
c(n.
(1 )
, and thus it remains to show that cin, k)=p(n, k) for every nand k.
It follows from (1) that ern, 1) =(n l)! and p(n. 1) = (n -1 J!. since the number
of permutations which have only one cycle
permutations) is equal to
n :/n. because every
can be written in n distinct ways by
as the first
clement each of its n elements. It will be shown that p(n, k) and c(n, k) satisfy
the same recurrence relation.
d.
permutation of X n + 1
Let Xn={XI""'X n } and Xn+! Xnv
with k cycles may contain the element Xn+ I alone in a cycle, with the remaining
n elements
a permutation with k -1
Otherwise X n + I is contained
in a cycle together with other elements. The element X n + I can be inserted into a
cycle with p elements in
p distinct ways. It follows that
(2)
= [x]n(x + n),
or
n+
c(n + 1. i)x i =
c(n,
OXI) (x + n).
1=0
By equating the coefficients of xl' in the two sides one obtains the recurrence
relation
(3)
The relations (2) and (3), together with the values c(n, l)=p(n, 1) (nand c(n, k) = p(n, k) =0 for n < k, uniquely determine the values of c(n, k) and
p(n, k), respectively. It rollows that p(n, k)=c(n, k) Is(n,
for every nand k,
since relations (2) and (3) are essentially identical.
(1)
-l)"'x(x
ll'(x-m+1).
(2)
Suppose that p is of
1c , 2<2 . mC" , where Cl
+ ... +mc",==m and
CI ~ O. It will be shown that
(+<. +C6 + .... and hence the parity of p
coincides with that of the number of its even cycles.
In fact, if a cycle p = [i l , i 2 , , in] has n elements, then it can be f'Yr\rf'~:~"rI
as a product of n - 1 transpositions (which are odd permutations), say
p=
Solutions
[nJm.
which establishes the second identity. [M. Marcus, American Math. Monthly.
78(9) (1971), 1028-1029.J
12.4 First we evaluate the number of permutations of an n-element set X
p
labeled with 0: 1 ., .. ,
such that the
with label 0:,
contains Xi elements (xi~1 for i=l ... p and Xl + ... +xp=nJ. The number
of arrangements of X in p boxes a l , such thaI box a, contains Xi
for i = 1, ... p is equal to n
! ... xp!
US). The number of circular
permutations having Xi elements in a
is equal to
-l)!. and hence the
number of permutations of X such that
a, contains Xi elements for every
1=1, ... ,p is
to
n!
It follows that the number of all
of X having p labeled
is obtained by
these numbers for all representations n=XI + ... +xp,
where
1 for i = 1, ... p. and where the order of the parts X I ' xI' is taken
into consideration. If one erases the labels of the cycles, it turns out that there
are (lip!) n !Ix I .. xp permutations of X with p
But, by Problem 12.2.
this
is also equal to \s(n, p)l, which establishes the equation in the
statement of this problem.
12.5 The element n + 1 can be inserted into a cycle of length p formed from
... , n} in p distinct ways. Thus nd(n. k) counts thepermutaelements of the set
tions p E without fixed
and with k
which contain the element
n+ 1 in a
of length q~3. Also nd(n 1, k-l) is the number of those
permutations which contain the element n + 1 in a
of
2. ] n fact,
the element n + 1 can form a
of length 2 with each of the remaining n
elements, The rest of the n -1 elements form a permutation of n - 1 elements
with k - 1 cycles without fixed
This observation
Every
of 2k elements with k cycles and without
of
1 contains only cycles of
2 and thus is of
2<, It follows that
d(2k, k)
In order to prove
k cycles is equal to c(n, k)
lx3x5x'''x
1).
number of the first kind. (Problem 12.2). Let Ai denote the set of permutations
p E Sn for which p(i) = i and which have k cycles. By applying the Principle of
Inclusion and Exclusion one can conclude that
n
=c(n, k)-
L IAil+ L
i= 1
1 (:
IA/nAjl- ..
i<j~11
(2)
(3)
In order to prove the necessity of the condition in (b), suppose that sand t
are conjugate, that is, there exists 9 E Sn such that s = gig -1. Write the permutation t as a product of disjoint cycles as follows:
1=[1 11 112
'"
l li J[t 21 t 22 t2j]'"
[t m1 l m2
'"
tmk ],
implies that
IS12'"
SU][S21S22'"
S2}]'"
[SmISm2'"
Smk].
It follows that two conjugate permutations can be decomposed into the same
285
-'--,
. , . [* , , ,
J=
,I
I
, follows that
j
II.
h(Ah ... ,
! ...
,V
from which
formula follows.
An equivalence class is characterized by the number of cycles and their
n 1 + ... + nk = n. One can assume that
lengths n l , ' . , nb which must
nl ~ n2 ~ ... ~ nb since the order of the
in the
is not important,
inasmuch as the product of disjoint
is commutative, Thus the number of
equivalence c111sses is precisely the number P(n) of partitions of the
n.
1
I
12.7 Cauchy's
i1
(', +
h(C\'C2 ....
,. +ru'n=n
'c n )=n!.
G=~)(k-l)!ln-k)!
-1)1.
286
(n-2)
k-l
(n-k)!
2)
.-1 ( ~= 1
(k-l)l(n
k)!
"-1
-2)1
(n-k)
is
to
t.
+,.,+ 1 ~lnn,
n
since
lim (1
n- 00
+~+
... +~ -In n)=I'=0.5772. ..
2
n
constant).
12.11 Since p2:::::: e, it follows that the permutation p has all its
of S
length lor 2. Thus the set of permutations PES. such that == e can be written
where
is the set of permutations p E with =e which
in the form Anu
satisfy p(n) = n, and Bn consists of those permutations p E
which p2 = e and I
of length 2 in p. It follows that m
in which the element n is contained in a
+
I +(n
2' In
if p(n)=n, the other n 1 elements
287
ry
Solutions
:s.
form a permutation q E
1 for which q2 = e. If p E Bn. then the element n
can turn a cycle of length 2 with each of the other n -1 elements; the remaining
2 for which r2 == e.
elements form a permutation r E
In order to prove (b) let i denote the number of
of
1 (fixed
points) of the permutation p, and let j denote the number of cycles of length 2.
It follows that
ts
of n in the form i + 2j = n
function of the number Pn is
:;
i)
=exp
(t+~).
Pn(m)
~)
k .
In
n=O
or
r~n-
The num ber 11- c(p) of transpositions can be attained, since each cycle of length
mcan be written as a product of m - 1 transpositions;
.. , [im-!, im].
288
Fig. 12.1
Thus if the
product of
289
!i
t
I
i
/(Pl} + 1(P2)
=c)
then there is exactly one value of the index k for which Pk(i) >
Thus the number of inversions from PI and from P2 is equal to the
1 number of pairs (i, j) with i that is.
1 It follows that one can arrange the permutations in Sn in
so that one has
i G) inversions together. But contains n!
and hence there are
j ~n! pairs. which implies (a).
i Ifl(Pd;;::: k. then l(P2):::: (;) - k. The correspondence thus defined between the
l permutations in Sn which have k inversions and the permutations in S" with
: (~) - k inversions is injective and surjective and hence a
This establishes (b).
The recurrence relation (c) will follow from fd).
lIn fact, if
j
(I:;;;;
290
In order to prove
equation:
(1)
+ 1, k)=
where
Ai = {pip E Sn+ l ' l(p)= k, and p(i)=n+ I},
iAii=ptn,k n+i-l),
Part (d) now follows by using (1).
in S. has at most (;) inversions. The maximum number
of inversions is attained only for the permutation n, n-l, ... ,LIt follows that
p(n, (~)}= 1 and
0=0 for i> The
permutation with no inversions
is the identity permutation 1, 2, ' , ., n, and hence p(n, 0) 1. These initial values
together with recurrence relation (d)
a
determination of the
matrix of numbers p(n, k).
In order to prove (c), observe that if k<n, then it follows from
that
p(n,k)=p(n
l,k)+p(n
l,k-l)+ ," +
-1,0),
and hence
k)=p(n-l,
For
let
(1+x)(1+x+
k-
c(n+ 1,
+x)"'(l+x"
k;,O
(.L
1;;.0
the coefficient of
where
k-n).
291
Solutions
Since the numbers c(n, k) and p(n, k) have the same initial values and satisfy
the same recurrence relation, which uniquely determine them, it follows that
c(n, k)
k) for every nand k. This completes the proof of equation (e).
12.15 Write a given permutation pEas a
of disjoint
Include cycles of length 1 (fixed points of p), and write the cycles so that their
largest elements are written first. These first elements are to occur in increasmg
order from cycle to cycle. For example, the permutation
1 2 3 4 5 6 7)
p= ( 3 4 5 2
1 7 6 eS 7
6].
p=[4,
2 3 4 5 6 7) .
f(p}
25137
~max {1!(i)-h(OI+!h(i)-g(i)\}
292
or
d(J, q)<d(J, h)+d(h, g).
where p runs
000
o 0
1 .. ",.
by the
Observe that
o
an=per
1 1
0 1
000
where
293
Solutions
bn=per
en
where
I1
.\
1
1
o
dn=per
,1,
!
o
1, and all the
)
; where
o
o
1
1
en=per
L"IJUll'U U'/S
I_
These
294
recurrence relations determine an, bn , Cn, dn, en for every n with initial values
=C2
=2, e2=1. Let
forn=2:a2
0
0 0
1 0
0 0
A=
1 0
1
0
0 0
1}
PYr,rp<:<prt
2= ...
=A n
IV!
=Anv o'
Here
which coincide with the directly obtained values for the case n = 2. Thus an
can be
as the scalar
of the vector
of the first row
of the matrix An and the vector Vo, that is, (A"}ll' [D. H. Lehmer, in: Comb.
Theory Appl., Call. Math. Soc. J.
4, North-Holland, 1970,
.. .
0
0
0
0
0
0
0
.. I
)n- p
\
JP
1
"---v----'
n-p
By
the permanent on the first row of the matrix one can obtain the
recurrence relation
A(n, p)
-1, p).
Solutions
295
Thus A(n,p)=pA(n-l,p)="'=pn-PA(p,p)
num ber p! of permutations of the set {I, 2, ... , p}.
-P p !,
12.19 For an up-down permutation of the set {I, ... , n} the number 1
may be found in one of the positions of rank I, 3, 5, ... , while the number n
can be found in one of the positions of rank 2, 4, 6, .. .
Suppose the number 1 is found in position 2k + L The number of up-down
permutations of the set {I, ... , n} with this property is equal to
I
1 - 2k'
This follows from the fact that the numbers at positions 1, ... ,2k can be
chosen in ~/) ways from 2, 3, ... , n, and the num ber of up-down permutations
with 2k positions is equal to
At the same time the number of
formed with the remaining elements on the positions 2k + 2, ... , "
is
to
1 2klfthe number n occurs in the position of rank 2k, then one
can show analogously that the number of up-down permutations is equal to
n-l)A 2k _ 1
2k' From this follows the recurrence relation
2An =
0
AoAn- + ("-1)
1
(n-1)
+(n-1)
where
n-1
1
Ao=A~
= 1.
f=~+C,
or
f=tan
(;+C),
Thus
X
11:)
l+sinx
cos x
secx+tanx.
296
and
p(l)<p(4)<
<p(8)< ....
Thus p(1 min(p(3), p(4), p(5), p(6), .. .). One can show analogously that
p(i}<
2 pU).
Let the number
be denoted g(n) for every n ~ 1. It can be seen that
g(1)= land
= 2, since both of the
1,2 and 2, 1 satisfy the
conditions. The set of permutations of the set
which are 2-ordered
and 3-ordered can be written in the form Anv
where An is the set of perm utations of the set (1, ... , n} which are 2-ordered and 3-ordered and for which
p(1) 1. The set Bn consists of those permutations of the set {1, ... , n} which are
2 and p(2) = 1.
2-ordered and 3-ordered and for which
In
if the permutation p is 2-ordered and 3-ordered and p(1) = 2, then
p(2l = 1, since otherwise the number 1 would appear in one of the
3,4, .. ,n; this contradicts the inequality
(1)
In the same way one can show that p(l)" 2, since if p(l) ~ 3 at least one of the
numbers 1 or 2 appears in one of the positions 3, 4, ... , n, and this again cont radicts (1).
It is clear that the sets
and
are disjoint, and thus g(n}= IAnl + IBnl ==
g(n-l) + g(n - 2), since An has the same cardinality as the set of permutations
of the set
... , n} which are 2-ordered and 3-ordered. The set Bn has the same
cardinality as the set of
of the set p, ... , n} which are 2-ordered
and 3-ordered,
Since g(1) =
and g(2) =
and the numbers g(n)
the same recurfor every n ~ 1.
rence relation of the Fibonacci numbers, it follows that g(n) =
[H. B. Mann, Econometrica, 13 (1945),
u;<mink'-'l
!(n)=F(n, n).
297
Solutions
F(p, q) =
-I,q-l)+
+F(p
-3, q-
-2, q
l,q-2)+2F(p
2,q
-3, q-2)+'"
2)+
for every p, q ~ 3.
It is also true that F(r, 1) rand F(r,2) r2, F(l. r) =0 for r~ 3, F(r,2r) 1
2r + 1) =
when the unique sequence 112233 rr is obtained, and
F(r, 2r+2)= ... =0. One can also conclude that F(2.3) 2, since in this case
there exist sequences 112 and 122 which satisfy the
conditions. These
initial conditions yield the following table of numbers
j) in which the first
two rows and the first two columns are determined from the initial conditions:
4
2
....................
l
9'
0 0
.. .....o'" ............
- - ..
3
4 16
24 31 22 13 4
5 25
50 85 88 75 42 19
288
6 36 ' 126
I
49 ,
298
11 ~
3
4
5
6
0
0
4
11
26
57
11
66
302
0
0
0
0
0
0
1 0
26
302 57
0
0
0
0
0
In order to prove
let P n.k be the set of permutations p E Sn with k falls,
and let I be the function which associates the permutation p=p(l)p(2)'"
p(n) E Sn with the permutation
= p(n)p(n -1) . .
E Sn. It is clear that
p has a fall at p(j) if and only if
does not have a fall at p(j + 1) for 1 ~ i ~ n 1.
definition f(p) has a fall at pill and p has a fall at p(n), Thus f(p) E
I-k'
Since f: Pn,k-+ Pn,n + 1 -k is a bijection, it follows that n.kl =
+ I -kl, that is,
(b) holds.
In order to obtain
we prove that the
IP
k)
(m+:
(1)
where the sign @ between ap(l) and ap(i + I) is ~ if the permutation p does not
have a fall at p(i) and is < otherwise. But the number of sequences satisfying (2)
is equal to the number of sequences b l b2 ... bn composed of
integers
which satisfy the following conditions:
(3)
Let b l =
Qp(2)
+ 1 otherwise:
b Y " 1 =ap(r+ 1) + S+
299
SoIUliol1s
m" =
=
IAkl == k~ln
A(n,n
are pairwise
A(n, k)
(m+n
k)
k+l)(m-l+(n-k+l l
k= 1
)= " A(n,k)(m+k-l).
n
which is (l). Since (1) holds for every m~ 1, it follows that polynomial identity
also
because the polynomials on both sides take equal values for an
infinite number of values of the variable x.
(d) may be deduced from (cl as follows. For x = lone finds that
A(n, 1) = 1. For x =2 it can be seen that A(n, n-l)= A(n, 2) =2" n -1, which
is in accordance with (d). Suppose that (d) is true for A(n. where 1~ s~ k-1.
It will be shown that this relation is also true for s = k.
Let x = k in (cl to obtain
or
kn=
k)+A(n'k_l)(n:l)+"'+A(n,n)(n+~
1)-
A(n,k)=
5=0
p=o
(-l)Pc(n,p)(k
pl",
1 (_1)5+ l(;-:'~)(":S)
P)
1), or
(_1)5+\
= (n;
(n~l)(n+s)
P s
(4)
for any p ~ 1. By using Newton's generalized binomial formula one can conclude
that
300
1 (1-
=={I_(n;l)X+
;1)
X{I+C71)x+(n;2)
+ .. +(_I)n~lxn~l}
+ .. +(n;s)xs+ .. }
In the
of the product on the right-hand side the coefficient of x P
vanishes for any p?; 1, so that
0 (
1
O. By multiplying both
the
= (": S), one obtains (4).
members by (- - P and
the Eulerian number A(n, k) may be
as the number of perm utations of {l, ... , n) with k rises. By definition, a permutation P(1)'" p(n) has a
rise at p(i) if p( i)
1); by convention, there is a rise to the left of p(l). [L.
InslilUliones Calculi DiJJerentialis, St. Petersburg, 1755, 485-487; see also
L.
Opera Omnia, 1913, Vol. 1, Section 10, 373-375.J
12.23
Let
2
n-l
...
...
nl.
1/
2), which
'-A
4).
(4m
It follows that
N(4m)
-2)(4m-6)" .
=2m {1x3x5x"'x(2m-l)}
(b) If n=4m+ 1 then p2(2m+ 1)=
can be shown that
x(4m-2)
2x6x'"
(2m)!
since
--"'I....
301
Solutions
+ 1)=a.
+1))
CHAPTER 13
13.1 Consider the axis of symmetry xx' of the rectangle which is parallel
to the sides AC and BD (Figure 13.2). The desired number of configurations
is equal to
N l +N 2 ,
where N 1 represents the number of configurations which coincide with their
with respect to a reflection in xx'. The number N z represents one-half
the number of configurations which are not self-corresponding under a reflec-
IX
I
I
I
B
1
12
~
I
I
I
I
4
15
~
I
I
I
I
7
@
c
18
@
,I
I
I
I
I
I x'
Fig. 13.2
302
tion in xx'.
follows that
which contains no
the
+2N 2
it
29 -1=51l.
In order to
the value of N I, consider the configurations of the six perforations located on the same side of the axis xx' and on the axis xx' under a
symmetry with respect to xx'. The result is that N!
- 1 = 63, The desired
number is thus
11 +63)=287.
Vrr1,('".,,'l1m
1)12J-l_1.
(1)
Reflexivity: x tation, e E G.
(2)
(3)
of
In fact, since
is a
of G, one can consider the set GIG k whose classes
are sets of the form
9 E Gk }, which form a
of the set G and
whose cardinality is equal to
=IGI/IGkl. It will be shown that this number
a bijection from Ok to
is equal to lOki by
Observe that
Solutions
303
1
G.
IGI
10d 10,(qIGI.
which
that
q=(l/IGj)
1 n
n m-l
}.1(R m ),
(1)
where }.j(R m ) represents the number of polygons P with k vertices which are
the rotation
invariant under R m, that is, Rm(P) = P. Observe that jf one
su(;ce!;siv'ely to a vertex A of the regular polygon with n
then the
smallest index d for which R~(A)=A is equal to d==n!(m, n). In fact it must be
the case that n dm or n/(m, n) d {m/(m, n)}. This
that the smallest
integer d which satisfies this relation is n/(m, n), since the numbers n/(m, n) and
m/(m. n) are relatively prime.
the vertices of the
with n vertices
the numbers
304
a=c+ pm
where r, s ~ 0 are
rn and
b=c+ qm-sn,
la-bl=l(p-q)m+(s-
~(m,n)
fen, k, m) = ( k(: n) ).
If n is not a divisor of k(m, n) then
has the form
)'1 (RmJ
L
m
1
n I k(m '
fen, k, m).
(4)
305
Solutions
By using the notation d = n!(m, n), the condition n k(m, n) becomes d k, and
since din, it follows that d (n. k),
Now calculate the number of terms in summation (4) which have the same
value. Assume that d is fixed and m takes values between 1 and n such that
k(m, n) is divisible by n. If e = ml(m, n) then e ~ n/(m, n) = d and (e, d) 1. The
condition n k(m, n) is satisfied if d (n, k). Thus for fixed d, fen, k, m) takes the
same value for all numbers e which are prime to and less than d. The number e
uniquely determines m
m = e(m, n) = en/d. It follows that the number of
convex polygons with k vertices which cannot be obtained from one another
by a rotation is
to
({J(d)
nd
1 "
n m=
;'1 (Rm),
(1)
where d =n/(m, n) and p=(m, nl. Each cycle in (1) is formed from numbers of the
set
... n - !}
to vertices of the regular polygon which are
colored with the same color.
Also, every (m, nl consecutive numbers modulo n in the set {O, ... n -1 }
belong to different cycles in (1). Thus the number of
invariant under
Rm is equal to the number of colorings with k colors of(m, nl consecutive numbers
modulo n from {O, ... , n -1;. that is. to the number of functions
1, ....
-1 I"
nm=!
ki".m,=
({J(d)k"'d.
ndln
13.5 One first obtains a formula for gn' If in the representation of the
permutation p Ii:' Sn as a
of disjoint cycles there are dk cycles of
k for k 1, ... , n, then p said to be a permutation of
1dt2d,. . nd n where
d! +
+ ... +ndn=n.
306
Thus
2Gd , from which (a) follows, since the number of permutations of
type
"'n4 "is
ton!/Ndand
=n!.
In order to prove (b) one can proceed
Two vertices x, y can be
x), or joined by both the
nonadjacent, joined by the arc (x. y) or the arc
arc (x, y) and the arc (y,
There are thus four possible cases. Also, in the
expression for
the summation
even !kdk must be replaced by
Lk even t(k - 2)dk For two vertices u, v of an even cycle of length k, separated by
the maximal distance k12, there are only two
either u and v are
or u and v
by both arcs (u, v) and (v, u), since the existence
G under the perarc would contradict the in variance of the
mutation p. Thus by applying Burnside's formula one obtains the numerator of
d., which is expressed by
Solutions
307
existence of both arcs (iI' il<+ d and (i k + I' id contradicts the definition of a
tournament, and hence in this case d(p)=O. Otherwise, if p(G) G, one can
choose an
direction only for
arcs; the orientation of the remaining arcs is uniquely determined by the orienta satisfy (3).
tion of these arcs, and the numbers d l , d 3,
The values of the numbers 9n' dn, and In up to n 7 are given in the following
table:
n
1
2
3
4
5
6
7
13.6 The relation fl -
d.
9n
1
2
4
11
34
156
1044
tn
3
16
218
9,608
1,540,944
882,033,440
2
4
12
56
456
f 2 is an equivalence relation.
It satisfies:
Reflexivity: f"'- f because f"" fe, where e is the identity permutation and e E G.
(2) Symmetry: fl"'"
implies that f2.... ,since there exists 9 e G
such that
and thus f2g- 1 == fl and g-I E G.
(3) Transitivity: fl""
and
imply that fl '"
fig f2 and f2h= f3 with g, he G implies (flg)h=
where g17 E G, since G is a group.
(1)
308
If m;;r. 2 there is a
I which uses different colors for the distinct elements
and
since F is the set of all functions I: X ...... A.
Thus
=1=
or jgI(k)"I" Ig2(k), from which it follows that j9I
and
are different and I/> is an injection. If m = 1, then I/> no longer is
However, in this case the number of colorings is equal to L so aJl the
have the same color and P(G;I, ... ,1)=(l/iGI)Lg<c1=1, which completes
the proof of the property.
Let G={9IgeG}. Since I/> is an injection, it follows that there exists a
bijection I/>I :G ..... GcS defined
I/>I(g)=I/>(g) for every 9 E
and hence
IGi=IGI
The set Gis a subgroup of the group S of permutations of the set F of colorings,
since iiI' 92 E G implies that 9192 e G. In fact -lg2U)=gl(Jg2)= j(g2gd=
g2gdf), and thus the product of two elements of say 91 and , is an element
of G which
to the
g2g1 e G. Since S is a finite group, it
of S.
to the given definition, two
11 and are
if
there exists 9 e G such that f1 9
or gUt> "" 12' and thus
belong 10 the
same orbit of the group This implies that the number of equivalence classes
is
to the num ber of orbits of the group By Burnside's theorem (Problem
this number is equal to
9 or the
where }'lUi) represents the number of fixed points of the
number of colorings I such that g(f) == f or fg = f. But fg f implies that I
is constant for every
of the permutation g, since otherwise one would have
*1
IGI
13.7 Consider the set X whose six elements are the faces of a
which
will be denoted 1. . , . , 6 as in
13.3. The vertices of the cube are labeled
a. b. c, d, e, J, g, h.
Now use Poly a's method to count the equivalence classes of the colorings,
I: X -> A {a l , . , . , am). The group G of rotations of the
that is, the
cube will be determined; it is a
of the group of permutations of the
set X.
The rotations which leave the cube invariant can be
as follows as a
of disjoint
and
of
I:
309
Solutions
rI 4
f
Fig. 13.3
(11 )
(12)
(13)
The axis bcfg-adhe means the axis determined by the centers of the squares
bcfg and adhe. The axis ab-l1g is the axis determined by the midpoints of the
ab and hg, and so on. Since cycles of
1 are not
the
~~~~~fuct
~~
P(G;x 1 '
... X 6 )
+3xix~+
6x~+8x3).
310
By using
theorem from Problem 13.6 one finds that the number of
ways of coloring the faces of a cube with m colors is equal to
+3m4 +
'm,....
+8m 2 ).
13.8 In the solution to Problem 13.3 it was shown that the rotation R",
of
2nm/n of a
about its center can be written as a
length d = n/(m, n):
of (n, m) cycles of
I 1" x'
(n m)
- 1
n ",=1 .'(n.m) --n
X~'d
m""
(m,n)=nld
11
t 1 ..
1=n
rp(d)X~/d,
because if e=m/(m, n) then the conditions m~n and (m, n) n/d are satisfied if
and only if e~d and (e, d)= 1. An application of
theorem shows that
the number of
with k colors of the vertices of a regular polygon with
n vertices which are not obtained from one another
a rotation is equal to
(l/n)
In
if G is a finite group with p
sentation as a group of
by
xa
for every x E G. Thus a becomes a permutation of the set G which can be decomposed into p/k cycles of
k, where k is the order of the element a in C.
In fact xa m = x if and only if a'" = 1.
as
one finds that the
cycle index polynomial of the group G is equal to
1
IGI
where p=ici and rp(C, d) is the number of elements of order d in the group C.
Observe that in Problem 13.1 the group of rotations about the axis xx' which :
ABeD is formed from permutations
leave invariant the
G={e [IJ[2J[3J[4J[5][6][7][8J[9]
,3][4,
and
vnr,m I A I
[7,9J}
is thus
The number of
perforations is
to the number of
schemes with two
the case when there are no perforations on 0
the ticket. Thus the number is equal to
1
rl
; 2,
311
Solutions
If there
for example, two types of perforations. of different diameters,
Ihen it would follow from P61ya's theorem that the num ber of possible perforalions of a ticket is equal to
PIG; 3. 3)-1
1 = 10.205.
fon t is
to
(k.i) JAkIn
[X k;(k. i)
:'9 (1927),
13,10
is G={[1][2][3J[4],
13.12
I~ w(a) ~ n.
:HAPTER 14
14,\ Consider the graph of Figure 14.1 in which all edges have length equal
o I. Suppose that the property does not hold, and assume that A is colored a,
! is colored b. D is colored c, and thus that F is colored a. One can conclude
nalogously that G is colored a and hence there are two points F and G at a
istance 1 which have the same color; this contradicts the hypothesis.
.Hl
Fig. 14. t
14.2 Suppose that the two colors are red and blue. For every coloring there
will be two
M and N with the same color, say red. If the midpoint P of
the segment M N is red, then one has obtained three equidistant collinear points
with the same color. Otherwise, suppose that P is blue. If the point N 1 which is
to N with respect to M is red, then the points N 1, M, and N are red. il
If N 1 is blue, consider the point M 1 which is symmetric to M with respect to N.
If M 1 is red, then the desired points are M. N, M l' Otherwise M 1 is blue and is
thus N 1, P, and M 1 are three equidistant collinear blue points.
fe
Thus in any coloring of the
of the plane with red and blue there will Cl
exist three
collinear points of the same color, say red. Denote these
01
by A, B, C. Construct the equilateral triangle AFC so that E, D are the Sl
of its
14.2). If F is
then AFC is the desired
Otherwise F is blue. If D and E are blue, then the equilateral triangle DEF has
blue vertices and the problem is solved. Otherwise at least one of the points D
and E is red. Suppose that D is red and thus the triangle ABD has the desired an
property. In order to show that there exists a 2-coloring of the points of the
in which no
triangle of side I is monochromatic, consider
the plane
with an x-y
coordinate system. The lines y
tl
(J3/2)k with k an integer partition the plane into a network of parallel bands. 0
Suppose that the band bounded by the lines (J3/2)k and (J3/2)(k + Ucontains:
all the points of the line (J3/2)k and none of the
of the line (.J3/2)(k + 1). ~re
10.
F
lid(
EFI
I
side
:ria:
A
B
Fig. 14.2
orig
irial
me
leory
j Solutions
313
E
Fig. 14.)
lere
) of
lnts
his
ed.
Now color the points of the plane red and blue so that all the points of a
band have the same color but each two neighboring bands have different colors.
Sihce each band has width J3/2, which is equal to the altitude of an equilateral
triangie of side 1, it follows that every equilateral triangle of side 1 has vertices
in two
bands and thus does not have all of its vertices the same color.
. N.
14.3 If all the
of the plane have the same color, then the property
md is evident. Otherwise there will exist two points A. B at a distance 2, with different colors. In fact every two points of the plane which have different colors
Nill can be joined by a polygonal line which has all of its segments of length 2, and
e~e one of these segments must have
of different colors. In
14.3
tl e suppose that
~ e.
AC=CB=AD=DC-AE=EC=1
1as
'D
:ed and
~he
DE=BD=BE=J3.
jer Let A be colored red and B colored blue. One can assume that C is red, for
)." otherwise one could make the argument below for the
which are sym?s. metric to D and E with respect to the perpendicular bisector of AB. If D or E is
I~S
then one obtains an equilateral monochromatic triangle of side 1. If D and E
). are blue, then the triangle BED has all of its vertices blue and side length equal
IOJ3.
14.4 Consider an equilateral monochromatic
red) triangle ABC of
side a. In
14.4, BDE and CH F are equilateral triangles of side b,
EFG is congruent to ABC, and BE and CF are perpendicular to AB.
Problem 14.3 there exists a monochromatic equilateral triangle ABC of
lide a E {I, .j3}. If a= 1, then Jet b=,J3, and if a=J3, then let b= l. The
Iriangles ABE, DBC, GFC, EFH, ACH, and DEG are all congruent to the
T. Now A, B, and C are ali red. If there are no monochromatic
DBC, and ACH.
congruent to T, then by considering
me can see that E, D, and H must be blue.
DEG forces G to be red.
314
b
b
b
b
""=:"' _ _-----i F
b
G
Fig. 14.4
-=
BC
B'A
CB
14.5).
d
Ie
\\
Fig. 14.5
Ie
315
ry
1983.]
a
a
is
).
al
d,
at
Id
Fig. 14.6
14.7 1t will be shown that every sequence of numbers (11, a2' ... ,amn ~ 1 con
lains either an increasing subsequence with at least m + j terms or a decreasing
with at least n + 1 terms.
Suppose that every
sequence has at most m terms and every
sequence has at most n terms.
For each term al define the numbers Ci and d i as the numbers of terms in a
iongest increasing or decreasing sequence which begins with ai' The mapping
which associates with every term al the ordered pair (c" dJ is injective. In fact,
iet
and al ~ aj. In this case one has Ci:;;:
1 and hence cd Cj or , dd r
316
It(x)
1(1)
k} I~ 2k
for
O~k~t(lJ-1.
Since the number of elements in the domain of f is equal to 2"-1, one can conclude that
f!l)-I
2"-1 =
It(x)
t(1)-k}l~
k=O
1"11'(\npr!v
-p
It follows that g(i) ~ Hor i = 1, .. " 2"- 1_1, and the values taken on by 9 form
n 1 intervals which are strictly
sequences. If 1~ a 1 < ... < a, ~
2""1_1 and f(atl~ ... ~ f(a,), then two f(ai) and f(aj) with i
cannot both
to the same interval, and hence t ~ n -1. [E. Harzheim, Pub!. Math.
Debrecen, 14 (1967),
14.9 If the convex covering of the nine points (the smallest convex polygon
which contains the nine points in its interior or on the sides) has at least five
vertices, then the property is immediate.
M
Now analyze the remaining cases in which the convex covering is a quadrilateral or a triangle.
(a)
that the convex covering is the
M N PQ (Figure
r 14.7). If the other five
form a convex
the proof is finished.
Otherwise there exist four points which do not form a convex quadrilateraL
Let D be the interior
of the triangle ABC.
the angles ADB, BDC,
CDA, there exists one which contains two vertices of the quadrilateral. for
example, M and N. One has thus obtained a convex pentagon MNBDA.
(b) If the convex covering of the nine points is the triangle ABC, then one
must analyze two subcases:
The convex covering of the six
is a quadrilateral
Let
V be the two other
in the interior of the
If the line UV intersects two
edges of
(Figure 14.8).
(1)
--M
/
/
/
/
/
/
/
Fig. 14.7
""
""
N
"Fig. 14.8
Problrm~
Jill
ro
B
~----------------------~~
.....
"-
Fig. 14.9
"-
"- .....
......
'Y
jSo
lutiolls
319
e ~ It has been conjectured that for every choice of 2m 2 + 1 points in the plane
_ ,such that no three are collinear there are m which are the vertices of a convex
has been verified through m = 5. It has also been shown
. polygon. The
with no three collinear such
,that there is a choice of 2m - 2 points in the
,that no m points form a convex polygon,
14.10 Suppose that there exists a coloring of the
of the graph G
and which uses different
.which does not induce a monochromatic
colors for the
of the
Thus there exist two
of
,which have different colors, say [AI' A 2 ] red and [A 2 , A3J blue.
Consider an arbitrary vertex B j of the cycle Cm. One can assume, for example,
that the
[B), A 2 ] is red. Since there is no monochromatic triangle, it follows
[AI, Bj ] is blue.
that the
Let + 1 be a
by an edge to B) in the eycle
(taking Brn -1 = B 1)'
, If the
[B]4- I,
is red, then the edge [B)+ I ' Ad is blue, and
no
matter whether the edge [B}! B]+ 1] is colored red or blue, one of the triangles
B]B j + I A I or BjB,+ 1 A2 is monochromatic (see
14.10), which contradicts
the hypothesis.
Thus if the
[B l ,
is colored red, then the
[B)Tl'
is colored
blue. Analogously if the edge [B),
is colored blue, then one finds that the
edge
l ' A 2 ] must be colored red by
A I with A3 in the
with the
argument. Traverse the cycle em, starting from the vertex
[B},
colored red and passing through the neigh boring vertices. One will
A2 J must be colored blue, since m is odd.
meet Bi , which implies that
This yields a contradiction which establishes that all the
of the cycle C.
have the same color. II can be shown
since n is also odd, that all
the edges of the cycle
must also be colored with the same color.
It remains to show that the two colors of the cycles Cn and Cm are identical.
Suppose that there exists a coloring without monochromatic triangles with the
of the cycle
are blue and all the
of the
property that all the
are red. Suppose, without loss of
that the
[otherwise the colors red and blue can be interchanged). (See
14.11.)
It follows from the nonexistence of a monochromatic triangle that [A l ' B 2]
IS blue,
, B 2 ] is red, [A2'
is blue, and hence [AI' B 3 ] is red. 'Now replace
320
BI by
and repeat the argument. It turns out that for every two adjacent
and
I of the cycle
the colors of the edges
and
,B J ';'1 are
But this conclusion leads to a contradiction, since the
Cm is odd. It follows that the m + n
of the
and Cn are
colored with the same color.
m == n = 5 this problem was
at the 21st International Mathematical Olympiad in London in 1979.)
14.11 The
will be established by induction on p + q. For p= 1 or
q = 1 it is immediate.
now that p, q> 1. Let x be a vertex of the complete
with no vertices which is colored with two colors. Denote by d,(xJ the
number of red edges which have an endpoint at x, and
db(x) the number of
blue
which have an endpoint at x.
Since
l=(P -1
(p;~ 1 l)+(P+: -1)_1,
dr(x)+db(x)=no
p+q-
d,(x)); ( p-1
or db(x)); ( P+q-l)
p
.
Suppose, for
that the first inequality holds, and let G be the complete
subgraph induced by the vertices which are
by red edges to x. (The
second inequality can be treated analogously.) Since G has at least e';~~ I)
vertices and its
are colored red and blue, it follows from the induction
hypothesis that G contains either a complete red subgraph with p vertices or a
complete blue subgraph with q + 1 vertices. In the second case, the proof is
finished. But in the first case G contains a complete red subgraph with vertex
set H, where IHI = p. However, in this case H u {x} is a complete red subgraph
with p + 1
and the
is finished. It is clear that R(p, q) =
p} and
R(p,2)=p. The only known nontrivial values of the numbers
q) with
Solutions
321
p, q ~ 3 are
in the
table, where %
lower bound a and an upper bound b are known.
14
18
23
18
25
34
14
25
38
38
18
34
36
38
102
23
8
9
28
29
36
28
36
for p=q==k
I.
322
Observe that
2k -12)
( k
(1)
v,
2k-2)=2=
( k-l
l1
Suppose that
R
2k-2\,;::
( k-l J""
I
12) tI
a
c: n'"
II
(2:)< 4 ~ 4
x
and thus (2) is true for every k';P 2. In order to obtain the lower bound one can
suppose that the index k ';P 4. In fact for k = 2,
2) = 2 = 2"'2, and for k = 3
one finds that R(3, 3)=6>2.ji
Problem 14.12.
Let n =
that is, the smallest integer which is greater than or equal to
. Let Xbe the set
of the complete graph
and let E = {E l , ... ,Em }
be the family of subsets of X defined as follows: Ei is the family of edges of a
complete subgraph with k vertices in Kn. Since there are (~) such complete
subgraphs, it follows that m=(~). By a similar
one can show that
r= lEd =(~) for every 1", i '" m, since Kk has (~)
By the given
it is possible to color the elements of X with two colors
so that no subset in the
E has all elements of the same color if and
if the complete graph
can be colored with two colors so that there is no
complete monochromatic subgraph with k vertices. Thus n < R(k, k) if one can
color the elements of X with two colors so that no subset in the family E is monochromatic. By Problem 4.24 this condition holds for
2' - 1, or
m'"
(~)"'2(~)-1.
The validity of
(3) follows from the fact that (~)
every k';P 3 and n - 1 < 2"/2. One can therefore conclude that
sincel~)
1-
oif k';P 4.
-k+lJ
(3)
o
e
o
F
g
1
\'
e
323
y Solutions
+a2
R(al'
2).
all-
ad)
Observe that
[k!eJ=
~J==
.,
J.
k!.
"
J.
1 +k[(k-l)! e],
324
+
+
a
C
S
\1
{:
b
S
tc
51
jl
w
Sl!
b(
in
ar
to
im
it:
ree
wi
fin
325
Solullons
which satisfy
infinite
monochromatic
as follows: Let Yt ::= ; Y2 is the first of the vertices
XI) which is not
to Yl by a red
and
Y2 is joined to Yl by a
blue
There will exist such a vertex Y2 because there exist only a finite
number of red edges which are incident with YI' The vertex Y3 is the first vertex
among the vertices with indices greater than the index of Y2 which are joined
to YI and Yl' and so on. The process can be continued
by a blue
since the set of vertices Xi) with
1 is infinite and each such vertex is incident
It follows that the
infinite subgraph
with a finite number of red
generated by the set of vertices {YI, Yl""} has all of its edges blue.
(b) Suppose that (a) does not hold, and assume that the graph K does not
contain a complete infinite subgraph with all of its edges blue. Let Xl =
Ir(x) = It follows that is an infinite set. Choose Yl eX 1, and denote
by X~ c:: X \ the subset of vertices of X I which are joined to Yl by a red
Since (al does not
it follows that the vertices of
which do not belong
to
are finite in number, and thus X; is an infinite set. Denote by X 2 c:: X; the
subset of vertices of X i which are incident with an infinite number of red
is finite, it follows that X~ ,",X 2 is an infinite
with both endpoints in X~. If
set of vertices which are incident with a finite number of red
which have
both endpoints in
The problem is thus reduced to case (a) for the
infinite
infinite
with vertex set X~. There is a
with all
blue which contradicts the
Thus
and one can choose Y2 e X 2'
It has been shown that the hypothesis that
is an infinite set leads
to a contradiction, and thus X; ,",X 2 must be finite. Since Y2 is incident with an
infinite number of red
with endpoints in X~, and since Xl ,",X 2 is finite,
c::
of vertices in
which are
to Y2
a
it follows that the subset
red
is infinite. Let X 3 c:: X zbe the subset of vertices of X zwhich are incident
with an infinite number of red
with both endpoints in Xl' As before, one
finds that X 3 is an infinite set, so that one may choose Y3 eX 3, and so on.
By induction, a complete infinite graph generated by the set of vertices
XI"
Xi2"'"
r(xi) < 00. Define inductively the vertices Yl, .1'2' .. , of the
(f:;
326
{J'I' Y2""} is
It has all of its
red. This establishes the result
for r=2.
Suppose that the property holds for all colorings of
with at most r-1
colors, and consider a coloring of
with r colors: C1 , C2,' , c,., where r?it 3.
Recolor the
which are colored C r - ! or c, with a new color Cr + I'
the
induction
for r 1
there exists a
infinite monochromatic
If the color of the
of this graph is one of the colors
Cl"'" C,-2' then the proof is finished. Otherwise there exists a I'ATnnlPI
infinite subgraph with all
colored Cr + l '
recoloring the edges of this
graph which originally were colored Cr - I and Cr with these colors and applying
the property for two colors, one obtains a complete infinite subgraph with all
1 or cr }. The property is thus demonstrated
the same color
for every r.
14.20 Denote the vertices of the
graph K y ,
numbers from the
set {I, 2, .. 'J' The
j] is colored red kj and a;<uj. It is colored yellow
if i
and aj > aj' and blue if i
and ai aj'
using the
problem
one can show the existence of a complete infinite monochromatic subgraph. If
its color is red, then there will be an infinite strictly increasing subsequence;
for yellow one finds an infinite strictly decreasing subsequence, and for blue an
infinite constant
14.21 First we show that for every infinite set A of points in the plane there
is an infinite subset A 1 of collinear points or an infinite subset A 2 of points such
that no three points are collinear. Consider all the lines determined by pairs of
points from A. If one of them contains an infinite number of points of A, then
the property is demonstrated. Otherwise each line determined by tv;,o points
of A contains a finite number of points of A,
In this case carry out the following construction: Let x 1 and x;; be two
of A, Denote
the set obtained from A by eliminating aU the points
of the line x I x 2, including x 1 and X2' 1t follows that B 1 is an infinite set. Let
X3 E B!. Denote by B2 the set obtained from
by eliminating all points on the
Jines X3X! and X3X2 which belong to A. It follows that B2 contains an infinite
number of points. If a set of points
has been obtained with the
and if B'-1 is the infinite set of points which
property that no three are
of
belong to the set A and are not found on any of the lines determined by
from
, , .. ,
then let X y + I E B"-I' Denote by B,. the infinite subset
of points of Br _ 1 which are not found on any line x 1 Xr~ ! , ... , XrXy+ I , and so on.
Tt has thus been shown by induction that this construction can be continued
indefinitely, and thus A contains an infinite subset
! ' x 2, , . ,} of points with
the property that no three are collinear.
Now let A be an infinite set of points in space. If there exists a line determined
by a pair of points in A which contains an infinite set A 1 of points of A, then Al
is a set of the type discussed in case
Otherwise, if there exist three points in
A which determine a plane containing an infinite number of points of A. then
by
the previous result one obtains a set A2 as discussed in case
327
Solutions
every pair of
of A determines a line which contains only a
finite number of points of A, and every three noncollinear
of A determine
a plane which contains a finite number of points of A.
Now make the following construction: Let Xl, X2 EA. Eliminate from the
set A all the points of the line X 1 X 2 to obtain an infinite set B I' Let x 3 E B 1 .
Eliminate from B I all points of the
XI X2X3 and obtain an infinite set B 2
Let X4 E
. It follows that X 4 does not belong to the plane x I x 2X 3, nor therefore to the lines x I X2' Xl X 3, and x 2X3' Eliminate from
all
of the
X\X2X4, X1X3X4, and X2X3X4 to obtain an infinite subset
of A.
If one has found points x I, ... , Xl' with the property that no four are coplanar
and an infinite subset _ I of A with the property that it does not contain any
point of the (;) planes determined by x I' ... ,X,., then let X,.+ I E
l ' The
infinite set B,. is obtained from
\ by eliminaring all points of the
determined by Xl'd and the
lines determined by
of
from the
set
, ... ,x,.}.
It has been shown by induction that this construction can be continued
indefinitely, and hence A contains an infinite subset A3 = {x 1, X2' .. } of points
with the property that no four are coplanar.
I'
14.22 Suppose that the property is false. Let the two classes be A and B,
and suppose that 5 EA. It follows that the numbers 1 and 9 do not both belong
to A. In view of the symmetry, without loss of
it is sufficient to consider only the following two cases:
(a) 1 E A and 9 E B. Since 1 and 5 are in class A. it follows that 3 E B; 3,9 E B
implies that 6 E A; 5, 6 E A implies that 4 E B; 3,4 E B
that 2 E A ; 5,6 E A
that 7 E B; and 7,9 E B implies that 8 EA. Thus
5,8} c A, and hence
the class A contains an arithmetic
with three terms.
1 E Band 9 E B. There are two subcases:
7 EA. In this case 5, 7 E A implies that 6 E Band 3 E B. Thus
{3, 6, c B, and B contains an arithmetic
with
three terms.
7 E B. From the fact that 7, 9 E B it follows that 8 e A; 1,7 E B
implies 4 E A: 4, 5 E A implies 3 E . and 1,3 E B implies 2 EA.
One has
found an arithmetic
5, 8} c A.
The property is no
true if one considers the set {I, ... ,8}. This result
is a particular case of a theorem due to van der Waerden which states that for
every two
k, I, there exists a natural number W(k, t) which is
the smallest integer with the following
: If the set {I, 2, .. ,W( k, t)} is
partitioned into k classes, there will always exist a class of the partition which
contains an arithmetic progression with t + 1 terms. [8. L. van der Waerden,
Nieull'. Archielvoor Wiskunde, 15 (1927), 212-21
The following values of the van der Waerden numbers are known:
W(l,t)=t+I,W(k,1)=k+I,W{2,2)
W(2,3)=
W(3,2)=
W(4,2)=76,
328
D.
14.24 The answer is yes. To see this define a sequence of sets An' n == I, 2, .. ,
as follows:
A\=
2}
and
for n~l.
whence
y = t(x + z)
contain a
or an
be a vertex of G. Since G does not contain a
1)+ t.
(1)
329
Solutions
to x are themselves
Let d(x)=d. It follows that
d ~ t -1, since G does not contain an independent set with t vertices. Let Go
are
denote the subgraph obtained from G by suppressing the vertex x and the d
vertices adjacent to x. It follows that
contains R(3, t)-d-2=po vertices.
Since d ~ t -1, one has
Po-;:R(3,
I-I.
The graph
does not contain a triangle, since G has this
Similarly,
cannot contain an
set with 1-1
since if it did. the same
set together with the vertex x would yield a set of t
in G. Thus R(3, l-Ipo, which
(1). Now
l = 2 one has R(3, () 3 while (12 +
> 3. and thus the
that it is valid for 1 ~ n - L n ~ 3. and let t = n. Take n to be
It follows from (1) that
2k+l):S;;R(3,
+2k+l,
2k+ I)
or
+2k+2
+3
330
1=
331
Solutions
X=X 1 UX 2 UX 3 UX 4
such that 1 ~
-IXll ~ 1 for every i,j = 1, ... ,4. Color the edges of Kn in the
following way: all
between Xl'
and between X 3,
with the color a:
all
between Xl' X 4, and between
with the color b; and all
between Xl' X 3 and between X 2' X 4, with the color c. All edges having both
ends in a set Xi where 1 ~ i ~ 4 will be colored arbitrarily with the colors G, b, or c.
If n 2 (mod 4) it is clear that the maximum number of vertices of a monochromatic connected
of
is
to [(n + 1}j2], and hence
in this case it follows that
If n == 2 (mod 4), then for the abovedefined
of the
set of Kn the maximum number of vertices of a
monochromatic connected spanning subgraph is equal to ni2 + 1, and therefore
in this case 13(n) ~ n!2 + 1. In order to prove the opposite
consider
for n 4p + 2
an arbitrary
with the colors G, b, and of the
(p;;;: 1). It has been shown that there exists a monochromatic connected spanning subgraph of K. with at least
+ 1}/2J = + 1 vertices. Let H be such a
subgraph, and suppose that the edges of H have the color c. If A denotes the
connected component composed of
with the color c, which contains the
and if
;;;:2p+2. it follows that 13(n);;;:
+ 1. Hence in this
vertices of
case the
13(n)=nI2+1 holds for n 2(mod4}.
IAI = + 1, and if H denotes the set of the
[HI = + 1. No
one extremity in A and the other in H is colored
graph whose partite sets are
with the color c, and hence the bipartite
A and H has
with the colors a or b only. By Problem 14.26 there exists a
332
14.28
m~2.
(1)
333
Solutions
n(m
n+ 2)
The inequality
is equivalent to n + 1 > 0, which holds for n;;: 1. Hence q > M(mn - n + 1, m) and
by Tunin's theorem G must contain
For m= 1 the result is obvious.
This formula was
to R(K m
d, where
I is any tree with
n+ 1 vertices, by V. Chvatal
Theory 1(1) (1977), 93].
14.31 It will be shown that r(m) ==
be a partition into two classes, where
A
m 2} = A u B
-m-2}
and
B={m
and
also contains terms
m 2}, then the smallest of its values is
from the set {(m-l)2, ... ,
l+'''+l+(m-l)l
m l~A.
Similarly if Xl' . ' X m - I are terms from B, one can conclude that
Xl+'" +Xm 1;;:
_1)2, or XI+'" +X m - I ~B. It follows that r(m);;:m 2 m-L
It will now be shown that the
inequality also holds. In other words,
every partition of the set {I, ... m2 - m- I} contains a class which is not
m-sum-free.
334
and (m
that this property does not hold. Let 1 EA. It follows that m -1 E B
1)2 EA. Now consider two cases: (a) mEA and (b) m E B.
(a) If mEA one can see that
-2m+l=m+ .'. +m+1, that is,
A is not m-sum-free.
(b) lfmE
then since (m l}+m+ .,. +m=m2-m 1 it follows
that m2 -m 1 A, [n this case one can write
1+
thus A is not
.. , + 1 + m2 - 2m + 1 =
m-o.\,4W.-!
m - 1;
Bibliography
M. Aigner, Combinatorial Theory, Springer-Verlag, Berlin Heidelberg, 1979.
C. Berge, Principes de Combinaroire, Dunod, Paris, 1968.
C. Berge, Graphes et Hypergraphes, Dunod, Paris, 1970.
M. Behzad, G. Chartrand, L Lesniak-Foster, Graphs and Digraphs, Prindle, Weber and Schmidt,
Boston,I979.
B. Bollobas, Graph Theory. An introductory Course, Springer-Verlag, New York Heidelberg, 1979.
n.