1. Trang chủ
  2. » Thể loại khác

combination mathematical problems

26 75 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 26
Dung lượng 219,04 KB

Các công cụ chuyển đổi và chỉnh sửa cho tài liệu này

Nội dung

Bài toán tổ hợp và rời rạc thường xuất hiện trong các kì thi học sinh giỏi và đây thường là bài khó dùng để phân loại học sinh. Các bài toán này thường không có một thuật giải cụ thể. Lời giải có được chủ yếu dựa vào năng lực tư duy sáng tạo của học sinh. Nhằm giúp học sinh có được cơ sở để giải các bài toán về cực trị trong tổ hợp và rời rạc, tài liệu cung cấp một số bài toán và một số định hướng cách giải quyết các bài toán trong tổ hợp và rời rạc, đã được dung trong các kì thi chọn học sinh giỏi quốc tế IMO

Trang 1

1 An n-string is a string of digits formed by writing the numbers 1, 2, , n in some order (in base 10).

For example, one possible 10-string is

35728910461.

What is the smallest n greater than 1 such that there exists a palindromic n-string?

2 We have a polyhedron such that an ant can walk from one vertex to another, traveling only alongedges, and traveling every edge exactly once What is the smallest possible total number of vertices,edges, and faces of this polyhedron?

3 The member of a distinguished committee were choosing a president, and each member gave onevote to one of the 27 candidate For each candidate, the exact percentage of votes the candidate gotwas smaller by at least 1 than the number of votes for that candidate What is the smallest possiblenumber of member of the committee?

4 A class room of a 5 × 5 array of desks, to be filled by anywhere from 0 to 25 students, inclusive No

student will sit at a desk unless either all other desks in its row or all others in its column are filled(or both) Considering only the set of desks that are occupied (and which student sits at each desk),how many possible arrangements are there?

5 There are 51 senators in a senate The senate needs to be divided into n committees so that each

senator is on one committee Each senator hates exactly three other senators (If senator A hates

senator B, then senator B does not necessarily hate senator A.) Find the smallest n such that it is

always possible to arrange the committees so that no senator hates another senator on his or hercommittee

Solution: Assume that there are 7 senators A1, , A7 such that each A i hates A i+1 , A i+2, and

A i+3 (where indices are taken modulo 7) In this situation, for any different A i , A j , either A i hates

A j or vice versa The senators A1, , A7 must be placed on a different committee Thus, n ≥ 7.

In order to show that n ≤ 7, we will prove the following stronger statement by induction on k ≥ 1: for k senators, each of whom hates at most 3 others, it is possible to arrange the senators into 7

committees so that no senator hates another senator on his or her committee

For the base case k = 1, note that we can have 7 committees, 6 of which are empty and 1 of which

contains the sole senator

Now assume the claim is true for all k ≤ m−1 Suppose we are given m senators, each of whom hates

at most 3 others If each of those m senators is hated by more than 3 others, then the total number

of acts of hating must be greater than 3m, but this is not possible since each senator hates at most

3 others Therefore, there must be at least one senator A who is hated by at most 3 others By the induction hypothesis, we can split the m − 1 other senators into 7 committees satisfying the property

that no senator hates another senator on the same committee By the Pigeonhole Principle, one

of those committees contains neither a person whom A hates nor a person who hates A We can therefore place A in that committee The induction is complete.

6 Given that 22004 is a 604-digit number with leafing digit 1 Determine the number of elements in the

set {20, 21, 22, , 22003} with leading digit 4.

Trang 2

7 Let S be a set with 2002 elements, and let N be an integer with 0 ≤ N ≤ 22002 Prove that it is

possible to color every subset of S either blue or red so that the following conditions hold:

(a) the union of any two red subsets is red;

(b) the union of any two blue subsets is blue;

(c) there are exactly N red subsets.

First Solution: We prove that this can be done for any n-element set, where n is an positive integer, S n = {1, 2, , n} and for any positive integer N with 0 ≤ N ≤ 2 n

We induct on n The base case n = 1 is trivial Assume that we can color the subsets of S n =

{1, 2, , n} in the desired manner, for any integer N n with 0 ≤ N n ≤ 2 n We show that there is

