Professional Documents
Culture Documents
4 Combinatorica
4 Combinatorica
COMBINATORICS
75
Problem nr. 140
An array 8 × 8 consists of 64 unit squares. Inside each square are written the numbers 1 or –1 so
that in any 2 × 2 subarray the sum of the four numbers equals 2 or –2. Prove that there exist two rows
of the array which are equal.
Marius Ghergu, 2004
Problem nr. 141
In a chess tournament each of the players have played with all the others two games, one time with
the white pieces and then with the black pieces. In each game the winners sets one point and both
players receive 0.5 points if the game ends with draw. At the end of the tournament, all the players end
with the same number of points.
a) Prove that there are two players with the same number of draws.
b) Prove that there are two players with the same number of losses when playing the white.
Marius Ghergu, 2004
Problem nr. 142
A regular polygon with 1000 sides has the vertices colored in red, yellow or blue. A move consists
in choosing to adjacent vertices colored differently and coloring them in the third color. Prove that
there is a sequence of moves after which all the vertices of the polygon will have the same color.
Marius Ghergu, 2004
Problem nr. 143
A country has six cities with airports and two rival flight companies. Any two cities are connected by
flights so that on each route between two cities one may travel with exactly one of the two flight com-
panies. Prove that you can visit 4 cities in a cycle flying with the same air company (that is, there exist
four cities A, B, C, D and a company which operates on the routes A ↔ B, B ↔ C, C ↔ D and D ↔ A).
Dan Schwarz, 2005
Problem nr. 144
A phone company starts a new type of customer service. A new client can choose k phone numbers
in this network which are call-free – regardless if is called or if calling. A group of n students decide to
take advantage of this promotion.
• Show that if n ≥ 2k + 2 then there will exist 2 students which will be charged when speaking.
• Show that if n = 2k + 1 then there exists a way of arranging the free calls so that in this group
everybody speaks free to anyone else.
Valentin Vornicu, 2005
Problem nr. 145
The positive integers from 1 to n2 are placed arbitrarily on squares of an n × n chessboard. Two
squares are called adjacent if they have a common side. Show that two opposite corner squares can be
joined by a path of 2n – 1 adjacent squares so that the sum of the numbers places on them is at least
n3 2
+ n − n +1 .
2
Radu Gologan, 2005
76
Problem nr. 146
An 7 × 7 array is divided in 49 unit squares. Find all integers n ∈ N* for which n checkers can be
placed on the unit squares so that each row and each line have an even number of checkers.
(0 is an even number, so there may exist empty rows or columns. A square may be occupied by at
most 1 checker.)
Dinu Şerbănescu, 2006
Problem nr. 147
A rectangular cardboard is divided successively into smaller pieces by a straight cut; at each step,
only one single piece is divided in two. Find the smallest number of cuts required in order to obtain –
among others – 251 polygons with 11 sides.
Marian Andronache, 2007
77
Problem nr. 153
To obtain a square P of side length 2 cm divided into 4 unit squares it is sufficient to draw 3
squares: P and another 2 unit squares with a common vertex, as shown below:
Find the minimum number of squares sufficient to obtain a square of side length n cm divided into
n unit squares (n ≥ 3 is an integer).
2
* * *, 2009
Problem nr. 154
The plane is divided into a net of equilateral triangles of side length 1, with disjoint interiors. A
checker is placed initially inside a triangle. The checker can be moved into another triangle sharing a
common vertex (with the triangle hosting the checker) and having the opposite sides (with respect to
this vertex) parallel. A path consists in a finite sequence of moves. Prove that there is no path between
two triangles sharing a common side.
Vasile Pop, 2009
Problem nr. 155
Show that there exist (at least) a rearrangement a0, a1, a2, …, a63 of the numbers 0, 1, 2, …, 63,
such that ai – aj ≠ aj – ak, for any i < j < k ∈ {0, 1, 2, …, 63}.
* * *, 2009
78
Chapter IV
COMBINATORICS
79
Solution to problem nr. 137
Let us consider the general case, that is to consider the number an of equilateral triangles formed by
division in n segments. We shall find a recurrence relation.
Consider an equilateral triangle with sides partitioned into n + 1 equal segments and draw the n
parallels to each side of the given triangle. We will count all triangles with at least one vertex on BC;
the remaining ones are triangles counted in an.
Consider first the triangles that have two vertices on BC. When choosing two division points on
BC, one counts exactly one triangle, namely that one obtained by drawing parallels from Mi, Ni to AB,
(n + 2)(n + 1)
AC respectively. Hence we add new triangles.
2
Considering triangles with only one vertex on BC, observe that for any point of division, inside the
side BC, we count one triangle of side 1, one triangle of side 2, and so on. Hence we add n + (n – 2) +
+ (n – 4) + … triangles with one side on BC. It follows that we have
( n + 2)(n + 1)
an+1 = an + + n + ( n − 2) + ( n − 4) + …
2
Changing n with n + 1, we get
(n + 3)(n + 2)
an+2 = an+1 + + (n + 1) + (n − 1) + (n − 3) = …
2
Adding up, we obtain
( n + 2)(n + 1) (n + 3)(n + 2) (n + 1)(n + 2) (n + 2)(3n + 5)
an + 2 = an + + + = an + .
2 2 2 5
It follows that
10(3 ⋅ 8 + 5)
a10 = a8 + = a8 + 145 = a6 + 237 = ... = a0 + 315 = 315 .
2
Therefore, the number of triangles is 315.
Solution to problem
problem nr. 142
Let A1, A2, …, A1000 be the vertices of the polygon. We start with two lemmas.
Lemma 1. Three of four consecutive vertices have the same color. Then after a sequence of moves
all vertices will have the color of the fourth vertex.
Proof. Let the colors be 0, 1 and 2. We have two cases:
a) 1110 → 1122 → 1002 → 2202 → 2112 → 0000.
b) 1011 → 1221 → 0000.
Lemma 2. Any 4 consecutive vertices will turn after several moves in the same color.
Proof. Form two pairs of consecutive vertices and change them in the same color – if they do not
already have it. Then follow the sequence 1122 → 1002 → 2202 → 2112 → 0000.
By the second lemma, after several moves the vertices A1, A2, A3, A4 will have the same color, say
81
red. Likewise, A5, A6, A7, A8 will have the same color. Consider now the vertices A4, A5, A6, A7; the first
is red and the other three have the same color. By the first lemma they all will turn red – of course, we
do nothing if they were already red. We move on with this procedure until A1, A2, …, A997 turn red
(note that 997 = 4 + 3 ⋅ 332, so this requires 332 steps). Now consider the vertices A998, A999, A1000, A1;
by the second lemma they all will share the same color. If this is red, we are done. If not, say that they
are blue, and taking the vertices A997, A998, A999, A1000 we obtain – using the first lemma – all vertices to
be red, except for A1, which is blue. Now A1, A2, A3, A4 turn blue, then A5, A6, A7, A8 and so on. This
time, after 333 steps, all the 1000 vertices (1000 = 1 + 3 ⋅ 333) will be colored in blue.
Comment. Substituting colors with digits, notice that all moves: 01 → 22, 02 → 11 and 12 → 00
preserve the sum (mod 3). This means that the final color is unique and, of course, is given by the sum
of the digits assigned to the vertices of the initial configuration.
82
Solution to problem nr. 145
145
n 2 (n 2 + 1)
The sum of all integers is 1 + 2 + … + n2 = , so there is a row r having the sum of the
2
n 2 (n 2 + 1)
numbers assigned to its squares at least equal to . Consider the 2n – 2 numbers written on
2
the first and last column – except for the two numbers which belong to the row r – and observe that
their sum is at least 1 + 2 + … + (2n – 2) = (n – 1)(2n – 1).
Now we can select two “complementary parts” of these columns – in order to complete the row r to
(n − 1)(2n − 1)
a path – so that the sum of the numbers placed on these n – 1 squares is at least . Since
2
n(n 2 + 1) (n − 1)(2n − 1) n3 1 n3
+ = + n 2 − n + , to conclude we only have to notice that + 1 =
2 2 2 2 2
n3 1 n3 n3 1
= + – if n odd – and that + n2
– n +1 is the smallest integer greater than + n2 − n + –
2 2 2 2 2
when n is even.
83
Then n = k + 250 and 4n + 4 ≥ v ≥ 11 ⋅ 251 + 3k, where v is the total number of vertices of all
polygons at the end. Hence 4n + 4 ≥ 11 ⋅ 251 + 3(n – 250) = 2011 + 3n, so n ≥ 2007, as claimed.
84
the first case, while the second case requires that the last four numbers are 31, 31, 31, 31 or 31, 31, 29,
2. But among the 8 primes obtained after the first step we have at most two 29’s or one 31, not enough
to produce three 31’s or two 31’s and one 29.
Assume that p = 23. Again two cases are possible: 23 = 29 ♥ 17 or 23 = 23 ♥ 23. The first case is
impossible as shown above, while the second case is allowed if the last four primes are 23, 23, 23, 23
or 29, 17, 23, 23. If all primes are 23, the previous step has eight numbers with the average of 23,
which is a contradiction with
8 ⋅ 23 < 1 + 2 + 3 + … + 16 = 8 ⋅ 17.
The second case lead similarly to contradiction, since 29 requires two 29’s and the pair of 23’s are
given by four numbers with the sum 4 ⋅ 23:
2 ⋅ 29 + 4 ⋅ 23 = 150 < 1 + 2 + … + 16 = 136.
The solution is now complete.
85
Solution to problem nr. 15 152
Label the rows from 1 to 8 and the columns from 1 to 8. The unit square which lies on the row i
and the column j will be referred as (i, j).
On the skew-diagonal {(i, i) | i = 1, 2, …, 8} there are exactly 2 squares in which checkers were
placed; wlog, assume that the squares are (1, 1), (2, 2). Looking at the 6 × 6 sub-array Q determined by
the rows 3-8 and the columns 3-8, we see that any “skew-diagonal” of Q, togheter with (1, 1), (2, 2), is
a skew-diagonal of the initial array. In view of the given conditions, no checkers are placed in the
squares of Q. Now take any skew-diagonal of Q with the squares (2, 1), (1, 2); this is a skew-diagonal
of the initial array, and the two checkers are placed inside (2, 1), (1, 2).
Up to the point, we know that checkers are placed in the squares on the rows 1-2 or on the columns
1-2. Suppose by way of contradiction that there exist a square located on the first two rows – say
(i, m), i = 1, 2, m ≥ 3 – and a square on the first two columns – say (s, j), j = 1, 2, s ≥ 3 – that hold
checkers. Then squares (i, m), (s, j), (3 – i, 3 – j) belongs to a skew-diagonal, contradiction.
86
Solution to problem nr. 15 155
Suppose A = a0, a1, …, a2 n −1 is a rearrangement of the numbers 0, 1, 2, …, 2n – 1 which satisfies
the required condition. Then (2A), (2A + 1) is a rearrangement of the numbers 0, 1, 2, …, 2n+1 – 1,
where (2A) = 2a0, 2a1, …, 2 a2 n −1 and (2A + 1) = 2a0 + 1, 2a1 +1, …, 2 a2 n −1 + 1. It is obvious that the
rearrangement (2A), (2A + 1) satisfies the claim. Indeed, no triples bi, bj, bk, with bi – bj = bj – bk,
b bj b b − 1 b j − 1 bk − 1
i < j < k may occur in (2A) nor in (2A + 1), since either i , , k or i , , belongs to A,
2 2 2 2 2 2
contrary to the fact that A is “free” of triples in arithmetic progressions.
Starting with the arrangement 2, 0, 3, 1 for the numbers 0, 1, 2, 3 and applying the above
procedure, in 5 steps one has the required rearrangement.
87