Chapter 1

Elements of Combinatorics

[66/76%]
Show
LaTeX
Problem 1.1.1
?
(1)

(nk)=(nn−k)\binom {n}{k} = \binom {n}{n-k}.

(2)

Find the sum (n0)+…+(nn)\binom {n}{0} + \ldots + \binom {n}{n}.

Problem 1.1.2
?
(1)

Pascal's rule. (n+1k+1)=(nk+1)+(nk)\binom {n+1}{k+1} = \binom {n}{k+1} + \binom {n}{k} if 0⩽k⩽n−10 \leqslant k \leqslant n-1.

(2)

\begin{Bmatrix} \end{Bmatrix} n+1 \\ k+1 \end{Bmatrix} = (k+1)\begin{Bmatrix} \end{Bmatrix} n \\ k+1 \end{Bmatrix} + \begin{Bmatrix} \end{Bmatrix} n \\ k \end{Bmatrix}. Here \begin{Bmatrix} \end{Bmatrix} n \\ k \end{Bmatrix} is the number of partitions of an nn-element set into kk parts (i.e. nonempty subsets); partitions are considered unordered, i.e. the partition of the set {1,2,3}\{ 1,2,3\} into the parts {1,2}\{ 1,2\} and {3}\{ 3\} and the partition of the same set into the parts {3}\{ 3\} and {1,2}\{ 1,2\} are considered the same. Cf. Problem 1.4.7(5).

Remark.
?

The numbers \begin{Bmatrix} \end{Bmatrix} n \\ k \end{Bmatrix} are called Stirling numbers of the second kind; for more on them see, for example, [GKP, p.287].

Problem 1.1.3
?
(1)

How many subsets of the set R11\mathscr {R}_{11} contain no two consecutive numbers?

(2)

The same for three consecutive numbers.

Problem 1.1.4
?
(1)

(nk)=n!k!(n−k)!=n(n−1)…(n−k+1)k!\binom {n}{k} = \dfrac {n!}{k!(n-k)!} = \dfrac {n(n-1)\ldots (n-k+1)}{k!}.

(2)

The binomial theorem. (a+b)n=∑j=0n(nj)ajbn−j(a+b)^n = \displaystyle \sum_{j=0}^{n}\binom {n}{j}a^jb^{n-j}.

Problem 1.1.5

Find the sums:

?
(1)

(n0)−(n1)+…+(−1)n(nn)\binom {n}{0} - \binom {n}{1} + \ldots + (-1)^n\binom {n}{n};

(2)

(n0)+12(n1)+13(n2)+…+1n+1(nn)\binom {n}{0} + \dfrac {1}{2}\binom {n}{1} + \dfrac {1}{3}\binom {n}{2} + \ldots + \dfrac {1}{n+1}\binom {n}{n};

(3)

(n1)+2(n2)+3(n3)+…+n(nn)\binom {n}{1} + 2\binom {n}{2} + 3\binom {n}{3} + \ldots + n\binom {n}{n};

(4)

(nk)+(n+1k+1)+…+(n+mk+m)\binom {n}{k} + \binom {n+1}{k+1} + \ldots + \binom {n+m}{k+m};

(5)

(n0)2+…+(nn)2\binom {n}{0}^2 + \ldots + \binom {n}{n}^2;

(6)

(n0)(mk)+(n1)(mk−1)+…+(nk)(m0)\binom {n}{0}\binom {m}{k} + \binom {n}{1}\binom {m}{k-1} + \ldots + \binom {n}{k}\binom {m}{0};

(7)

(2n0)−(2n−11)+(2n−22)−…+(−1)n(nn)\binom {2n}{0} - \binom {2n-1}{1} + \binom {2n-2}{2} - \ldots + (-1)^n\binom {n}{n};

(8)

(2nn)+2(2n−1n)+4(2n−2n)+…+2n(nn)\binom {2n}{n} + 2\binom {2n-1}{n} + 4\binom {2n-2}{n} + \ldots + 2^n\binom {n}{n}.

Problem 1.1.6
?
(1)

Find ∑k⩾0(n2k)\displaystyle \sum_{k \geqslant 0}\binom {n}{2k}.

(2)

Find ∑k⩾0(n4k)\displaystyle \sum_{k \geqslant 0}\binom {n}{4k}.

(3)

Find ∑k⩾0(n3k)\displaystyle \sum_{k \geqslant 0}\binom {n}{3k}.

In the answer, use only integer-valued functions of an integer argument.

Problem 1.2.1

Denote by φ(n)\varphi (n) Euler's totient function, i.e. the number of integers from 1 to nn that are coprime to nn.

?
(1)

Find the number of integers not exceeding 1001 and not divisible by any of the numbers 7, 11, 13.

(2)

Find φ(1),φ(p),φ(p2),φ(pα)\varphi (1), \varphi (p), \varphi (p^2), \varphi (p^\alpha ), where pp is a prime number and α>2\alpha > 2.

(3)

φ(n)=n(1−1p1)…(1−1ps)\varphi (n) = n\left(1 - \dfrac {1}{p_1}\right)\ldots \left(1-\dfrac {1}{p_s}\right), where n=p1α1⋅…⋅psαsn = p_1^{\alpha_1}\cdot \ldots \cdot p_s^{\alpha_s} is the canonical prime factorization of nn.

Problem 1.2.2
?
(1)

On the floor of a room of area 24 m224\, \text{m}^2 there are three carpets (of arbitrary shape), each of area 12 m212\, \text{m}^2. Then the area of the intersection of some two carpets is at least 4 m24\, \text{m}^2.