a desired coloring for S n+1 = {1, 2, , n, n + 1} and any integer N n+1 with 0 ≤ N n+1 ≤ 2 n+1 Weconsider the following cases

(i) 0 ≤ N n+1 ≤ 2 n Applying the induction hypothesis to S n and N n = N n+1,we get a coloring of

all subsets of S n satisfying conditions (a), (b), (c) All uncolored subsets of S n+1 contain the

element n + 1; we color all of them blue It is not hard to see that this coloring of all the subsets

of S n+1 satisfies conditions (a), (b), (c)

(ii) 2n + 1 ≤ N n+1 ≤ 2 n+1 By case (i), we know that there exists a coloring of the subsets of S n+1

satisfying (a) and (b) and having 2n+1 − N n+1 red subsets Then, we switch the color of eachsubset: if it is blue now, we recolor it red; if it is red now, we recolor it blue It is not hard to

see that this coloring of all the subsets of S n+1 satisfies conditions (a), (b), (c)

Thus our induction is complete

Second Solution: If N = 0, we color every subset blue; if N = 22002, we color every subset

red Now suppose neither of these holds We may assume that S = {0, 1, 2, , 2001} Write N in

binary representation:

N = 2 a1 + 2a2+ · · · + 2 a k ,

where the a i are all distinct; then each a i is an element of S Color each a i red, and color all the

other elements of S blue Now declare each nonempty subset of S to be the color of its largest element, and color the empty subset blue If T, U are any two nonempty subsets of S, then the largest element of T ∪ U equals the largest element of T or the largest element of U , and if T is empty, then T ∪ U = U It readily follows that (a) and (b) are satisfied To verify (c), notice that, for each i, there are 2 a i subsets of S whose largest element is a i (obtained by taking a i in combination

with any of the elements 0, 1, , a i − 1) If we sum over all i, each red subset is counted exactly

once, and we get 2a1 + 2a2 + · · · + 2 a k = N red subsets.

8 An n-term sequence (x1, x2, , x n ) in which each term is either 0 or 1 is called a binary sequence of

length n Let a n be the number of binary sequences of length n containing no three consecutive terms equal to 0, 1, 0 in that order Let b n be the number of binary sequences of length n that contain no four consecutive terms equal to 0, 0, 1, 1 or 1, 1, 0, 0 in that order Prove that b n+1 = 2a n for all

positive integers n.

Solution: We refer to the binary sequences counted by (a n ) and (b n) as “type A” and “type

B”, respectively For each binary sequence (x1, x2, , x n) there is a corresponding binary sequence

Trang 3

(y0, y1, , y n ) obtained by setting y0 = 0 and

order if and only if the corresponding sequence (y0, y1, , y n) has four consecutive terms equal to 0,

0, 1, 1 or 1, 1, 0, 0 in that order, so the first is of type A if and only if the second is of type B The

set of type B sequences of length n + 1 in which the first term is 0 is exactly half the total number

of such sequences, as can be seen by means of the mapping in which 0’s and 1’s are interchanged

9 Some checkers placed on an n × n checkerboard satisfy the following conditions:

(a) every square that does not contain a checker shares a side with one that does;

(b) given any pair of squares that contain checkers, there is a sequence of squares containing checkers,starting and ending with the given squares, such that every two consecutive squares of thesequence share a side

Prove that at least (n2− 2)/3 checkers have been placed on the board.

Solution: It suffices to show that if m checkers are placed so as to satisfy condition (b), then the number of squares they either cover or are adjacent to is at most 3m + 2 But this is easily seen

by induction: it is obvious for m = 1, and if m checkers are so placed, some checker can be removed

so that the remaining checkers still satisfy (b); they cover at most 3m − 1 squares, and the new

checker allows us to count at most 3 new squares (since the square it occupies was already counted,and one of its neighbors is occupied)

Note The exact number of checkers required is known for m × n checkerboards with m small, but

only partial results are known in the general case Contact the authors for more information

10 Find the smallest positive integer n such that if n unit squares of a 1000 × 1000 unit-square board

are colored, then there will exist three colored unit squares whose centers form a right triangle withlegs parallel to the edges of the board

First Solution: We show that n = 1999 Indeed, n ≥ 1999 because we can color 1998 squares

without producing a right triangle: color every square in the first row and the first column, exceptfor the one square at their intersection

Now assume that some squares have been colored so that no desired right triangle is formed Call a

row or column heavy if it contains more than one colored square, and light otherwise Our assumption

then states that no heavy row and heavy column intersect in a colored square

If there are no heavy rows, then each row contains at most one colored square, so there are at most

1000 colored squares We reach the same conclusion, if there are no heavy columns If there is aheavy row and a heavy column, then by the initial observation, each colored square in the heavy row

Trang 4

or column must lie in a light column or row, and no two can lie in the same light column or row.Thus the number of colored squares is at most the number of light rows and columns, which is at

most 2 × (1000 − 1) = 1998.

We conclude that in fact 1999 colored squares is the minimum needed to force the existence of a righttriangle of the type described

Second Solution: Assume that 1999 squares are colored and the required right triangle does

not exist By the Pigeonhole Principle, there is a row with a1≥ 2 colored squares Interchange rows

to make this the first row Interchange columns so that the first a1 squares in the first row are all

colored Then the first a1 columns have no colored squares other than the ones in the first row, forotherwise we would have a right triangle

Observe that a1 cannot equal 1000, for then we would have no place for the remaining 999 colored

squares Also, a1 cannot equal 999, for then the remaining 1000 colored squares must all be in the

last column and we would have a right triangle, a contradiction Hence 1000 − a1 ≥ 2.

Throw away for now the first a1columns and the first row and consider the remaining (1000−a1)×999 rectangular grid G2 It contains 1999 − a1 ≥ 999 + 2 = 1001 colored squares Therefore, there is a

row in G2 with at least a2 ≥ 2 colored squares Interchange rows and then columns so that the first

a2 squares of the first row are colored Then the first a2 columns have no colored squares other thanthe ones in the first row

Observe that a1+ a2cannot equal to 1000, for then we would have no place to put the remaining 999

colored squares Also, a1+ a2 cannot equal 999, for then the remaining 1000 colored squares must all

be in the last column and we would have a right triangle, a contradiction Hence 1000−(a1+a2) ≥ 2 The above process can be continued, but 1000 − (a1 + a2 + · · · ) ≥ 2 contradicts the fact that

a1, a2, · · · ≥ 2 Thus, with 1999 colored squares there must be a right triangle As in the first

solution, we can find a way to arrange 1998 colored squares without obtaining a right triangle of thetype described

Third Solution: We prove a more general statement:

Lemma Let n k,` be the smallest positive integer such that if n k,` squares of a k ×` (k, ` ≥

2) board are colored, then there necessarily exist a right triangle of the type described

Define t = t k,` = k + ` to be the total dimension of the board Then n k,` = t − 1.

Proof: As in the first solution, we can color t − 2 squares without producing a right triangle: fill

every square in the first row and the first column, except for the one square at their intersection

Hence n k,` ≥ t − 1.

Now we prove by induction on t that n k,` = t − 1.

For the base case t = 4, we have k = ` = 2 and it is easy to see that n 2,2 = 3.

Assume that the claim is true for t = m, m ≥ 4 For t = m + 1, we claim that n k,` = m when

k + ` = m + 1, k, ` ≥ 2 For the sake of contradiction, suppose that there is a k × ` board with m

colored squares and no right triangles Without loss of generality, suppose that k ≥ ` Then k > 3 There is a row with at most 1 colored square because otherwise we will have at least 2k ≥ t > m colored squares Cross out that row to obtain a (k − 1) × ` board with t = m, and k − 1, ` ≥ 2, and

at least ≥ m − 1 colored squares By the induction hypothesis, there is right triangle, contradicting our assumption Therefore our assumption is wrong and we conclude that n k,` = m = t − 1 Our

induction is complete, and this finishes our proof

Trang 5

11 Every unit square of a 2004 × 2004 grid is to be filled with one of the letters A, B, C, D, so that every

2 × 2 subsquare contains exactly one of each letter In how many ways can this be done?

12 Let n 6= 0 For every sequence of integers

a = a0, a1, a2, , a n

satisfying 0 ≤ a i ≤ i, for i = 0, , n, define another sequence

t(a) = t(a)0, t(a)1, t(a)2, , t(a) n