(2)

There are five patches (of arbitrary shape) on a caftan. The area of each of them is greater than half the area of the caftan. Then the area of the common part of some two patches is greater than one fifth of the area of the caftan.

Problem 1.2.3

Consider subsets A1,…,AnA_1,\ldots ,A_n of a finite set UU. By definition, put ∣⋂j∈∅Aj∣:=U\left|\bigcap_{j\in \varnothing }A_j\right| := U.

?
(1)

Suppose the number α∣S∣:=∣⋂j∈SAj∣\alpha_{|S|} := \left|\bigcap_{j\in S}A_j\right| depends only on the size ∣S∣|S| of the index set S⊂RnS \subset \mathscr {R}_n, and not on the set itself. Then

∣A1∪…∪An∣=∑k=1n(−1)k+1(nk)αk, |A_1\cup \ldots \cup A_n| = \sum _{k=1}^{n}(-1)^{k+1}\binom {n}{k}\alpha _k, ∣U∖(A1∪…∪An)∣=∑k=0n(−1)k(nk)αk. |U\setminus (A_1\cup \ldots \cup A_n)| = \sum _{k=0}^{n}(-1)^k\binom {n}{k}\alpha _k.
(2)

Let Mk:=∑S∈(Rnk)∣⋂j∈SAj∣M_k := \displaystyle \sum_{S\in \binom {\mathscr {R}_n}{k}}\left|\bigcap_{j\in S}A_j\right|. In particular, M0:=∣U∣M_0 := |U|. Then

∣A1∪…∪An∣=M1−M2+M3−…+(−1)n+1Mn,∣U∖(A1∪…∪An)∣=M0−M1+M2−…+(−1)nMn. \begin{align} |A_1\cup \ldots \cup A_n| & = M_1 - M_2 + M_3 - \ldots + (-1)^{n+1}M_n, \\ |U\setminus (A_1\cup \ldots \cup A_n)| & = M_0 - M_1 + M_2 - \ldots + (-1)^n M_n. \end{align}
(3)

Bonferroni inequalities. For any ss, s<n2s < \dfrac {n}{2},

M1−M2+M3−…−M2s⩽∣A1∪…∪An∣⩽M1−M2+M3−…+M2s+1,M0−M1+M2−…+M2s⩾∣U∖(A1∪…∪An)∣⩾⩾M0−M1+M2−…−M2s+1. \begin{align} M_1 - M_2 + M_3 - \ldots - M_{2s} & \leqslant |A_1\cup \ldots \cup A_n| \leqslant M_1 - M_2 + M_3 - \ldots + M_{2s+1}, \\ M_0 - M_1 + M_2 - \ldots + M_{2s} & \geqslant |U\setminus (A_1\cup \ldots \cup A_n)| \geqslant \\ & \geqslant M_0 - M_1 + M_2 - \ldots - M_{2s+1}. \end{align}
Remark.
?

This section offers problems of the following type: given a finite set UU and a collection of properties (subsets) Ak⊂UA_k \subset U, k=1,…,nk=1,\ldots ,n, it is required to find the number of elements that have at least one of the properties AkA_k (i.e., ∣A1∪…∪An∣|A_1\cup \ldots \cup A_n|), or the number of elements that have none of the properties AkA_k (i.e., ∣U∖(A1∪…∪An)∣|U\setminus (A_1\cup \ldots \cup A_n)|).

For this purpose two versions of the inclusion--exclusion formula are used (see Problem 1.2.3(2)). Moreover, if in all intersections of sets of the collection the number of elements depends only on the number of sets being intersected, the formula can be simplified (see Problem 1.2.3(1)).

In Problems 1.2.4(1) and 1.2.5 it is assumed that the answer is written in the form of a sum (similar to the inclusion--exclusion formula).

Problem 1.2.4

There are 10 distinct books on a shelf.

?
(1)

In how many ways can they be rearranged so that no book remains in its place?

(2)

The number of permutations of the books in which exactly 4 books remain in place is greater than 50000.

Problem 1.2.5
?
(1)

In how many ways can 20 tourists be accommodated in 5 distinct cabins so that no cabin is empty?

(2)

How many distinct surjections f:Rk→Rnf: \mathscr {R}_k \to \mathscr {R}_n are there?

Problem 1.2.6

Prove the following formula:

n!⋅x1x2…xn=(x1+x2+…+xn)n−−∑1⩽i1<i2<…<in−1⩽n(xi1+xi2+…+xin−1)n++∑1⩽i1<i2<…<in−2⩽n(xi1+xi2+…+xin−2)n−……+(−1)n−1∑i=1nxin. \begin{align} n!\cdot x_1x_2\ldots x_n & = (x_1+x_2+\ldots +x_n)^n - \\ & \quad - \sum _{1\leqslant i_1 < i_2 < \ldots < i_{n-1}\leqslant n}(x_{i_1}+x_{i_2}+\ldots +x_{i_{n-1}})^n + \\ & \quad + \sum _{1\leqslant i_1 < i_2 < \ldots < i_{n-2}\leqslant n}(x_{i_1}+x_{i_2}+\ldots +x_{i_{n-2}})^n - \ldots \\ & \quad \ldots + (-1)^{n-1}\sum _{i=1}^{n}x_i^n. \end{align}
?
Problem 1.3.1
?
(1)

If the sum of nn real numbers equals SS, then there is a summand not greater than S/nS/n, and also a summand not less than S/nS/n.