by setting t(a) i to be the number of terms in the sequence a that precede the term a i and are

different from a i Show that, starting from any sequence a as above, fewer than n applications of the transformation t lead to a sequence b such that t(b) = b.

First Solution: Note first that the transformed sequence t(a) also satisfies the inequalities

0 ≤ t(a) i ≤ i, for i = 0, , n Call any integer sequence that satisfies these inequalities an dex bounded sequence.

in-We prove now that that a i ≤ t(a) i , for i = 0, , n Indeed, this is clear if a i = 0 Otherwise, let

x = a i > 0 and y = t(a) i None of the first x consecutive terms a0, a1, , a x−1 is greater than

x − 1, so they are all different from x and precede x (see the diagram below) Thus y ≥ x, that is,

a i ≤ t(a) i , for i = 0, , n.

t(a) t(a)0 t(a)1 t(a) x−1 y

This already shows that the sequences stabilize after finitely many applications of the transformation

t, because the value of the index i term in index bounded sequences cannot exceed i Next we prove

that if a i = t(a) i , for some i = 0, , n, then no further applications of t will ever change the index i

term We consider two cases

• In this case, we assume that a i = t(a) i = 0 This means that no term on the left of a i is

different from 0, that is, they are all 0 Therefore the first i terms in t(a) will also be 0 and this

repeats (see the diagram below)

• In this case, we assume that a i = t(a) i = x > 0 The first x terms are all different from

x Because t(a) i = x, the terms a x , a x+1 , , a i−1 must then all be equal to x Consequently,

t(a) j = x for j = x, , i − 1 and further applications of t cannot change the index i term (see

the diagram below)

Trang 6

For 0 ≤ i ≤ n, the index i entry satisfies the following properties: (i) it takes integer values; (ii) it is bounded above by i; (iii) its value does not decrease under transformation t; and (iv) once it stabilizes under transformation t, it never changes again This shows that no more than n applications of t lead to a sequence that is stable under the transformation t.

Finally, we need to show that no more than n−1 applications of t is needed to obtain a fixed sequence from an initial n + 1-term index bounded sequence a = (a0, a1, , a n ) We induct on n.

For n = 1, the two possible index bounded sequences (a0, a1) = (0, 0) and (a0, a1) = (0, 1) are already fixed by t so we need zero applications of t.

Assume that any index bounded sequence (a0, a1, , a n) reach a fixed sequence after no more than

n−1 applications of t Consider an index bounded sequence a = (a0, a1, , a n+1) It suffices to show

that a will be stabilized in no more than n applications of t We approach indirectly by assuming on the contrary that n + 1 applications of transformations are needed This can happen only if a n+1= 0

and each application of t increased the index n + 1 term by exactly 1 Under transformation t, the resulting value of index i term will not be effected by index j term for i < j Hence by the induction hypothesis, the subsequence a 0 = (a0, a1, , a n ) will be stabilized in no more than n − 1 applications of t Because index n term is stabilized at value x ≤ n after no more than min{x, n − 1} applications of t and index n + 1 term obtains value x after exactly x applications of t under our current assumptions We conclude that the index n + 1 term would become equal to the index n term after no more than n − 1 applications of t However, once two consecutive terms in a sequence are equal they stay equal and stabilize together Because the index n term needs no more than n − 1 transformations to be stabilized, a can be stabilized in no more than n − 1 applications of t, which contradicts our assumption of n + 1 applications needed Thus our assumption was wrong and we need at most n applications of transformation t to stabilize an (n + 1)-term index bounded sequence.

This completes our inductive proof

Note: There are two notable variations proving the last step

• First variation The key case to rule out is t i (a) n = i for i = 0, , n If a n = 0 and t(a) n= 1,

then a has only one nonzero term If it is a1, then t(a) = 0, 1, 1, , 1 and t(t(a)) = t(a), so

t(t(a)) n 6= 2; if it is a i for i > 1, then t(a) = 0, , 0, i, 1, , 1 and t(t(a)) = 0, , 0, i, i +

1, , i + 1 and t(t(a)) n 6= 2 That’s a contradiction either way (Actually we didn’t need to

check the first case separately except for n = 2; if a n = a n−1= 0, they stay together and so getfixed at the same step.)

• Second variation Let b n−1 be the terminal value of a n−1 Then a n−1gets there at least as soon

as a n does (since a n only rises one each time, whereas a n−1 rises by at least one until reaching

b n−1 and then stops, and furthermore a n−1 ≥ 0 = a n to begin with), and when a n does reach

that point, it is equal to a n−1 (Kiran Kedlaya, one of the graders of this problem, likes to call

this a “tortoise and hare” argument–the hare a n−1 gets a head start but gets lazy and stops, so

the tortoise a n will catch him eventually.)

Second Solution: We prove that for n ≥ 2, the claim holds without the initial condition 0 ≤ a i ≤ i.

(Of course this does not prove anything stronger, but it’s convenient.) We do this by induction on

n, the case n = 2 being easy to check by hand as in the first solution.

Note that if c = (c0, , c n ) is a sequence in the image of t, and d is the sequence (c1, , c n), thenthe following two statements are true:

Trang 7

(a) If e is the sequence obtained from d by subtracting 1 from each nonzero term, then t(d) = t(e) (If there are no zero terms in d, then subtracting 1 clearly has no effect If there is a zero term

in d, it must occur at the beginning, and then every nonzero term is at least 2.)

(b) One can compute t(c) by applying t to the sequence c1, , c n, adding 1 to each nonzero term,and putting a zero in front

The recipe of (b) works for computing t i (c) for any i, by (a) and induction on i.

We now apply the induction hypothesis to t(a)1, , t(a) n to see that it stabilizes after n − 2 more applications of t; by the recipe above, that means a stabilizes after n − 1 applications of t.

Note: A variation of the above approach is the following Instead of pulling off one zero, pull

off all initial zeroes of a0, , a n (Or rather, pull off all terms equal to the initial term, whatever it

is.) Say there are k + 1 of them (clearly k ≤ n); after min{k, 2} applications of t, there will be k + 1 initial zeroes and all remaining terms are at least k So now max{1, n − k − 2} applications of t will straighten out the end, for a total of min{k, 2} + max{1, n − k − 2} A little case analysis shows that this is good enough: if k + 1 ≤ n − 1, then this sum is at most n − 1 except maybe if 3 > n − 1, i.e.,

n ≤ 3, which can be checked by hand If k + 1 > n − 1 and we assume n ≥ 4, then k ≥ n − 1 ≥ 3, so

the sum is 2 + max{1, n − k − 2} ≤ max{3, n − k} ≤ n − 1.

13 For any nonempty set S of real numbers, let σ(S) denote the sum of the elements of S Given a set A of n positive integers, consider the collection of all distinct sums σ(S) as S ranges over the nonempty subsets of A Prove that this collection of sums can be partitioned into n classes so that

in each class, the ratio of the largest sum to the smallest sum does not exceed 2

Solution: Let A = {a1, a2, , a n } where a1 < a2 < · · · < a n For i = 1, 2, , n let s i =

a1+ a2+ · · · + a i and take s0= 0 All the sums in question are less than or equal to s n , and if σ is

one of them, we have

for an appropriate i Divide the sums into n classes by letting C i denote the class of sums satisfying

(∗) We claim that these classes have the desired property To establish this, it suffices to show that (∗) implies

1

Suppose (∗) holds The inequality a1+ a2+ · · · + a i−1 = s i−1 < σ shows that the sum σ contains at

least one addend a k with k ≥ i Then since then a k ≥ a i, we have

s i − σ < s i − s i−1 = a i ≤ a k ≤ σ,

which together with σ ≤ s i implies (∗∗).

Note: The result does not hold if 2 is replaced by any smaller constant c To see this, choose

n such that c < 2 − 2 −(n−1) and consider the set {1, , 2 n−1 } If this set is divided into n

subsets, two of 1, , 2 n−1 , 1 + · · · + 2 n−1 must lie in the same subset, and their ratio is at least

(1 + · · · + 2 n−1 )/(2 n−1 ) = 2 − 2 −(n−1) > c.

14 Let a set of 2004 points in the plane be given, no three of which are collinear Let S denote the set

of all lines determined by pairs of points from the set Show that it is possible to color the points of

Trang 8

S with at most two colors, such that any points P and Q in the set, the number of lines in S which