(2)

If the sum of nn integers is greater than knkn for some integer kk, then there is a summand not less than k+1k+1.

(3)

If the sum of nn integers is less than knkn for some integer kk, then there is a summand not greater than k−1k-1.

Remark.
?

Statement 1.3.1(1) is used in solving problems; see, for example, Problem 1.3.9. Its ``discrete analogue'', Statement 1.3.1(2), is called the pigeonhole principle and is often formulated as follows: for any distribution of nk+1nk+1 or more objects into nn boxes, some box will contain at least k+1k+1 objects.

Methodologically, it would be more correct [MS, Glossary, entry estimate''] to call Sec.1.3 Estimates by contradiction''. However, we have chosen the title by which most readers will be able to form the clearest idea of the content of this section.

Problem 1.3.2

A bag contains 32 red balls, 29 green balls, 45 blue, 17 yellow, and 30 each of white, black and gray. What is the smallest number of balls one must take so that among them there are certainly balls

?
(1)

of all 9 colors?

(2)

of 7 colors?

Problem 1.3.3
?
(1)

Among the 7-digit numbers ending in 3 fives, there are at least 1200 numbers having the same remainder upon division by 7.

(2)

For each 4-digit number, the sum of the digits of its square was computed. Prove that there are at least 1200 numbers for which the computed sums give the same remainder upon division by 7.

Problem 1.3.4
?
(1)

Among the numbers written using only ones, there is a number divisible by 1997.

(2)

Suppose nn integers are written in a row. Prove that one can select one or several consecutive ones among them whose sum is a multiple of nn.

Problem 1.3.5
?
(1)

Among any nn real numbers there are two whose fractional parts differ by at most 1n−1\dfrac {1}{n-1}.

(2)

Integers are placed in a 10×1010\times 10 table, and any two numbers in cells adjacent by a side differ by at most 5. Prove that among these numbers there are two equal ones.

Problem 1.3.6

Let α\alpha be an arbitrary irrational number.

?
(1)

For any positive integer NN there exist coprime p,q∈Zp,q\in \mathbb {Z} such that 0<q⩽N0 < q \leqslant N and

∣α−pq∣⩽1qN. \left|\alpha - \frac{p}{q}\right| \leqslant \frac{1}{qN}.
(2)

There exist infinitely many pairs of coprime numbers p,q∈Zp,q\in \mathbb {Z} for which

∣α−pq∣⩽1q2. \left|\alpha - \frac{p}{q}\right| \leqslant \frac{1}{q^2}.
Remark.
?

Remark. In the formulation of Statement 1.3.6(2) one can get rid of coprimality, since for each fraction pq\dfrac {p}{q} satisfying the inequality ∣α−pq∣⩽1q2\left|\alpha - \dfrac {p}{q}\right| \leqslant \dfrac {1}{q^2}, there exist only finitely many integers k>0k > 0 such that ∣α−pkqk∣⩽1(qk)2\left|\alpha - \dfrac {pk}{qk}\right| \leqslant \dfrac {1}{(qk)^2}.

Problem 1.3.7

The natural numbers from 1 to 101 are written in some order. Prove that this sequence contains either an increasing or a decreasing subsequence of length 11.

?
Remark.
?

A subsequence is what is obtained from a sequence by deleting some of its terms.

Problem 1.3.8

There are 10 apples, each weighing at most 100 g, and two identical plates. Prove that one can put on the plates

?
(1)

several apples so that the weights on the plates differ by less than 1 g.

(2)

the same number of apples on each plate so that the weights on the plates differ by less than 2 g.

Here at least one apple must lie on the plates, but not all the apples have to lie on them (and in part (1) it is not required that each plate hold at least one apple).

Problem 1.3.9

For any nn vectors v1,…,vnv_1,\ldots ,v_n of length 1 in the plane there exists a tuple ε1,…,εn=±1\varepsilon_1,\ldots ,\varepsilon_n = \pm 1 such that

?
(1)

∣∑k=1nεkvk∣⩽n\left|\sum_{k=1}^{n}\varepsilon_kv_k\right| \leqslant \sqrt{n},

(2)

∣∑k=1nεkvk∣⩾n\left|\sum_{k=1}^{n}\varepsilon_kv_k\right| \geqslant \sqrt{n}.

Problem 1.4.1

Place several knights on a chessboard so that each of them attacks four others.

?
Problem 1.4.2

The 33 letters of the Russian alphabet are encoded by sequences of zeros and ones.

?
(1)

What is the least sequence length for which the encoding can be made unambiguous?

(2)

If an error in at most one digit is possible when a message is received, i.e., if the codes of different letters must differ in at least three digits, then 8 digits are not enough.

(3)

If an error in at most two digits is possible, then 10 digits are not enough.

(4)

Find the least number of digits sufficient for the encoding from part (2).

Problem 1.4.3
?
(1)

For fixed nn, the number (nk)\binom {n}{k} is maximal at k=[n2]k = \left[\dfrac {n}{2}\right].

(2)

Best in their own ways. kk schoolchildren took part in a mathematical olympiad. It turned out that for any two schoolchildren AA and BB there was a problem that AA solved and BB did not solve, and a problem that BB solved but AA did not solve. What is the least possible number of problems under this condition? In other words, find the least possible nn for which there exists a family of kk subsets of an nn-element set such that no subset of the family is (properly) contained in another.

Problem 1.4.4