separates P and Q is odd if and only if P and Q have the same color.

A line ` separates two points P and Q if P and Q lie on opposite sides of ` with neither point on `.

15 I have an n × n sheet of stamps, from which I’ve been asked to tear out blocks of three adjacent

stamps in a single row or column (I can only tear along the perforations separating adjacent stamps,

and each block must come out of a sheet in one piece.) Let b(n) be the smallest number of blocks I can tear out and make it impossible to tear out any more blocks Prove that there are constants c and d such that

Solution: The upper bound requires an example of a set of 15n2 + dn blocks whose removal

makes it impossible to remove any further blocks We note first that we can tile the plane, using tilesthat contain one block for every five stamps, so that no more blocks can be chosen Two such tilings

are shown below with one tile outlined in heavy lines Assume that there are x unit squares in each

tile Then there are 1

5x blocks in each tile Choose a constant m such that the basic tile fits inside

an (m + 1) × (m + 1) square Given an n × n section of the tiling, take all tiles lying entirely within

that section and add as many additional tiles, which lie partially in and partially out of that section,

as possible Let k denote the total number of chosen tiles Hence there are 1

5kx blocks contained in

the k chosen tiles The n × n section is covered by all the chosen tiles, and these are all contained in

a concentric (n + 2m) × (n + 2m) square Then kx ≤ (n + 2m)2, and so there are at most

blocks total We can classify all the above blocks into three categories (i) blocks lying completely in

the n × n section; (ii) blocks lying partially in the section; (iii) blocks lying completely outside of the section Suppose there are x1, x2, x3 blocks in categories (i), (ii), (iii), respectively We do not have

to worry about blocks in category (iii), and we take all the blocks in category (i) We need to dealwith blocks in category (ii) with more care By the conditions of the problem, we can not take out

those blocks from the n × n section All the blocks in category (ii) are on the border of the section Hence there are at most 4n blocks in category (ii), and so these blocks contain at most 8n stamps in the n × n square We might need additional blocks to deal with these stamps Each of the additional blocks must contain one of these stamps Thus there are at most 8n additional blocks Thus there

Each block can be classified as “horizontal” or “vertical” in the obvious fashion Given an arrangement

of blocks, let H and V be the numbers of horizontal and vertical blocks respectively Without loss

of generality, we may assume V ≤ H.

We associate each unused stamp which is not in one of the two leftmost columns to the first blockone encounters proceeding leftward from the stamp Note that one never has to proceed leftwardmore than two stamps; otherwise, there would be another block to remove

Trang 9

h-block s s

Each block is associated to at most two stamps in each row that it occupies In particular, eachhorizontal block is associated to at most two stamps Moreover, a vertical block cannot have anunused stamp on its immediate right in each of the three rows it covers; otherwise, those threestamps would form a block Thus a vertical block is associated to at most four stamps

bloc

sss

Thus, if we count stamps block by block (plus the extra stamps in the two leftmost columns), thetotal number is

≤ 2n + 6H + 6V,

giving the desired bound

Note: This problem was inspired by a paper of Manjul Bhargava (Mistilings of the plane with

rectangles, to appear), in which the improved lower bound

16 A computer screen shows a 98×98 chessboard, colored in the usual way One can select with a mouse

any rectangle with sides on the lines of the chessboard and click the mouse button: as a result, thecolors in the selected rectangle switch (black becomes white, white becomes black) Find, with proof,the minimum number of mouse clicks needed to make the chessboard all one color

Solution: More generally, we show that the minimum number of selections required for an n × n chessboard is n − 1 if n is odd, and n if n is even Consider the 4(n − 1) squares along the perimeter

of the chessboard, and at each step, let us count the number of pairs of adjacent perimeter squares

which differ in color This total begins at 4(n − 1), ends up at 0, and can decrease by no more than

4 each turn (If the rectangle touches two adjacent edges of the board, then only two pairs can beaffected Otherwise, the rectangle either touches no edges, one edge, or two opposite edges, in which

case 0, 2 or 4 pairs change, respectively) Hence at least n − 1 selections are always necessary.

If n is odd, then indeed n − 1 selections suffice, by choosing every second, fourth, sixth, etc row and column However, if n is even, then n − 1 selections cannot suffice: at some point a corner square

Trang 10

must be included in a rectangle (since the corners do not all begin having the same color), and such

a rectangle can only decrease the above count by 2 Hence n selections are needed, and again by selecting every other row and column, we see that n selections also suffice.

17 The Y2K Game is played on a 1 × 2000 grid as follows Two players in turn write either an S or an

O in an empty square The first player who produces three consecutive boxes that spell SOS wins

If all boxes are filled without producing SOS then the game is a draw Prove that the second playerhas a winning strategy

Solution: Call a partially filled board stable if there is no SOS and no single move can duce an SOS; otherwise call it unstable For a stable board call an empty square bad if either an S

pro-or an O played in that square produces an unstable board Thus a player will lose if the only emptysquares available to him are bad, but otherwise he can at least be guaranteed another turn with acorrect play

Claim: A square is bad if and only if it is in a block of 4 consecutive squares of the form S – – S.Proof: If a square is bad, then an O played there must give an unstable board Thus the bad squaremust have an S on one side and an empty square on the other side An S played there must also give

an unstable board, so there must be another S on the other side of the empty square 2

From the claim it follows that there are always an even number of bad squares Thus the secondplayer has the following winning strategy:

(a) If the board is unstable at any time, play the winning move, otherwise continue as below.(b) On the first move, play an S at least four squares away from either end and from the first player’sfirst move (The board is long enough that this is possible.)

(c) On the second move, play an S three squares away from the second player’s first move, so thatthe squares in between are empty (Regardless of the first player’s second move, this must bepossible on at least one side.) This produces two bad squares; whoever plays in one of themfirst will lose Thus the game will not be a draw

(d) On any subsequent move, play in a square which is not bad Such a square will always existbecause if the board is stable, there will be an odd number of empty squares and an even number

of bad squares

Since there exist bad squares after the second player’s second move, the game cannot end in a draw,and since the second player can always leave the board stable, the first player cannot win Thereforeeventually the second player will win

18 A game of solitaire is played with R red cards, W white cards, and B blue cards A player plays all

the cards one at a time With each play he accumulates a penalty If he plays a blue card, then he

is charged a penalty which is the number of white cards still in his hand If he plays a white card,then he is charged a penalty which is twice the number of red cards still in his hand If he plays ared card, then he is charged a penalty which is three times the number of blue cards still in his hand

Find, as a function of R, W, and B, the minimal total penalty a player can amass and all the ways

in which this minimum can be achieved

Solution: Let the integers at any time be a1, a2, , a n , and let ` be the index of the integer chosen as large in the previous step Define the score of the position to be S = Pi6=` a i On any

step we will choose a new large integer a ` , (which currently contributes to S but will not after the

Trang 11

move,) and we will replace a ` (which currently does not contribute to S) by something smaller than

a ` , (which will contribute to new S) Thus S is decreased by at least one on every move Since S starts with a finite values and S ≥ 0, play must stop in a finite amount of moves.

19 A game of solitaire is played with R red cards, W white cards, and B blue cards A player plays all

the cards one at a time With each play he accumulates a penalty If he plays a blue card, then he

is charged a penalty which is the number of white cards still in his hand If he plays a white card,then he is charged a penalty which is twice the number of red cards still in his hand If he plays ared card, then he is charged a penalty which is three times the number of blue cards still in his hand

Find, as a function of R, W, and B, the minimal total penalty a player can amass and all the ways

in which this minimum can be achieved

Solution: The minimum achievable penalty is

Given an order of play, let a “run” of some color denote a set of cards of that color played consecutively

in a row Then the optimality of one of the three above orders follows immediately from the followinglemma, along with the analogous observations for blue and white cards

Lemma 1 For any given order of play, we may combine any two runs of red cards withoutincreasing the penalty

Proof: Suppose that there are w white cards and b blue cards between the two red runs Moving a red card from the first run to the second costs us 2w because we now have one more red card after the w white cards However, we gain 3b because this red card is now after the b blues If the net gain 3b − 2w is non-negative, then we can move all the red cards in the first run to the second run without increasing the penalty If the net gain 3b − 2w is negative, then we can move all the red cards in the

second run to the first run without increasing the penalty, as desired

Thus there must be an optimal game where cards are played in one of the three given orders Todetermine whether there are other optimal orders, first observe that wr can never appear during