There is a board with nn lit bulbs. Each switch can be connected to some of the bulbs. When the button of a switch is pressed, the bulbs connected to it change their state: lit bulbs go out and unlit ones light up. What is the least number of switches needed so that any set of bulbs can be lit (the bulbs not in this set must not be lit)?

?
Problem 1.4.5

On the first day of his reign, a king organizes parties among his nn subjects. On the second day, an adviser brings the king a list of surnames of some of the subjects (on the first day this list is unknown). On the third day, the king may choose several parties and send to prison all the subjects who are members of each of them. What is the least number of parties that must be organized on the first day so that on the third day it is certainly possible to send to prison all the subjects from the list brought by the adviser (and only them)?

?
Remark.
?

The following important construction is useful (though not necessary) for solving the problems above (and many others). Draw points corresponding to all subsets of the set Rn\mathscr {R}_n. Place the points corresponding to kk-element sets on the kk-th level. Join by an arrow those of them that are obtained from each other by adding one element. Then points joined by an arrow lie on adjacent levels. The resulting graph is called the nn-dimensional cube. Its vertices correspond to vectors from Z2n\mathbb {Z}_2^n.

The definition of the set Z2n\mathbb {Z}_2^n is given at the beginning of Sec.7.1.

A subset L⊂Z2nL\subset \mathbb {Z}_2^n is called a linear subspace if x+y∈Lx+y\in L for any x,y∈Lx,y\in L (not necessarily distinct). In other words, a linear subspace is a family of subsets of an nn-element set which, together with any two subsets, contains their symmetric difference (i.e., their sum modulo 2).

Problem 1.4.6
?
(1)

Every linear subspace contains the zero vector (0,…,0)(0,\ldots ,0).

(2)

The number of elements in any linear subspace is a power of two.

Denote by ∣nk∣\begin{vmatrix} n \\ k \end{vmatrix} the number of linear subspaces of Z2n\mathbb {Z}_2^n consisting of 2k2^k elements (such linear subspaces of Z2n\mathbb {Z}_2^n are called kk-dimensional).

Problem 1.4.7
?
(1)

Find ∣2k∣\begin{vmatrix} 2 \\ k \end{vmatrix} for k=0,1,2k=0,1,2.

(2)

Find ∣3k∣\begin{vmatrix} 3 \\ k \end{vmatrix} for k=0,1,2,3k=0,1,2,3.

(3)

∣n0∣=∣nn∣=1\begin{vmatrix} n \\ 0 \end{vmatrix} = \begin{vmatrix} n \\ n \end{vmatrix} = 1, ∣n1∣=∣nn−1∣=2n−1\begin{vmatrix} n \\ 1 \end{vmatrix} = \begin{vmatrix} n \\ n-1 \end{vmatrix} = 2^n-1.

(4)

∣nk∣=∣nn−k∣\begin{vmatrix} n \\ k \end{vmatrix} = \begin{vmatrix} n \\ n-k \end{vmatrix}.

(5)

∣n+1k+1∣=∣nk+1∣+2n−k∣nk∣\begin{vmatrix} n+1 \\ k+1 \end{vmatrix} = \begin{vmatrix} n \\ k+1 \end{vmatrix} + 2^{n-k}\begin{vmatrix} n \\ k \end{vmatrix}.

(6)

Find ∣n2∣\begin{vmatrix} n \\ 2 \end{vmatrix}.

(7)

Find ∣nk∣\begin{vmatrix} n \\ k \end{vmatrix}.

Solving this problem requires some notions introduced at the beginning of Sec.7.1.

Problem 1.5.1

The notation ∑d∣n\displaystyle \sum_{d \mid n} denotes the sum over all positive divisors of nn.

Define the Möbius function μ(n)\mu (n) as follows:

μ(n)={1,if n=1;(−1)k,if n is a product of k distinct prime divisors;0,if n is divisible by p2 for some prime number p. \mu (n) = \begin{cases} 1, & \text{if } n=1; \\ (-1)^k, & \text{if }n\text{ is a product of }k\text{ distinct prime divisors;} \\ 0, & \text{if }n\text{ is divisible by }p^2\text{ for some prime number }p\text{.} \end{cases}
?
(1)

∑d∣nμ(d)={1,n=1;0,n≠1.\displaystyle \sum_{d \mid n}\mu (d) = \begin{cases} 1, & n=1; \\ 0, & n \neq 1. \end{cases}

(2)

Find the sum of the values of the Möbius function over exactly those divisors of nn whose canonical factorization contains an even number of prime factors.

(3)

The Möbius inversion formula. Let f:N→Rf: \mathbb {N} \to \mathbb {R} be an arbitrary function, and let g(n)=∑d∣nf(d)g(n) = \displaystyle \sum_{d \mid n}f(d). Then the following formula holds:

f(n)=∑d∣nμ(d)g(nd)=∑d∣nμ(nd)g(d). f(n) = \sum _{d \mid n}\mu (d)g\left(\frac{n}{d}\right) = \sum _{d \mid n}\mu \left(\frac{n}{d}\right)g(d).
Problem 1.5.2

Euler's totient function φ(n)\varphi (n) is defined in Sec.1.2 (Problem 1.2.1).

?
(1)

Find the sum ∑d∣nφ(d)\displaystyle \sum_{d \mid n}\varphi (d).

(2)

∑d∣nμ(d)d=(1−1p1)…(1−1ps)\displaystyle \sum_{d \mid n}\frac{\mu (d)}{d} = \left(1-\frac{1}{p_1}\right)\ldots \left(1-\frac{1}{p_s}\right).

Remark.
?

Note that by applying the Möbius inversion formula (Problem 1.5.1(3)) to the function φ(n)\varphi (n), one can prove the formula for φ(n)\varphi (n) in a slightly different way (see Statement 1.2.1(3)).

Indeed, using Statements 1.5.2(1, 2), we obtain:

φ(n)=∑d∣nμ(d)nd=n⋅∑d∣nμ(d)d=n(1−1p1)…(1−1ps). \varphi (n) = \sum _{d \mid n}\mu (d)\frac{n}{d} = n\cdot \sum _{d \mid n}\frac{\mu (d)}{d} = n\left(1-\frac{1}{p_1}\right)\ldots \left(1-\frac{1}{p_s}\right).
Problem 1.5.3

Denote by Tr(n)T_r(n) the number of ways to color a carousel of nn cars in rr colors, i.e. the number of colorings of the vertices of a regular nn-gon in rr colors, where colorings that coincide after a rotation are considered indistinguishable. Here

  • a coloring need not use all the colors;

  • the colors are distinguishable: for example, the colorings RRRY and YYYR are different.

Let us give a more formal definition. For any coloring of a carousel, one can ``break'' the carousel between any two cars and write down the resulting sequence of colors (a coloring of a train), starting from the break point and going clockwise. For example, the following sequences correspond to the same coloring of a carousel:

RYGB;YGBR;GBRY;BRYG. \text{RYGB;}\quad \text{YGBR;}\quad \text{GBRY;}\quad \text{BRYG.}

On the other hand, from every sequence of colors one can obtain a coloring of a carousel by ``gluing'' its beginning and end in the proper way.

The cyclic shift of a sequence (a1,a2,…,an)(a_1, a_2, \ldots , a_n) is the sequence (a2,a3,…,a1)(a_2, a_3, \ldots , a_1). A coloring of a carousel (or, in more learned terms, a cyclic sequence) is an equivalence class of sequences up to cyclic shift.

Thus, Tr(n)T_r(n) is the number of cyclic sequences of length nn whose elements are the numbers 1,…,r1, \ldots , r.

?
(1)

Find Tr(n)T_r(n) for n=3,4,5,6,9n = 3,4,5,6,9.

(2)

22n−n−1<T2(2n)<22n−n2^{2^n-n-1} < T_2(2^n) < 2^{2^n-n}.

Problem 1.5.4

The period of a sequence is the smallest positive integer dd such that dd cyclic shifts map the sequence to itself. The period of a carousel is defined similarly.

?
(1)

The period of a sequence divides its length.

(2)

If dd divides nn, then the number of sequences of length nn and period dd equals the number of sequences of length dd and period dd.

Problem 1.5.5

Denote by Mr(n)M_r(n) the number of sequences of length nn and period nn whose elements are the numbers 1,…,r1, \ldots , r.

?
(1)

Find ∑d∣nMr(d)\displaystyle \sum_{d \mid n}M_r(d).

(2)

Express Tr(n)T_r(n) in terms of all Mr(d)M_r(d), where d∣nd \mid n.

(3)

Tr(n)=∑l∣n1l∑d∣lμ(d)rl/dT_r(n) = \displaystyle \sum_{l \mid n}\frac{1}{l}\sum_{d \mid l}\mu (d)r^{l/d}.

(4)

Tr(n)=1n∑d∣nφ(d)rn/dT_r(n) = \dfrac {1}{n}\displaystyle \sum_{d \mid n}\varphi (d)r^{n/d}. (A simpler proof of this formula is given in Sec.1.9, Problem 1.9.4(1).)

Problem 1.5.6

Find the number of distinct colorings of a carousel of nn cars in rr colors in which

?
(1)

color ss occurs nsn_s times for each s=1,…,rs = 1, \ldots , r (here a formula with summation over divisors, analogous to 1.5.5(3), is accepted as an answer);

(2)

exactly 4 of the r=5r=5 given colors are present.

Problem 1.6.1
?
(1)

21 nine-element subsets of a 30-element set are given. Then some element of the 30-element set is contained in at least seven of the given subsets.

(2)

A committee met 40 times. Exactly 10 people were present at each meeting, and no two of them were together more than once. Then the committee has at least 60 members.

(3)

In a company, any two people who are acquainted with each other have exactly 5 common acquaintances (other than themselves). Then the number of pairs of mutually acquainted people in the company is divisible by 3.

(4)

Denote by Pn(k)P_n(k) the number of permutations of the set of positive integers from 1 to nn that leave exactly kk numbers in place. Then ∑k=0nk⋅Pn(k)=n!\displaystyle \sum_{k=0}^{n}k\cdot P_n(k) = n!.

Problem 1.6.2

Let F\mathscr {F} be an arbitrary family of kk-element subsets of an nn-element set.

?
(1)

If k⩾lk \geqslant l and every ll-element subset of the nn-element set is contained in some subset from F\mathscr {F}, then ∣F∣⩾(nl)/(kl)|\mathscr {F}| \geqslant \dbinom {n}{l}\Big/\dbinom {k}{l}.

(2)

The number of (k−1)(k-1)-element subsets of the nn-element set that are entirely contained in at least one of the subsets of the family F\mathscr {F} is at least k∣F∣n−k+1\dfrac {k|\mathscr {F}|}{n-k+1}.

Problem 1.6.3

On the planet Mars, 100 countries are united into blocs, each of which contains at most 50 countries. It is known that any two countries belong together to at least one bloc. Find the minimum possible number of blocs. (Cf. Problem 1.6.2(1).)

?
Problem 1.6.4

Exactly 19 vertices of a regular 97-gon are painted white, and the remaining vertices are painted black. Then the number of isosceles monochromatic triangles with vertices at vertices of the 97-gon does not depend on the way of coloring. (A triangle is monochromatic if all its vertices are either white or black.)

?
Problem 1.6.5

Let numbers n⩾kn \geqslant k and a set SS of nn points in the plane be given. If no three points of the set SS lie on one line and for every point P∈SP \in S there exist at least kk distinct points of the set SS equidistant from PP, then k<12+2nk < \dfrac {1}{2} + \sqrt{2n}.

?
Problem 1.6.6

Every set of nn distinct positive integers contains a subset of more than n/3n/3 numbers in which there are no three numbers such that the sum of two of them equals the third.

?
Problem 1.6.7

In a firm, for each of 100 kinds of work there are exactly 8 specialists. Each employee must be given a day off on Saturday or on Sunday. Prove that this can be done so that on both Saturday and Sunday, for each kind of work, a specialist in it is at work.

?
Remark.
?

Clearly, for a given number kk of specialists (in Problem 1.6.7, k=8k=8) and a small number of kinds of work, the days off can always be distributed in this way. But for a large number ll of kinds of work this may no longer be possible. In Problem 1.6.8 we find an asymptotic lower bound for such a number ll.

Here is a more learned formulation of (a generalization of) Problem 1.6.7. There are l=2k−1l = 2^{k-1} subsets of some set, each of which contains exactly kk elements. Then the elements of this set can be colored in two colors so that none of the ll subsets is monochromatic. Cf. Problem 6.2.1(1).

Problem 1.6.8
?
(1)

If for some even nn

(1−2(n/2k)(nk))l2n<1, \left(1-2\frac{\binom {n/2}{k}}{\binom {n}{k}}\right)^l 2^n < 1,

then in an nn-element set one can find ll subsets of kk elements each such that for any coloring of the elements of this set in two colors at least one of these ll subsets is monochromatic.

(2)

There exists c>0c>0 such that for any kk there exist kk-element subsets of some set, at most ck22kck^22^k in number, such that for any coloring of the elements of this set in two colors one of these subsets is monochromatic.

Problem 1.7.1

Fifteen schoolchildren sit on fifteen numbered chairs. Every minute a kind teacher reseats them according to the following scheme:

(123456789101112131415351081114156131497212). \begin{pmatrix} 1 & 2 & 3 & 4 & 5 & 6 & 7 & 8 & 9 & 10 & 11 & 12 & 13 & 14 & 15 \\ 3 & 5 & 10 & 8 & 11 & 14 & 15 & 6 & 13 & 1 & 4 & 9 & 7 & 2 & 12 \end{pmatrix}.

After how many minutes will all the schoolchildren be back in their original seats for the first time?

?
Remark.
?

A permutation of a set is a listing of the elements of this set in an arbitrary order. More rigorously, a permutation of a set is a one-to-one mapping of this set onto itself (i.e., a bijection). It is convenient to depict a permutation ff as a directed graph whose vertices are the elements of the set and whose edges go from the vertex aka_k to the vertex f(ak)f(a_k). The permutation of the set {a1,a2,…,an}\{ a_1, a_2, \ldots , a_n\} that takes aka_k to f(ak)f(a_k) is written in the form

(a1a2…anf(a1)f(a2)…f(an)); \begin{pmatrix} a_1 & a_2 & \ldots & a_n \\ f(a_1) & f(a_2) & \ldots & f(a_n) \end{pmatrix};

usually ak=ka_k = k for all k∈Rnk \in \mathscr {R}_n. The inverse permutation of ff is the permutation f−1f^{-1} written in the form

(f(a1)f(a2)…f(an)a1a2…an). \begin{pmatrix} f(a_1) & f(a_2) & \ldots & f(a_n) \\ a_1 & a_2 & \ldots & a_n \end{pmatrix}.

A cycle (of length nn) is a permutation of the form

(a1a2…an−1ana2a3…ana1). \begin{pmatrix} a_1 & a_2 & \ldots & a_{n-1} & a_n \\ a_2 & a_3 & \ldots & a_n & a_1 \end{pmatrix}.

This permutation is briefly denoted by (a1a2…an)(a_1a_2\ldots a_n).

The composition of permutations ff and gg is the permutation f∘gf\circ g defined by the formula (f∘g)(x):=f(g(x))(f\circ g)(x) := f(g(x)).

Problem 1.7.2

Find the compositions of permutations of the set of digits

?
(1)

(12)∘(13)(12)\circ (13);

(2)

(12)∘(23)(12)\circ (23);

(3)

(23)∘(12)(23)\circ (12);

(4)

(123)∘(132)(123)\circ (132);

(5)

(12)∘(13)∘(12)(12)\circ (13)\circ (12);

(6)

(12345)∘(12)(12345)\circ (12);

(7)

(12345)∘(56789)(12345)\circ (56789).

Give the answer as a composition of disjoint cycles. For example, (123)∘(234)=(12)∘(34)(123)\circ (234) = (12)\circ (34).

From now on, the composition sign is omitted.

Problem 1.7.3

For every permutation ff there exists k>0k>0 for which fk=idf^k = \mathrm{id} (i.e., for which, after the kk-fold application of the permutation ff, every element is mapped to itself).

The order of a permutation ff is the least k>0k>0 for which fk=idf^k = \mathrm{id}.

?
Problem 1.7.4

Do there exist permutations of a 9-element set of orders 7,10,12,117, 10, 12, 11?

?
Problem 1.7.5

What is the order of a composition of disjoint cycles of n1,…,nkn_1, \ldots , n_k elements, respectively?

The permutations of an (n1+…+nk)(n_1+\ldots +n_k)-element set from Problem 1.7.5 are called permutations of type ⟨n1,…,nk⟩\langle n_1, \ldots , n_k \rangle. For example, the permutations (14)(253)(14)(253), (15)(432)(15)(432) are of type ⟨2,3⟩\langle 2,3 \rangle, while the permutation (1)(3)(245)(1)(3)(245) is of a different type, ⟨1,1,3⟩\langle 1,1,3 \rangle.

?
Problem 1.7.6

Find the number of permutations of type

?
(1)

⟨2,3⟩\langle 2,3 \rangle;

(2)

⟨3,3⟩\langle 3,3 \rangle;

(3)

⟨1,2,3,4⟩\langle 1,2,3,4 \rangle.

Problem 1.7.7

Every permutation can be represented as a composition of

?
(1)

disjoint cycles;

(2)

transpositions, i.e., permutations each of which swaps some two elements and leaves the rest in place (in other words, cycles of length 2);

(3)

transpositions (1i)(1i), i=2,3,…,ni=2,3,\ldots ,n.

Problem 1.7.8

Find two permutations whose compositions yield every permutation of an nn-element set.

Permutations aa and bb are called conjugate if a=xbx−1a = xbx^{-1} for some permutation xx.

?
Problem 1.7.9
?
(1)

Permutations aa and bb are conjugate if and only if their types are the same.

(2)

Let aa and xx be arbitrary permutations of an nn-element set. Then

xax−1=(x(1)x(2)…x(n)x(a(1))x(a(2))…x(a(n))). xax^{-1} = \begin{pmatrix} x(1) & x(2) & \ldots & x(n) \\ x(a(1)) & x(a(2)) & \ldots & x(a(n)) \end{pmatrix}.

In other words, the cycle decomposition of the permutation xax−1xax^{-1} is obtained from the cycle decomposition of the permutation aa by replacing each element with its xx-image: if a=∏j=1q(ij1,ij2,…,ijsj)a = \displaystyle \prod_{j=1}^{q}(i_{j1},i_{j2},\ldots ,i_{js_j}), then

xax−1=∏j=1q(x(ij1),x(ij2),…,x(ijsj)). xax^{-1} = \prod _{j=1}^{q}(x(i_{j1}),x(i_{j2}),\ldots ,x(i_{js_j})).
(3)

Find gf−1g−1fgf^{-1}g^{-1}f for f:=(1,2,…,N)f := (1,2,\ldots ,N) and g:=(N,N+1,…,L)g := (N,N+1,\ldots ,L).

Problem 1.8.1
?
(1)

Can every permutation be represented as a composition of several cycles of length 3?

(2)

Can every permutation be represented as a composition of an even number of transpositions?

(3)

The 15 puzzle. A square box of size 4×44\times 4 holds 15 square tiles of size 1×11\times 1 numbered 1,2,…,151,2,\ldots ,15, and one place is left empty. Initially the tiles are arranged as in the figure on the right. Is it possible, by successively sliding tiles into the empty place, to obtain the arrangement of tiles in the figure on the left?

123456789101112131415∗123456789101112131514∗ \begin{array}{|c|c|c|c|} \hline 1 & 2 & 3 & 4 \\ \hline 5 & 6 & 7 & 8 \\ \hline 9 & 10 & 11 & 12 \\ \hline 13 & 14 & 15 & * \\ \end{array} \qquad \qquad \begin{array}{|c|c|c|c|} \hline 1 & 2 & 3 & 4 \\ \hline 5 & 6 & 7 & 8 \\ \hline 9 & 10 & 11 & 12 \\ \hline 13 & 15 & 14 & * \\ \end{array}
Problem 1.8.2

How does the parity of a cycle of length nn depend

?
(1)

on the order in which the elements of the cycle follow one another?

(2)

on nn?

Problem 1.8.3
?
(1)

The composition of an even (odd) permutation and a transposition is odd (even).

(2)

How can one determine the parity of a composition of permutations, knowing the parities of the factors?

Problem 1.8.4

Each of the following conditions is equivalent to the permutation being even:

?
(1)

The permutation can be represented as a composition of an even number of transpositions.

(2)

Every representation of the permutation as a composition of transpositions contains an even number of them.

(3)

The permutation can be represented as a composition of several cycles of length 3.

Problem 1.8.5
?
(1)

Which permutations of an nn-element set are more numerous: even or odd ones?

(2)

What is the minimal number of transpositions into which a permutation of an nn-element set consisting of kk disjoint cycles of length greater than 1 can be decomposed?

Problem 1.8.6

A permutation xx is generated by permutations p1,p2,…,pkp_1, p_2, \ldots , p_k if x=x1x2…xnx = x_1x_2\ldots x_n, where for every 1⩽i⩽n1 \leqslant i \leqslant n there exists 1⩽j⩽k1 \leqslant j \leqslant k such that xi=pjx_i = p_j.

?
(1)

The set of all even permutations of a finite set is generated by any pair of cycles (each of length at least 2) that have exactly one common element and contain all elements of the set.

(2)

If nknk is even, n>1n>1, k>1k>1, then the cycles (1…n)(1\ldots n) and (n…n+k−1)(n \ldots n+k-1) generate all permutations of the set Rn+k−1\mathscr {R}_{n+k-1}.

(3)

If nknk is odd, n>1n>1, k>1k>1, then the cycles (1…n)(1\ldots n) and (n…n+k−1)(n\ldots n+k-1) generate all even permutations of the set Rn+k−1\mathscr {R}_{n+k-1} and only them.

Problem 1.9.1

Colorings that can be carried into each other by a rotation of space (i.e., by an orientation-preserving motion of space) are considered the same (except in part(3) below).

How many

?
(1)

colorings of the unlabeled faces of a cube in red and gray are there?

(2)

distinct (i.e., non-isomorphic) undirected graphs with 4 unlabeled vertices are there?

(3)

colorings of the unlabeled vertices of a regular tetrahedron in rr colors are there? Here colorings that can be carried into each other by a motion of space (not necessarily orientation-preserving) are considered the same.

(4)

colorings of the vertices of the complete graph on 4 unlabeled vertices in rr colors are there? Here colorings that can be carried into each other by a permutation of the vertices (i.e., an automorphism) of this graph are considered the same.

Problem 1.9.2

For a prime pp, find the number of closed oriented connected pp-segment polygonal lines (possibly self-intersecting) passing through all vertices of a given regular pp-gon. Polygonal lines that can be carried into each other by a rotation are indistinguishable.

?
Problem 1.9.3

Find the number of colorings of a carousel of nn unlabeled cars in rr colors (i.e., the number of colorings of the vertices of a regular nn-gon in rr colors, if colorings that can be carried into each other by a rotation are indistinguishable) for

?
(1)

n=5n=5;

(2)

n=4n=4;

(3)

n=6n=6.

Problem 1.9.4

Find the number of:

?
(1)

colorings of a carousel of nn cars in rr colors (see the formalization and another solution in Sec.1.5, Problem 1.5.5);

(2)

rr-colored necklaces of n=2k+1n=2k+1 beads (necklaces are considered the same if they can be carried into each other either by a rotation about the center of the necklace or by an axial symmetry of the necklace);

(3)

colorings of the unlabeled faces of a cube in rr colors;

(4)

colorings of the unlabeled vertices of a cube in rr colors;

(5)

colorings of the unlabeled vertices of the graph K3,3K_{3,3} (Sec.2.1) in rr colors. Colorings are considered the same if they can be carried into each other by an automorphism of this graph.

Hint for parts(2)--(5): if you get stuck, read on (Problems 1.9.5--1.9.7).

Problem 1.9.5

List all rotations of a cube (i.e., rotations of space that map the cube to itself).

?
Problem 1.9.6

Let us call a coloring of the numbered faces of a cube a frozen coloring. (Then there are r6r^6 frozen colorings in total.)

?
(1)

For each rotation ss of the cube, find the number fix(s)\mathrm{fix}(s) of frozen colorings that are mapped to themselves by the rotation ss.

(2)

Find the number PP of pairs (α,s)(\alpha ,s) such that ss is a rotation of the cube and α\alpha is a frozen coloring that is mapped to itself by the rotation ss.

(3)

P=∑st αP = \displaystyle \sum \mathrm{st}\, \alpha, where st α\mathrm{st}\, \alpha is the number of rotations of the cube that map the frozen coloring α\alpha to itself, and the summation is over all frozen colorings α\alpha.

(4)

If there exists a rotation taking a frozen coloring α\alpha to a frozen coloring α′\alpha ', then the number of such rotations equals st α\mathrm{st}\, \alpha.

(5)

For frozen colorings α\alpha and α′\alpha ' that are taken to each other by some rotation, st α=st α′\mathrm{st}\, \alpha = \mathrm{st}\, \alpha '.

(These equal numbers are denoted by st x\mathrm{st}\, x, where xx is the corresponding coloring of the unnumbered faces of the cube.)

(6)

P=∑st x⋅NxP = \displaystyle \sum \mathrm{st}\, x\cdot N_x, where NxN_x is the number of frozen colorings corresponding to the coloring xx, and the summation is over all colorings xx of the unnumbered faces.

(7)

st x⋅Nx\mathrm{st}\, x\cdot N_x equals the number of rotations of the cube for any coloring xx.

How can one state a general result that could be applied instead of repeating the outlined solutions of Problems 1.9.4(1, 3)?

Problem 1.9.7

Let a finite set MM and a family {g1,g2,…,gn}\{ g_1, g_2, \ldots , g_n\} of transformations of this set be given, closed under composition and under taking inverses. Call elements of the set MM equivalent if one can be taken to the other by one of the given transformations. Then the number of equivalence classes equals 1n∑k=1nfix(gk)\dfrac {1}{n}\displaystyle \sum_{k=1}^{n}\mathrm{fix}(g_k), where fix(gk)\mathrm{fix}(g_k) is the number of elements of the set MM that the transformation gkg_k maps to themselves.

?
Problem 1.9.8

Find the number of graphs with nn vertices up to isomorphism. (The answer may be left in the form of a sum.)

?
Problem 1.9.9
?
(1)

Find the number bnb_n of maps {0,1}n→{0,1}\{ 0,1\}^n \to \{ 0,1\} up to permutation of the variables.

(2)

Prove that lim⁡n→∞n! bn22n\displaystyle \lim_{n\to \infty }\dfrac {n!\, b_n}{2^{2^n}} exists, and find this limit.