an optimal game; otherwise, playing these two cards in the order rw instead decreases the penalty.Similarly, bw and rb can never appear Now we prove the following lemma

Lemma 2 Any optimal order of play must have less than 5 runs

Proof: Suppose that some optimal order of play had at least five runs Assume the first card played

is red; the proof is similar in the other cases Say we first play r1, w1, b1, r2, w2 cards of each color,

where each r i , w i , b i is positive and where we cycle through red, white, and blue runs From the proof

of our first lemma we must have both 3b1− 2w1 = 0 and b1− 2r2 = 0 Hence the game starting with

playing r1, w1 + w2, b1, r2, 0 cards is optimal as well, so we must also have 3b1− 2(w1+ w2) = 0, acontradiction

Trang 12

Thus, any optimal game has at most 4 runs Now from lemma 1 and our initial observations, anyorder of play of the form

rr · · · rww · · · wbb · · · brr · · · r,

is optimal if and only if 2W = 3B and 2W R = 3RB ≤ W B; and similar conditions hold for 4-run

games that start with w or b

20 Each of eight boxes contains six balls Each ball has been colored with one of n colors, such that

no two balls in the same box are the same color, and no two colors occur together in more than one

box Determine, with justification, the smallest integer n for which this is possible.

First Solution: The smallest such n is 23.

We first show that n = 22 cannot be achieved.

Assume that some color, say red, occurs four times Then the first box containing red contains 6colors, the second contains red and 5 colors not mentioned so far, and likewise for the third andfourth boxes A fifth box can contain at most one color used in each of these four, so must contain

2 colors not mentioned so far, and a sixth box must contain 1 color not mentioned so far, for a total

of 6+5+5+5+2+1=24, a contradiction

Next, assume that no color occurs four times; this forces at least four colors to occur three times Inparticular, there are two colors that occur at least three times and which both occur in a single box,say red and blue Now the box containing red and blue contains 6 colors, the other boxes containingred each contain 5 colors not mentioned so far, and the other boxes containing blue each contain 3colors not mentioned so far (each may contain one color used in each of the boxes containing red butnot blue) A sixth box must contain one color not mentioned so far, for a total of 6+5+5+3+3+1=23,again a contradiction

We now give a construction for n = 23 We still cannot have a color occur four times, so at least

two colors must occur three times Call these red and green Put one red in each of three boxes,and fill these with 15 other colors Put one green in each of three boxes, and fill each of these boxeswith one color from each of the three boxes containing red and two new colors We now have used

1 + 15 + 1 + 6 = 23 colors, and each box contains two colors that have only been used once so far.Split those colors between the last two boxes The resulting arrangement is:

Note that the last 23 can be replaced by a 22

Now we present a few more methods of proving n ≥ 23.

Second Solution: As in the first solution, if n = 22 is possible, it must be possible with no

color appearing four or more times By the Inclusion-Exclusion Principle, the number of colors (call

Trang 13

it C) equals the number of balls (48), minus the number of pairs of balls of the same color (call it

P ), plus the number of triples of balls of the same color (call it T ); that is,

C = 48 − P + T.

For every pair of boxes, at most one color occurs in both boxes, so P ≤ ¡82¢= 28 Also, if n ≤ 22, there must be at least 48 − 2(22) = 4 colors that occur three times Then C ≥ 48 − 28 + 4 = 24, a

contradiction

Third Solution: Assume n = 22 is possible By the Pigeonhole Principle, some color

oc-curs three times; call it color 1 Then there are three boxes containing 1 and fifteen other colors, saycolors 2 through 16 The other five boxes each contain at most three colors in common with the firstthree boxes, so they contain at least three colors from 17 through 22

Since 5 × 3 > 2 × 6, one color from 17 to 22 occurs at least three times in the last five boxes; say it’s

color 17 Then two balls in each of those three boxes have colors among those labeled 18 through 22.But then one of these colors must appear together with 17, a contradiction

Fourth Solution: Label the colors 1, 2, , n, and let a1, a2, , a n be the number of balls

of color 1, 2, , n, respectively Then

Ngày đăng: 20/10/2017, 10:22