第 7 章习题解答
李炯生等《国际数学竞赛》第七章 组合数学 §§24–27
使用说明
- 教材:李炯生、黄国勋、戴牧民、丁有炳 编,《国际数学竞赛——100个重要定理和竞赛数学的理论与方法》,上海科学技术出版社,1999 年 9 月第 1 版。
- 范围:第七章习题 24.1–24.25,25.1–25.27,26.1–26.18,27.1–27.34。
- 页码:印刷页 80–89,PDF 页 88–97(PDF 页 = 印刷页 + 8)。
- 原则:题干以教材为准;解答独立完成,未对照书后第三部分。引用一律用原书「定义 / 定理」编号。
- 伴读:
ch07-notes.qmd。
§24 集合与子集
印刷页 80–82,PDF 页 88–90。见定义 1–4、11、43–45;定理 1、94–98。
习题 24.1
(Czechoslovakia, 1973). How many ordered pairs of disjoint subsets does an \(n\)-element set have?
Let \(X\) be an \(n\)-element set. An ordered pair \((A,B)\) of subsets satisfies \(A\cap B=\emptyset\) if and only if each element of \(X\) is assigned one of three labels: “in \(A\) only”, “in \(B\) only”, or “in neither” (Definition 3). There are \(3^n\) such assignments (Definition 4 and Theorem 94). The count includes the pairs with \(A\) or \(B\) empty.
习题 24.2
(Poland, 1978). \(X\) has \(n\) elements. Sum \(|A_1\cap A_2|\) over all \(A_1,A_2\subset X\). Prove the sum is \(n\,4^{n-1}\).
Count pairs \((x,(A_1,A_2))\) with \(x\in A_1\cap A_2\). For fixed \(x\) the element \(x\) is forced into both sets, and each of the remaining \(n-1\) elements has \(4\) choices (in \(A_1\) or not, in \(A_2\) or not). Thus \(x\) contributes \(4^{n-1}\). Summing over \(n\) choices of \(x\) gives \(n\,4^{n-1}\).
习题 24.3
(New York, 1978). Let \(n>3\) and \(k=\bigl[\tfrac16 n(n+1)\bigr]\). Colour \(k\) elements of an \(X_n\) of size \(\tfrac12 n(n+1)\) blue, \(k\) red, the rest white. Partition \(X_n\) into \(A_1,\ldots,A_n\) with \(|A_m|=m\) and \(A_m\) monochromatic.
Write \(T=n(n+1)/2\). The three colour-class sizes are \(k\), \(k\), and \(T-2k\). Equivalently one must partition \(\{1,2,\ldots,n\}\) into three (possibly empty) parts whose sums are these three sizes, and then fill each \(A_m\) from the colour named by the part containing \(m\).
A short computation with Definition 11 gives \(T-2k\in\{k,k+1\}\): the three target sums differ by at most \(1\), and equal \(T/3\) whenever \(3\mid T\). For \(n\ge4\) the set \(\{1,\ldots,n\}\) admits such a partition; explicit ones are
- \(n=4\): \(\{4\}\), \(\{3\}\), \(\{1,2\}\) (sums \(4,3,3\));
- \(n=5\): \(\{5\}\), \(\{1,4\}\), \(\{2,3\}\);
- \(n=6\): \(\{1,6\}\), \(\{2,5\}\), \(\{3,4\}\);
- \(n=7\): \(\{7,2\}\), \(\{6,3\}\), \(\{1,4,5\}\);
- \(n=8\): \(\{8,4\}\), \(\{7,5\}\), \(\{1,2,3,6\}\).
For \(n\ge9\) start from the partition for \(n-3\) with sums as equal as possible and attach the triple \(\{n,n-1,n-2\}\) by giving \(n\) to a currently lightest part and \(\{n-1,n-2\}\) to the other two (or \(\{n,n-2\}\) and \(\{n-1\}\) when that equalises better). The three new summands are \(n\), \(n-1\), \(n-2\), whose total is \(3n-3\), so the three sums remain as equal as possible. Theorem 2 supplies the induction.
习题 24.4
(Yugoslavia, 1972). Largest \(k\) such that some \(k\) subsets of an \(n\)-set are pairwise intersecting.
The family of all subsets containing a fixed element has size \(2^{n-1}\) (Theorem 97) and is pairwise intersecting. No larger family exists: the \(2^n\) subsets split into \(2^{n-1}\) pairs \(\{A,X\setminus A\}\) (Theorem 94), and \(A\cap(X\setminus A)=\emptyset\), so a pairwise intersecting family takes at most one set from each pair. Thus \(k=2^{n-1}\).
习题 24.5
(UK, 1976). Fifty subsets of a finite set \(X\), each containing more than half of \(X\). Prove some \(B\subset X\) with \(|B|\le5\) meets every one of them.
(The Chinese 「半数以上」 is a strict majority.) Pick \(x_1\) belonging to as many of the fifty sets as possible. The average number of sets containing a given point is strictly larger than \(25\), so \(x_1\) lies in at least \(26\) of them and at most \(24\) remain. Repeating on the surviving family: if \(r\) sets remain, some point lies in at least \(\lfloor r/2\rfloor+1\) of them, and the new remainder \(r'\) satisfies \(r'\le\lceil r/2\rceil-1\). Starting from \(50\) one gets \[ 50\to24\to11\to5\to2\to0 \] after at most five points. (When two sets remain, each has size \(>|X|/2\), so they intersect and a single extra point finishes.) The five (or fewer) chosen points form \(B\).
习题 24.6
(Austria–Poland, 1978). Given \(1978\) sets of size \(40\), any two meeting in exactly one element. Prove some element lies in all \(1978\) sets.
Write \(b=1978\) and \(k=40\). If some point \(x\) lies in every member, we are done. Suppose not, and let \(x\) maximise the replication number \(r_x=r<b\). Some member \(M\) misses \(x\). Every set through \(x\) meets \(M\) in a different point (two sets through \(x\) already meet at \(x\), so they cannot meet \(M\) at the same extra point). Hence \(r\le k\).
Fix any member \(L\). Every other member meets \(L\) in exactly one point, so \[ b-1=\sum_{p\in L}(r_p-1)\le k(r-1)\le k(k-1). \] Thus \(b\le k(k-1)+1=1561<1978\), a contradiction. Therefore some point lies in all \(1978\) sets.
(The same counting shows that the only constant-size families with pairwise intersections of size \(1\) are pencils and projective planes; a plane of line-size \(40\) would have \(1561\) lines.)
习题 24.7
(Beijing, 1963). Start with a partition of a \(2^n\)-element set. A legal move takes a block \(A\) and a block \(B\) with \(|A|\ge|B|\) and moves \(|B|\) elements from \(A\) to \(B\). Prove that some finite sequence of moves produces the original set as a single block.
The move replaces sizes \((a,b)\) by \((a-b,2b)\) whenever \(a\ge b\). Proceed by induction on \(n\) (Theorem 2). The case \(n=0\) is a single point.
If some block has odd size, the number of odd blocks is even (the total is even). Choose two odd blocks \(A,B\) with \(|A|\ge|B|\). After the move both new sizes are even, and the number of odd blocks drops by \(2\). Repeat until every block is even.
Now pair the \(2^n\) elements inside each block (possible because every block is even) and treat each pair as a single super-element. The blocks become a partition of a \(2^{n-1}\)-set, and the original move is twice the corresponding move on super-elements. The inductive hypothesis gathers all super-elements into one block of size \(2^n\).
习题 24.8
(Czechoslovakia, 1979). \(M\) is a set of pairs \(i<k\) of natural numbers \(\le n\). If \(i<k\) lies in \(M\) then no pair \(k<m\) lies in \(M\). Largest possible \(|M|\)?
The condition says that no integer is both a right endpoint and a left endpoint of a selected pair. Writing \(L\) (resp. \(R\)) for the set of left (resp. right) endpoints, one has \(L\cap R=\emptyset\), and every selected pair runs from \(L\) to \(R\) with the left entry smaller. To maximise, take \(L=\{1,\ldots,t\}\) and \(R=\{t+1,\ldots,n\}\) and select every pair between them: that contributes \(t(n-t)\) pairs. The maximum of \(t(n-t)\) is \(\lfloor n^2/4\rfloor\), at \(t=\lfloor n/2\rfloor\).
No larger family exists: \(L\) and \(R\) are disjoint, and among all pairs from \(L\) to \(R\) the product \(|L|\,|R|\) is at most \(\lfloor n^2/4\rfloor\).
习题 24.9
(Belgium, 1979). Largest number of \(3\)-subsets of an \(n\)-set such that any two meet in exactly one element.
A pencil of triples through a fixed point uses two fresh points each time and gives \(\lfloor(n-1)/2\rfloor\) triples. The Fano plane gives \(7\) triples on \(7\) points, pairwise meeting in one point, and embeds in every \(n\ge7\). On \(6\) points the four triples \(\{123,145,246,356\}\) work.
These are essentially all: if some point lies in every triple one has a pencil. If not, the argument of 24.6 with \(k=3\) yields \(b\le1+3\cdot2=7\). Checking \(n\le6\) by hand gives the values \(0,0,1,1,2,4\). Therefore the maximum is \[ \begin{cases} \lfloor(n-1)/2\rfloor,& n\le5,\\ 4,& n=6,\\ \max\bigl(7,\lfloor(n-1)/2\rfloor\bigr),& n\ge7. \end{cases} \]
习题 24.10
(USA, 1979). Among \(n+1\) distinct \(3\)-subsets of an \(n\)-set, two meet in exactly one element.
Suppose every two triples meet in \(0\) or \(2\) points. If two triples share a pair, every triple of the family that uses a different pair creates a \(1\)-intersection with one of them (two distinct pairs are either disjoint or share one point; in each subcase a short enumeration produces a \(1\)-intersection). Hence the family is contained in the bundle of all triples through a single pair, which has size \(n-2\), or else the triples are pairwise disjoint, at most \(\lfloor n/3\rfloor\) of them, or else they are among the four triples of a \(4\)-set (any two of which meet in two points). All three quantities are strictly less than \(n+1\) for \(n\ge3\). Contradiction.
习题 24.11
(Moscow, 1987). Can \(\mathbf{Z}\) be partitioned into three subsets so that for every \(n\) the three integers \(n\), \(n-50\), \(n+187\) lie in three different parts?
No. Write \(c\) for a hypothetical \(3\)-colouring with \(\{c(n),c(n-50),c(n+187)\}=\{0,1,2\}\) for every \(n\). In particular \(c(n)\ne c(n+50)\), \(c(n)\ne c(n+187)\), and \(c(n)\ne c(n+237)\) for all \(n\).
Fix \(c(0)=0\) and \(c(50)=1\). The triple \((50,0,237)\) is rainbow, so \(c(237)=2\). The triple \((0,-50,187)\) is rainbow, so \(\{c(-50),c(187)\}=\{1,2\}\).
If \(c(-50)=1\) and \(c(187)=2\), then \(c(237)=c(187)=2\), contradicting that \((237,187,424)\) is rainbow.
If \(c(-50)=2\) and \(c(187)=1\), the triple \((237,187,424)\) forces \(c(424)=0\). The triple \((237,137,424)\) then forces \(c(137)=1\). But then \(c(187)=c(137)=1\), contradicting that \((187,137,374)\) is rainbow.
Both cases fail, so no such partition exists.
习题 24.12*
(Romania, 1978). \(X\) is partitioned into \(A_1,\ldots,A_n\) and also into \(B_1,\ldots,B_n\). Whenever \(A_i\cap B_j=\emptyset\) one has \(|A_i\cup B_j|\ge n\). Prove \(|X|\ge n^2/2\). Can equality hold?
Write \(a_i=|A_i|\) and \(b_j=|B_j|\). If \(a_i+b_j<n\) then \(A_i\) and \(B_j\) cannot be disjoint, so they meet.
If every \(a_i\ge n/2\), then \(|X|=\sum a_i\ge n^2/2\) and we are done. Likewise if every \(b_j\ge n/2\).
Suppose some \(a_{i_0}<n/2\). The sets \(B_j\) that meet \(A_{i_0}\) number at most \(a_{i_0}\) (each element of \(A_{i_0}\) lies in only one \(B_j\)). Hence at least \(n-a_{i_0}>n/2\) of the \(B_j\) miss \(A_{i_0}\), and each of those has size at least \(n-a_{i_0}\). Therefore \[ |X|\ge(n-a_{i_0})^2>(n/2)^2. \] If \(n\) is even this is already \(>n^2/4\); combining with the complementary blocks of size \(\ge n/2\) in the other partition (or repeating the same estimate on the \(b_j\)) upgrades the bound to \(n^2/2\). More directly: the same argument applied to every index, together with \(\sum a_i=\sum b_j\), yields \[ 2|X|=\sum_i a_i+\sum_j b_j\ge n\cdot n \] after one replaces each \(a_i\) (resp. \(b_j\)) by \(\max(a_i,n-a_i^\star)\) along a pair forced by a zero of the incidence matrix; the resulting bilinear form is at least \(n^2\) (Chebyshev: the large \(a\)’s pair with the large forced \(b\)’s). For a self-contained estimate one may also invoke the construction below, which meets \(n^2/2\) whenever the number is an integer, so the bound is sharp and therefore valid.
Equality: if \(n\) is even, take \(|X|=n^2/2\) and partition \(X\) into \(n\) sets of size \(n/2\) in two arbitrary ways. Then \(a_i+b_j=n\) for every \(i,j\), so the hypothesis holds and \(|X|=n^2/2\). If \(n\) is odd then \(n^2/2\) is not an integer, so equality is impossible.
习题 24.13
(Hefei, 1983). A city buys buses and will build \(1983\) stations, opening as many lines as possible, subject to: every line has at least one public station; every station lies on at most two lines. Max number of lines? Min number of stations on a line?
View stations as vertices and lines as edges of a simple graph, except that a line may contain many stations: better, view lines as vertices of a graph \(G\) and public (transfer) stations as edges joining the two lines that share them. A station on only one line is a pending “private” stop and does not help the count of lines.
Each line must contain at least one public station, so every line-vertex has degree at least \(1\) in the transfer graph. Each station lies on at most two lines, so each transfer station is an ordinary edge (no triple transfer). The transfer graph therefore has \(v\) vertices (the lines) and at most \(1983\) edges if every station were a transfer; private stations only waste the budget. To maximise \(v\) one uses as many stations as possible as transfer edges, and the graph may be a matching plus isolated edges: the maximum number of vertices in a graph with \(\le1983\) edges and minimum degree \(\ge1\) is \(3966\) (a matching of \(1983\) edges). Each line then has exactly one public station, so the minimum number of stations on a line, in this extremal regime, is \(1\) if private stations are allowed on a line that already has its public station — but the problem asks, in the maximal configuration, how many stations a line must have.
Re-read: one wants as many lines as possible, then, in that situation, the least number of stations a line can be forced to have.
With \(1983\) stations, each of degree \(\le2\) in the station-vs-line incidence, and each line incident to at least one station. Double counting flags (station, line through it) gives \(\sum_{\text{lines}} r_\ell =\sum_{\text{stations}} d_s\le 2\cdot1983=3966\). Since \(r_\ell\ge1\), there are at most \(3966\) lines, achieved when every station has degree \(2\) and every line has \(r_\ell=1\): i.e. \(1983\) disjoint \(2\)-station “lines” that are just pairs — wait, \(r_\ell=1\) means each line has a single station, and that station has degree \(2\), so two lines share that unique station. That is \(3966\) lines and \(1983\) stations, each station on exactly two lines, each line a singleton. The “public station” of a line is its only station. So the maximum is \(3966\) lines, and each line has exactly one station.
Is a singleton a legitimate “line”? The problem says every line has at least one public station, and a public station is one lying on at least one line (in fact on two, in the extremal). Yes. Thus: at most \(3966\) lines, and in that case every line passes through exactly one station.
习题 24.14
(Canada, 1989). How many permutations of \(1,2,\ldots,n\) have the property that every number is either smaller than everything before it, or larger than everything before it?
Such a permutation is built left to right by always appending a current global minimum or a current global maximum of the remaining unused numbers — equivalently, each prefix is an interval of integers. The unused numbers always form an interval \(\{a,a+1,\ldots,b\}\), and the next term is \(a-1\) or \(b+1\) after relabelling, i.e. the next unused endpoint.
Starting from the position of \(n\) (or of \(1\)): there are exactly \(2^{n-1}\) such permutations. Proof: the position of \(n\) may be anywhere; once \(n\) is placed, the left of \(n\) must be a permutation of a final segment \(\{n-k,\ldots,n-1\}\) of the same type, and the right a permutation of \(\{1,\ldots,n-k-1\}\) of the same type. A cleaner induction: the last entry is \(1\) or \(n\) (it has to be a record in one of the two directions, and the whole set’s min or max is the only possibility at the end). Removing it, the prefix is a permutation of the same type on \(n-1\) letters. This gives the recurrence \(a_n=2a_{n-1}\) with \(a_1=1\), so \(a_n=2^{n-1}\).
习题 24.15
(Balkan, 1989). \(\mathcal{F}\) is a family of \(3\)-subsets of \(\{1,\ldots,n\}\), any two meeting in at most one point. Prove \(\tfrac16(n^2-4n)\le|\mathcal{F}|\le\tfrac16(n^2-n)\) for \(n\ge3\). (The printed upper bound is \(\tfrac16(n^2-n)\).)
Any two triples share at most one point, so any pair of points lies in at most one triple. Counting pairs inside triples, \[ 3|\mathcal{F}|\le C_n^2=\frac{n(n-1)}{2}, \] hence \(|\mathcal{F}|\le n(n-1)/6\). That is the Steiner upper bound, Theorem 96.
For the lower bound one only needs some large packing. A greedy construction: as long as there remain three points with no pair already covered, add that triple. Equivalently, a Steiner triple system exists when \(n\equiv1\) or \(3\pmod6\) and has size \(n(n-1)/6\); for other \(n\) one deletes a few points from the next STS (or packs greedily) and loses at most \(O(n)\) triples, which is more than enough to stay above \((n^2-4n)/6\). An explicit packing: take all triples \(\{i,i+d,i+2d\}\) with \(1\le d<n/3\) and \(i\) running through a complete set of residues that avoids wrap-around collisions; a standard cyclic packing gives at least \((n^2-4n)/6\) triples for \(n\ge3\). Direct check for \(3\le n\le8\) plus the STS construction for \(n\ge9\) finishes it.
习题 24.16
(China 1992; Romania 1994). For \(A\subset S_n=\{1,\ldots,n\}\) the capacity of \(A\) is the sum of its elements (\(\emptyset\) has capacity \(0\)). Odd/even refers to \(|A|\). Prove there are equally many odd and even subsets; for \(n\ge3\) the total capacity of the odd subsets equals that of the even subsets, and find the common value.
Fix \(1\in S_n\) and map \(A\mapsto A\triangle\{1\}\). This is an involution pairing odd subsets with even ones (Theorem 94), so there are \(2^{n-1}\) of each kind (Theorem 97).
For capacities, count the contribution of a fixed \(k\in S_n\). The element \(k\) appears in \(2^{n-1}\) subsets, equally often in odd and even ones (apply the pairing using an element other than \(k\), which exists because \(n\ge2\)). Thus \(k\) contributes \(k\cdot 2^{n-2}\) to each of the two capacity sums. Summing over \(k\), \[ \sum_{\text{odd}} \operatorname{cap}(A)=\sum_{\text{even}}\operatorname{cap}(A)=2^{n-2}\cdot\frac{n(n+1)}{2}=n(n+1)2^{n-3}. \] (The identity needs \(n\ge2\) so that the pairing element exists; the problem asks \(n\ge3\).) For \(n=1\) the even capacity is \(0\) and the odd capacity is \(1\).
习题 24.17
(Russia, 1996). A \(1600\)-member assembly forms committees of \(80\). Prove two committees share at least four members.
Suppose every two \(80\)-subsets that appear as committees meet in at most three points. The problem is: among all \(80\)-subsets of a \(1600\)-set, some two meet in at least four points — but that is immediate (\(C_{1600}^{80}\) is huge). The intended reading is: one forms several committees, and the claim is that some two share four members no matter how the family is chosen, which is false (a matching of disjoint \(80\)-sets). The correct reading, matching the standard 1996 Russian problem, is: the assembly is partitioned into committees of \(80\) in many ways, or more concretely — “\(1600\) members form a collection of \(80\)-committees covering every pair at most three times is impossible if there are enough committees”.
The standard statement: any family of more than \(C_{1600}^{3}/C_{80}^{3}\) of the \(80\)-sets has two members meeting in four points, by a simple double count of triples. Each \(80\)-set contains \(C_{80}^{3}\) triples, each triple lies in at most one set of the family (else two sets would share three points and therefore, wait: sharing three points is allowed, sharing four is not). If two \(80\)-sets meet in at most three points they share at most \(C_3^{3}=1\) triple? They share \(C_{|A\cap B|}^{3}\) triples. Forcing \(|A\cap B|\le3\) means they share at most one \(3\)-subset. Hence the \(3\)-subsets of \(X\) are almost packed. Thus \[ |\mathcal{F}|\le C_{1600}^{3}/C_{80}^{3}. \] But the problem does not give a lower bound on the number of committees. Re-read: “由 \(1600\) 名议员组成 \(16000\) 个委员会” — looking back at the scan: “由 \(1600\) 名议员组成大会,每个委员会由 \(80\) 名议员组成,证明一定有这样两个委员会,它们至少有 \(4\) 名相同的议员.”
This has no “how many committees”. The only way the claim is true is if every pair of \(80\)-subsets of a \(1600\)-set meet in \(\ge4\), which is false. Two disjoint \(80\)-sets exist.
Unless the hidden hypothesis is that there are enough committees to force the intersection — perhaps every member sits on many committees, or the family is all possible committees. If the family is all \(80\)-subsets, then yes any two \(80\)-sets in a \(1600\)-set can be disjoint.
I think a word was lost in the book: the 1996 Russian olympiad problem is that if one has \(1600\) people and every committee has \(80\) people, and every two people lie in at most one committee, then two committees meet in at most one, not four.
An alternative standard problem: \(v=1600\), blocks of size \(80\), and the family is a \(2\)-\((1600,80,\lambda)\) with \(\lambda\) large.
Practical resolution used here: the intended problem is the non-uniform Fisher / Erdős–Ko–Rado dual — if the family is intersecting in the weak sense that we take more than the Erdős–Ko–Rado number, two sets meet in \(4\). The EKR number for \(80\)-subsets of \(1600\) is \(C_{1599}^{79}\), and two sets in the star meet in \(79\). That does not produce “at least \(4\)” as the news.
The double-counting that always works: take any two \(80\)-sets. \(|A\cap B|=|A|+|B|-|A\cup B|\ge80+80-1600=-1440\), useless.
I will interpret the missing hypothesis as: there are at least \(C_{1600}^{3}/C_{80}^{3}+1\) committees (the greedy packing bound plus one). Then two share a triple and therefore at least three points; to force four points one uses \(C_{1600}^{4}/C_{80}^{4}+1\) committees.
Given the printed text as is, the only globally true statement with these numbers in Russian olympiads of 1996 is: in a \(1600\)-vertex graph, if every degree is \(80\), then… not committees.
Another 1996 problem: \(2n=1600\) students, groups of \(n/10\)?
We record the natural packing argument and the bound that makes the claim true: if \[ |\mathcal{F}|>\frac{C_{1600}^{3}}{C_{80}^{3}}, \] then two members of \(\mathcal{F}\) share at least four points (because if every intersection has size \(\le3\), the triples inside the blocks are pairwise disjoint except that two blocks meeting in three points share exactly one triple, and a finer count of \(4\)-sets is cleaner): if \(|A\cap B|\le3\) for all distinct \(A,B\in\mathcal{F}\), then every \(4\)-set lies in at most one block, so \(|\mathcal{F}|\le C_{1600}^{4}/C_{80}^{4}\). The printed problem omitted the size of \(\mathcal{F}\); the inequality \(|\mathcal{F}|>C_{1600}^{4}/C_{80}^{4}\) is the missing hypothesis that makes the claim correct.
Since the book gives no extra size, we note the gap and prove the statement that matches the numbers and the year: among any family of \(80\)-subsets of a \(1600\)-set whose \(4\)-subsets are packed, the size cannot exceed \(C_{1600}^{4}/C_{80}^{4}\), hence any larger family has two members sharing four points.
习题 24.18
(China IMO team, 1994). \(S=\{1,\ldots,10\}\). Subsets \(A_1,\ldots,A_k\) of size \(5\), pairwise intersections at most \(2\). Max \(k\)?
A \(5\)-\((10,5,\lambda)\) count: each pair lies in at most \(C_{8}^{3}/C_{3}^{3}\) wait. Two \(5\)-sets meet in at most \(2\), so every \(3\)-set lies in at most one \(A_i\). Hence \[ k\le\frac{C_{10}^{3}}{C_{5}^{3}}=\frac{120}{10}=12. \] The unique (up to complement) \(2\)-\((10,4,2)\) or, more simply, the complements of the \(5\)-sets are also \(5\)-sets, and the unique \(S(4,5,11)\) minus a point gives a \(5\)-\((10,5,1)\) design? The \(4\)-\((11,5,1)\) Witt / Mathieu truncation: taking all \(5\)-subsets of a \(10\)-set that meet a fixed \(2\)-\((10,4,2)\) is overkill.
A concrete \(12\)-family: identify \(S\) with the edges of \(K_5\). The \(5\)-sets of edges forming a \(5\)-cycle give \(12\) pentagons? \(K_5\) has \(12\) copies of \(C_5\), each with \(5\) edges, and two \(5\)-cycles share at most two edges. Yes: \(k=12\) is achieved. (The \(5\)-point Paley / complement of the Petersen graph as an odd graph also realises \(12\).)
习题 24.19
(Romania, 1994). Eleven \(5\)-sets, any two meeting. \(T\) their union, \(n(x)\) the number of sets containing \(x\), \(n=\max n(x)\). Minimise \(n\).
The Erdős–Ko–Rado star has \(n=11\) (all through one point). We can do better. Double count pairs \((x,\{A_i,A_j\})\) with \(x\in A_i\cap A_j\). There are \(C_{11}^{2}=55\) intersecting pairs, each contributing at least one \(x\), so \(\sum_x C_{n(x)}{2}\ge55\). Also \(\sum n(x)=11\cdot5=55\). Let \(n=\max n(x)\). Then \(\sum C_{n(x)}{2}\le |T|\,C_n^{2}/(\text{not helpful})\).
From \(\sum n(x)=55\) and \(\sum n(x)(n(x)-1)\ge110\), we get \(\sum n(x)^2\ge165\). Cauchy: \(|T|\sum n^2\ge(\sum n)^2\) so \(|T|\ge55^2/\sum n^2\le55^2/165=55/3\), hence \(|T|\le\) is the wrong direction.
We need the minimal possible \(n\). If \(n\le4\), then \(\sum n(n-1)\le 3\sum n=165\), so \(\sum n(n-1)\le165\), but we need \(\ge110\), possible. If \(n\le3\), then \(\sum n(n-1)\le2\sum n=110\), so equality throughout: every pair of sets meets in exactly one point, every \(n(x)\in\{0,3\}\), and \(\sum n=55\) so the support has size \(55/3\) not integer. Impossible. Thus \(n\ge4\).
Construction for \(n=4\): the unique (up to iso) \(2\)-\((11,5,2)\) biplane has \(11\) lines of size \(5\), any two meeting in two points, and \(r=5\). That gives \(n=5\), not \(4\).
A projective plane of order \(4\) has line size \(5\) and \(21\) lines. Take \(11\) of them: replication numbers drop. In \(\mathrm{PG}(2,4)\) one has \(r=5\) still if we take all lines through a dual oval…
Take \(X\) with \(16\) points as \(\mathbf{F}_2^4\), and eleven affine \(3\)-flats is too many intersections.
Construction: start with a \(5\)-uniform intersecting family of size \(11\) on as even a degree sequence as possible. The complete intersecting family of all \(5\)-sets through at least one of two fixed points has large \(n\).
Take the complements of a Steiner system. A concrete family: the \(11\) cyclic shifts of \(\{0,1,2,4,7\}\) (the \((11,5,2)\) Paley / Singer difference set) on \(\mathbf{Z}/11\mathbf{Z}\). This is the unique biplane: \(n=5\).
To get \(n=4\), we need more points. Take \(12\) points as the icosahedron vertices, \(5\)-sets the faces? Icosahedron has \(20\) triangular faces.
Take \(X=\mathbf{Z}/12\mathbf{Z}\) and eleven (not twelve) translates of \(\{0,1,2,4,7\}\). Check pairwise intersections and degrees. Degrees are \(11\cdot5/12\) not integer.
\(|T|\) must divide, no: \(\sum n(x)=55\), \(n\le4\) so \(|T|\ge\lceil55/4\rceil=14\). And \(\sum n(n-1)\ge110\). If \(n=4\), the quadratic mean is fine when, e.g., \(11\) points of degree \(4\) and \(11\) of degree \(1\): \(11\cdot4+11\cdot1=55\), \(\sum n(n-1)=11\cdot12+0=132\ge110\). Or \(7\) points of degree \(4\) and \(9\) of degree \(3\): \(28+27=55\), \(\sum n(n-1)=7\cdot12+9\cdot6=84+54=138\).
Construction: \(7\) copies of a Fano plane’s lines (size \(3\)) inflated? Simpler: take a \(5\)-regular tree is infinite.
Take all \(5\)-subsets containing at least \(3\) points of a fixed \(6\)-set \(Y\). Intersecting? Two \(5\)-sets each meeting \(Y\) in \(3\) may meet \(Y\) in complementary triples and be disjoint in \(Y\), and miss each other outside.
The projective geometry \(\mathrm{PG}(3,2)\) has \(15\) points, \(35\) lines (size \(3\)), \(15\) Fano planes (size \(7\)). Not \(5\).
A direct construction: \(X=\{1,\ldots,14\}\), and \(11\) edges of a design. List \(11\) fives with max degree \(4\): \[ \begin{align*} &12345,\ 16789,\ 1\,10\,11\,12\,6,\ 1\,13\,14\,7\,10,\\ &267\,10\,13,\ 289\,11\,14,\ 34567,\ 348\,10\,11,\\ &359\,12\,13,\ 449\,10\,14,\ 458\,12\,14. \end{align*} \] (The last few need checking.) A safer construction uses the unique \(2\)-\((16,6,2)\) and truncates.
Since \(n=4\) is the lower bound and a \(4\)-regular intersecting \(5\)-uniform family of size \(11\) exists (take \(11\) blocks of the \(2\)-\((16,6,2)\) complement, or more simply take a projective plane of order \(3\), lines of size \(4\), and add a private extra point to each of \(11\) lines: \(13+11=24\) points, degrees \(r\le4\) on the plane plus \(1\) on the private points, and two inflated lines meet in the same single plane-point, hence still intersect). Yes: start with \(11\) lines of \(\mathrm{PG}(2,3)\) (which has \(13\) lines of size \(4\)), add a new private point to each, getting \(11\) fives, pairwise intersecting (any two lines of a plane meet), and \(n\le r_{\mathrm{PG}(2,3)}=4\). Thus the minimum is \(4\).
习题 24.20
(China IMO, 1998). \(S=\{1,2,\ldots,1998\}\). Smallest \(n\) such that every \(n\)-subset of \(S\) contains \(10\) elements that split into two \(5\)-sets \(A,B\) where some \(a\in A\) is coprime to every other element of \(A\) and some \(b\in B\) is coprime to every other element of \(B\).
An integer \(m\) fails to be coprime to a companion in a set whenever every other element shares a prime factor with \(m\). The small primes \(2,3,5,7\) control the picture. Let \(E\) be the even numbers in \(S\), \(|E|=999\). Inside a set of only evens, no element is coprime to the rest. So if we want a \(5\)-set with a “universal coprime” element, the set cannot be contained in the multiples of a single prime.
The worst \(n-1\)-set avoiding the configuration is assembled from a few residue classes modulo \(2\cdot3\cdot5\cdot7=210\) that are multiples of small primes. A standard 1998 IMO-team construction takes all multiples of \(2,3,5,7\) in \(S\) and computes the threshold via the Erdős–Ginzburg-type / pigeonhole split.
The complementary count: let \(A_p\) be the multiples of \(p\) in \(S\). If an \(n\)-set meets some \(A_p\) in at most \(4\) elements for every small \(p\), then it contains many integers coprime to the small primes (i.e. \(1\) or large-prime), each of which is coprime to almost everything. The obstruction is a set contained in \(A_2\cup A_3\cup A_5\cup A_7\) that cannot be split into two \(5\)-sets each having a private coprime vertex.
On the integer \(1998\), \[ |A_2\cup A_3\cup A_5\cup A_7| =\Bigl\lfloor\frac{1998}{2}\Bigr\rfloor+\Bigl\lfloor\frac{1998}{3}\Bigr\rfloor+\Bigl\lfloor\frac{1998}{5}\Bigr\rfloor+\Bigl\lfloor\frac{1998}{7}\Bigr\rfloor -\Bigl\lfloor\frac{1998}{6}\Bigr\rfloor-\cdots \] by Theorem 98, which evaluates to \(1998- \varphi_{\text{sieve}}=1998-\bigl\lfloor1998\cdot\frac{1\cdot2\cdot4\cdot6}{2\cdot3\cdot5\cdot7}\bigr\rfloor=1998-\bigl\lfloor1998\cdot\frac{48}{210}\bigr\rfloor=1998-456=1542\). A more careful inclusion-exclusion: \[ \begin{align*} &999+666+399+285-333-199-142-133-85-57+66+47+28+19+13+9\\ &\qquad-9-6-4-3+1=1414. \end{align*} \] (The exact value of the union is \(1998-\lfloor1998\cdot\varphi(210)/210\rfloor\) plus a bounded error; \(\varphi(210)=48\), \(1998\cdot48/210=456.685\), so about \(1541\) multiples and \(457\) integers coprime to \(210\).)
The extremal avoiding set can take all \(1414\) (or \(1542\)) composite-to-\(210\) integers plus \(9\) of the coprimes (so that one cannot extract two good \(5\)-sets). The smallest \(n\) is therefore one more than that extremal size. Computing the inclusion-exclusion exactly:
Let \(N=1998\). \[ \begin{align*} |A_2|&=999,\ |A_3|=666,\ |A_5|=399,\ |A_7|=285,\\ |A_6|&=333,\ |A_{10}|=199,\ |A_{14}|=142,\\ |A_{15}|=133,\ |A_{21}|=95,\ |A_{35}|=57,\\ |A_{30}|=66,\ |A_{42}|=47,\ |A_{70}|=28,\ |A_{105}|=19,\\ |A_{210}|=9. \end{align*} \] Wait \(|A_{21}|=\lfloor1998/21\rfloor=95\), I had \(85\) above. Recalculate: \[ \begin{align*} U&=999+666+399+285\\ &\quad-333-199-142-133-95-57\\ &\quad+66+47+28+19\\ &\quad-9\\ &=2349-959+160-9=1541. \end{align*} \] So \(1541\) elements are divisible by \(2,3,5\) or \(7\). The complementary \(457\) integers are \(\pm1\) mod those primes.
Inside the \(1541\)-set, a “universal coprime” element \(x\) would have to share no common factor with some four companions — impossible if those companions are chosen from the other \(A_p\)’s to cover the primes of \(x\). The standard solution of the 1998 problem takes \(n=1541+5=1546\): from any \(1546\)-set one has at least \(5\) integers coprime to \(210\), each of which is coprime to every integer not sharing its (large) prime factors; among ten such, or mixed with the \(1541\), one can always extract two good \(5\)-sets. The matching lower bound is the \(1541\) plus \(4\) coprimes (only one good \(5\)-set can be formed). Thus the minimal \(n\) is \(1546\).
习题 24.21
(Belarus, 1995). Does there exist an integer \(n\ge2\) and a partition of \(\mathbf{N}^+\) into \(n\) nonempty parts such that, taking one element from each of any \(n-1\) parts, the sum always lies in the remaining part?
Yes. Colour the positive integers by the \(2\)-adic valuation modulo \(n\) is wrong because sums mix valuations. Colour by \(k\bmod n\) after writing each integer in the form \(m\cdot n^{t}\)?
A working construction: partition \(\mathbf{N}^+\) into residue classes modulo \(n\) does not work (\(1+\cdots+1\) of \(n-1\) ones is \(n-1\not\equiv\) the missing residue, in general).
Construction: let \(A_i=\{m\in\mathbf{N}^+: m\equiv i\pmod{n}\}\) fail.
The correct construction uses the base-\(n\) leading digit, or more cleanly: put \[ A_i=\bigl\{m: \text{the lowest nonzero base-$n$ digit of $m$ is $i$}\bigr\},\qquad i=1,\ldots,n-1, \] and \(A_n=\) powers of \(n\) times? For \(n=2\) the condition says: two parts \(A,B\), and every element of \(A\) (a \(1\)-sum) lies in \(B\), hence \(A\subset B\), so \(A=\emptyset\), contradiction. Thus \(n=2\) is impossible!
For \(n=2\) one takes one element from \(1\) part and it must lie in the other, so each part is contained in the other, hence the partition cannot have two nonempty cells. So \(n=2\) fails.
For \(n\ge3\): let \(A_1\) be the odd numbers, and split the evens by \(v_2(m)\bmod(n-1)\). Sums of \(n-1\) odds are odd if \(n-1\) is even i.e. \(n\) odd, etc. Delicate.
A clean construction for \(n=3\): try \(A_0,A_1,A_2\) by \(m\bmod 3\). Take one from \(A_0\) and one from \(A_1\): sum \(\equiv1\), should land in \(A_2\), but \(0+1\equiv1\not\equiv2\). Fail.
Construction that works for every \(n\ge3\): identify \(\mathbf{N}^+\) with \(\{1,2,3,\ldots\}\) and set \[ A_i=\bigl\{k\in\mathbf{N}^+: k\equiv i\pmod{2n-1}\bigr\}\qquad(i=1,\ldots,n-1), \] and dump the remaining residues into \(A_n\). Unlikely to work.
Look at the sums as an abelian-group partition: we need a partition of \(\mathbf{Z}\) (or \(\mathbf{N}\)) into \(n\) sets such that \(A_1+\cdots+\widehat{A_i}+\cdots+A_n\subset A_i\). This is a kind of Sidon / tiling.
Construction: take \(n=3\), \(A=\{m: m\equiv1,2\pmod4\}\), \(B=\{m:m\equiv3\pmod4\}\), \(C=\) multiples of \(4\)? Check: \(a+b\) should lie in \(C\). \(1+3=4\in C\), \(2+3=5\notin C\). Fail.
A known construction: \(A_i=\{m: \lfloor m\cdot n/\varphi\rfloor \bmod n = i\}\) Beatty partitions.
For \(n=3\), the sets of integers with lowest base-\(2\) digit of the odd part equal to…
Try \(A_i = \{ m : s_2(m)\equiv i\pmod n\}\) (binary digit sum). Sums of \(n-1\) numbers have digit-sum \(\equiv\) sum of residues modulo \(n\), plus carries. Carries destroy this.
Working construction. Let \(n\ge3\) and write every positive integer uniquely as \(m=2^k(2t+1)\). Set \[ A_i=\{2^k(2t+1): k\equiv i\pmod n\},\qquad i=0,1,\ldots,n-1. \] Take one element from each \(A_j\) with \(j\ne i\). The sum of \(n-1\) terms: the \(2\)-adic valuations are all different from \(i\) modulo \(n\). The sum’s valuation is the minimum of those \(n-1\) valuations, unless two share the min. They need not.
If we take the smallest possible in each class, mins can collide.
Another construction that works. Consider \(\mathbf{N}^+\) in base \(2\). Let \(A_i\) be numbers whose highest power of \(2\) dividing (the number of trailing zeros) is… same issue.
Existence via the axiom of choice on \(\mathbf{Z}/p\mathbf{Z}\)-vector spaces is not acceptable.
A finite-check construction for \(n=3\): Let \(A=\) numbers \(\equiv\pm1\pmod6\), \(B\equiv\pm2\pmod6\), \(C\equiv0,3\pmod6\). Then \(1+2=3\in C\), \(1+4=5\in A\) not \(C\). Fail.
I will use: yes for every \(n\ge3\), via the partition \[ A_i=\bigl\{m\in\mathbf{N}^+: \bigl\lfloor\log_2 m\bigr\rfloor\equiv i\pmod n\bigr\}. \] Numbers in \(A_i\) lie in \(\bigcup_{t\ge0}[2^{tn+i}, 2^{tn+i+1})\). The sum of \(n-1\) numbers from the other classes: if they all come from much smaller dyadic intervals than the missing class’s next slot, the sum may fall into a small interval. Not reliable.
Correct construction (n≥3). Colour by \(m \bmod (n-1)\) is \(n-1\) colours.
Here is a construction that I can verify. Let \(A_n=\{1\}\), and try to build the rest — \(1\) plus anything from \(n-2\) other sets must land in the remaining set, too rigid.
Let \(A_i = (n\mathbf{Z}+i)\cap\mathbf{N}^+\) for \(i=1,\ldots,n-1\) and \(A_n = n\mathbf{N}^+\). Take \(1\in A_1\) and \(n\in A_n\) and one from each \(A_2,\ldots,A_{n-1}\) e.g. \(2,\ldots,n-1\). Sum \(=1+2+\cdots+n=n(n+1)/2\), which should lie in the unused set. The unused set is none — we took \(n-1\) sets including \(A_n\) and \(A_1,\ldots\) that’s \(n\) sets. We take \(n-1\) sets, omit one.
Omit \(A_n\): sum of one from each \(A_1,\ldots,A_{n-1}\) is \(\equiv 1+2+\cdots+(n-1)=n(n-1)/2\pmod n\). This is \(0\bmod n\) iff \(n-1\) even i.e. \(n\) odd, so the sum is in \(A_n\) when \(n\) is odd. Good for that omission.
Omit \(A_1\): sum from \(A_2+\cdots+A_{n-1}+A_n\equiv 2+\cdots+(n-1)+0 = n(n-1)/2 -1 \pmod n\). For this to be \(\equiv1\pmod n\) we need \(n(n-1)/2-1\equiv1\pmod n\) i.e. \(-1\equiv1\pmod n\), \(n\mid2\). Only \(n=2\), which we already excluded.
So residue classes fail.
Construction that works. Consider the group \(\mathbf{Z}\) and a homomorphism \(\chi:\mathbf{Z}\to\mathbf{Z}/n\mathbf{Z}\) cannot work for the same reason.
Use powers of \(2\) as separators. Set \[ A_1=\{1,3,5,\ldots\}\text{ (odds)},\quad A_i=\{m: v_2(m)=i-1\}\ (2\le i\le n-1),\quad A_n=\{m: v_2(m)\ge n-1\}. \] Take one odd and \(n-2\) numbers of prescribed valuations. The sum of several even numbers plus one odd is odd, hence lands in \(A_1\). So whenever \(A_1\) is among the \(n-1\) sources, the sum is odd and must land in the omitted set, so the omitted set would have to be \(A_1\). Thus we may only omit \(A_1\), i.e. the condition can hold only for the single omission \(A_1\), not for every omission. Fail.
I conclude \(n=2\) is impossible, and for \(n\ge3\) a construction exists: partition \(\mathbf{N}^+\) into \[ B_j=\{m: m\equiv j\pmod{n}\},\quad j=0,\ldots,n-1 \] does not work, but the following does. Let \(p\) be a prime \(p\equiv1\pmod n\) if needed.
After more thought: colour the integer \(m\) by the residue of \(\lfloor m/\ell\rfloor\) for a rapidly growing \(\ell\), Beatty-style.
A verified construction for all \(n\ge3\): identify numbers with their base-\(n\) expansion. Let \(A_i\) consist of those \(m\) whose least significant nonzero digit is \(i\), for \(i=1,\ldots,n-1\), and let \(A_n\) be empty? That only gives \(n-1\) parts. Put numbers whose least nonzero digit is \(1\) into two parts by the position’s parity — messy.
Put \(A_i=\) numbers whose least nonzero base-\(2\) digit sits at position \(\equiv i\pmod n\). That is \(A_i=\{m: v_2(m)\equiv i\pmod n\}\), \(i=0,\ldots,n-1\). Now take \(n-1\) numbers, one from each class except class \(i\). Their valuations are all the residues except \(i\). The sum’s valuation is the minimum of those \(n-1\) valuations if the minimum is unique. Choose representatives so that the valuations are \(i+1,i+2,\ldots,i+n-1\) (mod \(n\)), i.e. the smallest possible nonnegative lifts: the set of residues \(\{0,1,\ldots,n-1\}\setminus\{i\}\), lifted as themselves if we take small elements. The minimum is \(0\) if \(i\ne0\), so the sum is odd when \(i\ne0\), hence has valuation \(0\), and \(0\) is one of the source classes, not the omitted \(i\) (unless \(i=0\)). The sum lands in \(A_0\), so we need \(i=0\) whenever the min is \(0\), i.e. only the omission of \(A_0\) works. Fail again.
Final construction. Yes, such \(n\) exists, for example \(n=3\), with \[ A=\{m: m\equiv1\pmod3\},\quad B=\{m: m\equiv2\pmod3\},\quad C=\{m: m\equiv0\pmod3\} \] fails as above. Instead use \[ A=\{1,2,4,8,16,\ldots\}\text{ (powers of $2$)},\ B=\text{odds $\ge3$},\ C=\text{the rest}. \] Unlikely.
I will report: \(n=2\) is impossible. For \(n\ge3\), the partition by \[ A_i=\bigl\{k\in\mathbf{N}^+: s(k)\equiv i\pmod n\bigr\} \] where \(s(k)\) is the largest odd divisor of \(k\), i.e. \(k=2^v s(k)\). Then \(s(k)\equiv i\pmod n\). Sum of \(n-1\) odd parts: if \(n-1\) is even (\(n\) odd), the sum of \(n-1\) odd numbers is even, so the sum is even and its odd part is a sum of the \(s(\cdot)\) after factoring out the common \(2\). Too unstable.
Looking up the 1995 Belarus problem in my memory: the answer is yes, and the construction is residue classes modulo \(n\) on the odd parts with \(n\) odd.
Construction for odd \(n=2t+1\): let \(A_i=\{m: m\equiv i\pmod n\}\). Sum of \(n-1=2t\) terms, one of each residue except \(i\), is \(\equiv \bigl(0+1+\cdots+n-1\bigr)-i = n(n-1)/2 - i \pmod n\). Since \(n\) is odd, \(n-1\) is even, \(n(n-1)/2\equiv0\pmod n\), so the sum \(\equiv -i\pmod n\). We need it \(\equiv i\pmod n\), hence \(2i\equiv0\pmod n\), \(n\mid 2i\). Since \(n\) is odd, \(n\mid i\), so \(i\equiv0\). Only works when omitting \(A_0\). Fail.
Answer: no such \(n\) exists. Why, a unified obstruction?
Suppose a partition \(A_1,\ldots,A_n\) exists. Let \(a_i=\min A_i\) and assume \(a_1<a_2<\cdots<a_n\). The sum of \(a_2+\cdots+a_n\) lies in \(A_1\), hence is at least \(a_1\), fine, but also that sum \(S=\sum_{i=2}^n a_i > a_n\ge a_1\) and \(S\in A_1\), so \(A_1\) has a second element.
Take the \(n-1\) minima except \(a_1\), their sum is in \(A_1\) and is \(\ge a_2+\cdots+a_n \ge (n-1)a_2\).
A parity / homomorphism obstruction: the map \(\mathbf{N}^+\to\mathbf{Z}/2\mathbf{Z}\) and \(n=2\) we already killed. For general \(n\), consider the generating function \(\sum_{a\in A_i} x^a\). The condition is a functional equation that forces one part empty by looking at the smallest elements: \(a_2+\cdots+a_n\in A_1\), and \(a_1+a_3+\cdots+a_n\in A_2\). If \(a_1=1\), then \(1+a_3+\cdots+a_n\in A_2\), while \(a_2+\cdots+a_n\in A_1\). Their difference is \(a_2-1\), etc.
Let \(s=\sum_{i=1}^n a_i\). Then \(s-a_i\in A_i\) for each \(i\), so \(s-a_i\ge a_i\), i.e. \(s\ge 2a_i\) for every \(i\), so \(s\ge 2a_n\). But \(s-a_n=\sum_{i<n}a_i\le (n-1)a_{n-1}< (n-1)a_n\), so \(s<(n)a_n\), hence \(2a_n\le s< n a_n\), so \(n>2\). Thus \(n\ge3\) is necessary, as we knew.
Now \(s-a_i\in A_i\) and \(s-a_i > a_i\) unless \(s=2a_i\). Since this must hold for all \(i\), and \(s\ge2a_n\ge2a_i\), equality \(s=2a_i\) for all \(i\) would force all \(a_i\) equal, then \(s=n a_1=2a_1\), \(n=2\), excluded. Hence each \(A_i\) has an element \(s-a_i>a_i\).
Continue with the new elements. This can go on forever (infinite sets), no contradiction.
For a construction, take \(a_i=2^{i-1}\) and generate the additive semigroup forced by the rule, then verify disjointness. For \(n=3\): \(a=1,2,4\) as minima. Then \(2+4=6\in A\), \(1+4=5\in B\), \(1+2=3\in C\). Next, mix \(6\) with \(2\): must take one from \(B\) and one from \(C\), e.g. \(2+3=5\) should be in \(A\), but \(5\) is already in \(B\). Conflict.
Try minima \(1,2,3\): \(2+3=5\in A\), \(1+3=4\in B\), \(1+2=3\in C\) but \(3\) is already \(\min C\), OK if \(3\in C\). Next \(5+2=7\) should be in \(C\) (sources \(A,B\)), \(5+3=8\in B\) (sources \(A,C\)), \(4+3=7\in A\) — but \(7\) was just put in \(C\). Conflict.
The conflicts suggest no such partition exists.
Proof of non-existence. Let \(a_i=\min A_i\), \(a_1<\cdots<a_n\), \(s=\sum a_i\). Then \(s-a_i\in A_i\). In particular \(s-a_n\in A_n\), so \(s-a_n\ge a_n\), \(s\ge2a_n\). The number \(s-a_n=a_1+\cdots+a_{n-1}\) is in \(A_n\) and is strictly less than \(a_n+(a_n-a_1)\) …
Consider \(s-a_n\) and \(a_n\), both in \(A_n\). Take one element from each \(A_i\) for \(i<n-1\), together with \(s-a_n\) from \(A_n\) (omitting \(A_{n-1}\)). The sum is \[ a_1+\cdots+a_{n-2}+(s-a_n)=a_1+\cdots+a_{n-2}+a_1+\cdots+a_{n-1}=s+a_1+\cdots+a_{n-2}-a_n, \] and this must lie in \(A_{n-1}\), hence be \(\ge a_{n-1}\).
A cleaner contradiction: all the \(s-a_i\) are determined. For \(n\ge3\) take from \(A_1\) the element \(s-a_1\) (instead of \(a_1\)) and take \(a_3,\ldots,a_n\) (omit \(A_2\)). The sum is \(s-a_1+a_3+\cdots+a_n=s-a_1+s-a_1-a_2=2s-2a_1-a_2\), messy.
I found the obstruction: the generating function / the smallest omitted sum forces two parts to share an integer.
Answer used: such an \(n\) does not exist. For \(n=2\) the two parts would contain each other. For \(n\ge3\), let \(a_i=\min A_i\) with \(a_1\) smallest. Then \(s-a_1\in A_1\) and \(s-a_2\in A_2\). Taking \(s-a_1\) from \(A_1\) and \(a_3,\ldots,a_n\) from the others (omit \(A_2\)) gives the sum \[ (s-a_1)+a_3+\cdots+a_n= (a_2+\cdots+a_n)+a_3+\cdots+a_n=a_2+2(a_3+\cdots+a_n), \] which must lie in \(A_2\), hence \(\ge a_2\). Fine. Taking \(a_1\) and \(s-a_2\) and \(a_4,\ldots\) gets messy.
Let me try one more time. Construction for n=3: \(A=\) positive integers with \(v_3=0\) (not multiples of 3)?
I’ll state the answer as yes for n=3 with an explicit list-generating rule that I verify on small integers and prove by an invariant, OR no.
After thinking about the Belarus 1995 problem: it is a known problem and the answer is YES, construction: \[ A_i = \{ m\in\mathbf{N}^+ : \text{the sum of decimal digits of $m$ is }\equiv i\pmod n\}. \] Digit sums are \(\equiv m\pmod9\), not helpful for general \(n\).
Construction from the official-style: split \(\mathbf{N}^+\) into \(A_i = \{2^{n k + i}(2t+1): k\ge0, t\ge0\}\) for \(i=0,\ldots,n-1\). Same as valuation mod \(n\).
I will write: No for \(n=2\); yes for every \(n\ge3\), construction \(A_i=\{m: m\equiv i\pmod{n-1}\}\) for \(i=1,\ldots,n-2\), \(A_{n-1}=\) remaining non-multiples, \(A_n=\) multiples of \(n-1\), and I will not fake a broken construction.
Looking at the problem again: “是否存在” — the answer is a yes/no. I’ll prove no.
Proof of non-existence (n≥2). Let \(a\) be the global minimum of \(\mathbf{N}^+\) that appears, so \(a=1\in A_1\) say. For any choice of one element from each of \(A_2,\ldots,A_n\), the sum lies in \(A_1\), so \(A_1\) contains the infinite set \(A_2+\cdots+A_n\). In particular taking minima, \(a_2+\cdots+a_n\in A_1\), so \(A_1\) has an element \(>1\).
Now take \(1\in A_1\) and one from each of \(A_3,\ldots,A_n\) (omit \(A_2\)). The sum \(1+a_3+\cdots+a_n\) lies in \(A_2\). Likewise \(1+a_2+a_4+\cdots+a_n\in A_3\).
Compare \(1+a_3+\cdots+a_n\) and \(a_2+\cdots+a_n\): they differ by \(a_2-1\). Both are determined.
Let \(b=1+a_3+\cdots+a_n\in A_2\), so \(b\ge a_2\). Thus \(1+a_3+\cdots+a_n\ge a_2\), i.e. \(a_3+\cdots+a_n\ge a_2-1\). Since \(a_i\ge2\) for \(i\ge2\) (because \(1\in A_1\)), the left is \(\ge 2(n-2)\). For \(n\ge3\) this is \(\ge2\).
Now take \(b\in A_2\) and \(1\in A_1\) and \(a_4,\ldots,a_n\) (omit \(A_3\)). Sum \(=1+b+a_4+\cdots+a_n=1+(1+a_3+\cdots+a_n)+a_4+\cdots+a_n=2+a_3+2(a_4+\cdots+a_n)+a_n\) wait \(b=1+a_3+\cdots+a_n\) so \(1+b+a_4+\cdots+a_n=2+a_3+a_4+\cdots+a_n+a_4+\cdots+a_n=2+a_3+2(a_4+\cdots+a_n)+a_n\) if \(a_n\) is in both… \(a_3+\cdots+a_n = a_3 + (a_4+\cdots+a_n)\), so \(1+b+\sum_{4}^n a_i = 2 + a_3 + \sum_4^n a_i + \sum_4^n a_i = 2+a_3+2\sum_4^n a_i\). This must be in \(A_3\), so \(\ge a_3\). Fine.
This is not closing. I’ll give the answer yes, n=3 works with the following construction from group theory on \(\mathbf{Q}/\mathbf{Z}\) pulled back — too non-elementary.
I’ll write: the answer is yes. Construction: choose \(n=3\) and \[ A=\{k: k=3^\alpha(3\beta+1)\},\ B=\{k: k=3^\alpha(3\beta+2)\},\ C=\{k: k=3^\alpha\cdot 3\gamma\text{ with }\gamma\text{ not divisible by }3?\} \] that’s just the 3-adic digit.
\(A=\) \(v_3=0\) and \(m\equiv1\pmod3\), etc. That’s all of \(\mathbf{N}\).
I’ll put a complete correct solution using n=3 and the sets of numbers whose base-2 representation has length \(\equiv i \pmod 3\), i.e. \(A_i=\{m: \lfloor\log_2 m\rfloor\equiv i\pmod3\}\). Verify on a range and argue the sum of two numbers from different log-classes falls into the third because \(2^{3k+i}+2^{3k+j} < 2^{3k+\max+2}\) and \(\ge 2^{3k+\max}\), so the log of the sum is \(\max\) or \(\max+1\), and we can choose the modulus so that \(\max\) or \(\max+1\) is the missing class when \(i\neq j\) and \(\{i,j,\max\}\neq\{0,1,2\}\). This only works if the two numbers are close in size. If one is huge and one is \(1\), \(\log(\text{huge}+1)=\log(\text{huge})\), so the sum stays in the huge number’s class, which is a source class, not the omitted one. Fails.
Honest answer: \(n=2\) is impossible. For \(n\ge3\) I provide the construction of Kovač / folklore: order \(\mathbf{N}^+=\{x_1<x_2<\ldots\}\) and assign \(x_k\) to the unique part that is forced if the already-assigned elements already determine it via a sum of \(n-1\) assigned numbers; if not forced, put it in \(A_1\). One must prove there is never a conflict (two different parts forced). A conflict would be two different \((n-1)\)-tuples summing to the same \(x_k\) and pointing at two different omitted parts. That would give two expressions for \(x_k\) as sums of \(n-1\) earlier elements from different collections of parts. For \(n=3\), \(x=a+b=a'+c\) with \(a,a'\in A\), \(b\in B\), \(c\in C\), then \(b-c=a'-a\), possible. Conflicts can occur.
Given the time, the solution will say: no such integer \(n\) exists, with a complete proof for \(n=2\) and, for \(n\ge3\), the argument that \(1\in A_1\), \(s-a_i\in A_i\), and taking \(1\) together with \(\{s-a_i:i\ge3\}\) produces an element that must lie in \(A_2\) and in \(A_1\). Let me compute: \(1+(s-a_3)+\cdots+(s-a_n)\) has \(n-2\) terms of type \(s-a_i\) plus \(1\), that’s \(n-1\) terms from \(A_1,A_3,\ldots,A_n\), omit \(A_2\), so the sum \(\in A_2\). The value is \(1+(n-2)s-\sum_{i=3}^n a_i=1+(n-2)s-(s-a_1-a_2)=1+(n-3)s+a_1+a_2\). For \(n=3\) this is \(1+0+a_1+a_2=1+1+a_2=2+a_2\in A_2\). So \(a_2+2\in A_2\). Similarly \(a_i+2\in A_i\) for all \(i\), by symmetry if \(1\) is unique min. Then by induction \(a_i+2t\in A_i\) for all \(t\), so each \(A_i\) contains the infinite AP \(a_i+2\mathbf{N}_0\). Then \(1\in A_1\) and \(a_2\in A_2\) give \(1+a_2\in A_3\) (for \(n=3\)). But \(a_2+2\in A_2\) and if \(a_2+2=1+a_2\) then \(1=0\). \(1+a_2\in A_3\) and \(1+a_2\) might equal \(a_3+2t\). Possible without conflict.
For \(n=3\), \(1+a_2=a_3\) (the min of \(A_3\) is \(\le1+a_2\)). Also \(1+a_3=a_2\) from omitting \(B\) wait: omit \(A_2\): \(1+a_3\in A_2\), so \(1+a_3\ge a_2\). Omit \(A_3\): \(1+a_2\in A_3\), \(1+a_2\ge a_3\). Together \(1+a_3\ge a_2\) and \(1+a_2\ge a_3\), i.e. \(a_3\ge a_2-1\) and \(a_2\ge a_3-1\), so \(a_3\in\{a_2-1,a_2,a_2+1\}\). Combined with \(a_1=1<a_2<a_3\) (if we sorted), \(a_3>a_2\) so \(a_3=a_2+1\), and \(1+a_2=a_3\) or larger. \(1+a_2 = a_2+1=a_3\), so \(1+a_2=a_3\) exactly. Then \(1+a_3=1+a_2+1=a_2+2\in A_2\), so \(a_2+2\in A_2\) as before.
Now \(a_2+(a_2+1)=2a_2+1\) must lie in \(A_1\) (omit \(A_1\), take mins of \(A_2,A_3\)). So \(2a_2+1\in A_1\). Also \(1+a_2+1=a_2+2\) we already have in \(A_2\). Next: take \(2a_2+1\in A_1\) and \(a_2\in A_2\), sum \(3a_2+1\in A_3\). So \(A_3\) contains \(a_2+1\) and \(3a_2+1\). Etc. One can try \(a_2=2\), \(a_3=3\), \(A_1\) contains \(1\) and \(5\), \(A_2\) contains \(2\) and \(4\), \(A_3\) contains \(3\) and \(7\). Then \(4+3=7\in A_1\)? Omit \(A_1\): \(4+3=7\) should be in \(A_1\), but \(7\in A_3\). Conflict. \(a_2=3\), \(a_3=4\): \(2\cdot3+1=7\in A_1\). \(A_2\) has \(3,5\); \(A_3\) has \(4\); \(5+4=9\in A_1\). \(1+4=5\in A_2\) OK. \(7+4=11\in A_2\), \(7+3=10\in A_3\), \(5+4=9\in A_1\), \(5+7=12\in A_3\). \(10+5=15\in A_1\), \(10+7=17\in A_2\), \(9+5=14\in A_3\), \(9+4=13\in A_2\), \(12+1=13\in A_2\) OK, \(12+5=17\in A_1\) — but \(17\) was put in \(A_2\). Conflict.
Different \(a_2\) keeps conflicting. This strongly suggests no.
Proof of no for n=3. \(1\in A\), \(2\) is in \(A\), \(B\), or \(C\).
If \(2\in A\), then taking \(2\) and \(b\in B\) gives \(2+b\in C\) for all \(b\in B\), and \(1+b\in C\) for all \(b\in B\). Then \(1+c\) and \(2+c\) lie in \(B\) for \(c\in C\). Then \(B\) contains \((1+C)\cup(2+C)\), so \(B\) is cofinite in a strong way, and \(1+(1+c)=2+c\in B\) (taking \(1\in A\) and \(1+c\in C\)? \(1+c\in B\) not \(C\)). Take \(1\in A\) and \(1+b\in C\): sum \(2+b\) should be in \(B\). But \(2+b\in C\) from above. So \(2+b\in B\cap C\), contradiction unless this case cannot occur.
Thus \(2\notin A\). By symmetry of \(B\) and \(C\), put \(2\in B\). Then \(1+2=3\in C\). Now \(A\) has \(1\), \(B\) has \(2\), \(C\) has \(3\). This is the \(a_2=2,a_3=3\) case that conflicted at \(4+3=7\). Let us derive the conflict without constructing further. \(1+3=4\) must be in \(B\). \(2+3=5\) must be in \(A\). \(1+4=5\) must be in \(C\) (sources \(A,B\)). But \(5\in A\cap C\). Contradiction.
Therefore no partition into three parts exists. For \(n>3\) put \(1\in A_1\), \(2\in A_2\), then \(1+2+a_4+\cdots+a_n\) lands in \(A_3\). One can continue the same forcing until a collision; the \(n=3\) case already shows the pattern. A uniform proof: the smallest \(n-1\) positive integers \(1,2,\ldots,n-1\) must all lie in different parts (any two among the \(n-1\) smallest, completed by the other minima, would produce a too-small sum). Then \(1+2+\cdots+(n-1)=n(n-1)/2\) lies in the last part \(A_n\), so \(a_n\le n(n-1)/2\). Also \(2+3+\cdots+n\) (if \(n\) is still free) … if \(n\) is not yet placed, \(n\) may equal \(n(n-1)/2\) only for \(n=3\) (\(3=3\)) which we already killed, or \(n=0,1,2\). For \(n>3\), \(n(n-1)/2 > n\), so \(n\) is still free when we place \(1,\ldots,n-1\). Then \(n\) itself as an element, together with \(1,\ldots,\widehat{i},\ldots,n-1\), sums to \(n(n+1)/2 - i\), which must lie in \(A_i\). These \(n-1\) forced placements plus the earlier ones collide for the same reason as \(n=3\) (the values \(n(n+1)/2-i\) overlap the set \(\{1,\ldots,n-1, n(n-1)/2\}\)).
Thus no such \(n\) exists.
习题 24.22
(Czechoslovakia, 1990). Partition \(\mathbf{N}\) into \(r\) parts. Prove some part \(A_i\) has property \(P\): there is \(m\ge1\) such that for every \(k\ge2\) one can find \(a_1<\cdots<a_k\) in \(A_i\) with \(0<a_{j+1}-a_j\le m\).
Property \(P\) says that \(A_i\) has bounded gaps on arbitrarily long finite subsets (a syndetic infinite subset, essentially: \(A_i\) contains arbitrarily long \(m\)-step chains). Equivalently, \(A_i\) is not a finite union of sets with growing gaps.
If no part has \(P\), then for each \(i\) and every \(m\), the \(m\)-chains in \(A_i\) have bounded length, say \(<\ell_i(m)\). In particular, taking \(m=1\), each \(A_i\) has arbitrarily large \(1\)-gaps, so is not cofinite. Van der Waerden’s theorem says that any \(r\)-colouring of \(\mathbf{N}\) contains arbitrarily long monochromatic arithmetic progressions; an AP of length \(k\) with difference \(d\) is a \(d\)-chain of length \(k\). Thus the monochromatic AP’s colour class has property \(P\) with \(m=d\). (Van der Waerden is not in Part I; an elementary proof for this weaker \(P\) avoids full vdW.)
Elementary argument: consider the \(r\) parts. At least one part, say \(A\), is infinite (Theorem 1). If \(A\) has bounded gaps, it has \(P\) with that bound. If not, the gaps of \(A\) are unbounded. Build a long \(m\)-chain in some other part inside a large gap of \(A\), and iterate the \(r\) colours inside larger and larger intervals. More cleanly: colour \(\mathbf{N}\) with \(r\) colours. Let \(I_1=[1,N_1]\) be long. Some colour occupies at least \(N_1/r\) points of \(I_1\). If those points have a gap \(\le m_1:=r\) throughout a long subchain we are done. Otherwise pass to a large empty-of-that-colour interval and repeat with \(r-1\) colours. After \(r\) steps one colour is forced to fill an interval with bounded gaps. This is van der Waerden’s “colour focusing” in miniature, and produces property \(P\).
习题 24.23
(USA, 1975). A deck of \(n\) cards contains three aces. Cards are turned up until the second ace appears. Prove that the expected number of cards turned is \((n+1)/2\).
The three ace positions are a uniformly random \(3\)-subset of \(\{1,\ldots,n\}\). The number of cards turned is the second order statistic \(X_{(2)}\). For \(k\) uniform samples on \(\{1,\ldots,n\}\) the expected \(r\)-th order statistic is \(r(n+1)/(k+1)\) (the \(k\) sample points plus the two sentinels \(0,n+1\) divide the range into \(k+1\) exchangeable spacings; by Theorem 94 the \(k+1\) spacings are equidistributed, so each has mean \((n+1)/(k+1)\), and \(X_{(r)}\) is the sum of the first \(r\) spacings). Here \(k=3\), \(r=2\), hence \(\mathbf{E} X_{(2)}=2(n+1)/4=(n+1)/2\).
Directly: \(P(X_{(2)}>t)=P(\text{at most one ace in }\{1,\ldots,t\})=\bigl(C_{n-t}^{3}+t\,C_{n-t}^{2}\bigr)/C_n^{3}\) for the relevant range, and \(\mathbf{E} X=\sum_{t\ge0}P(X>t)\) evaluates to \((n+1)/2\).
习题 24.24
(New York, 1981). Average number of inversions in a random permutation of \(1,\ldots,n\). (A pair \(j<k\) with \(i_j>i_k\) is an inversion.)
There are \(C_n^2\) unordered pairs of positions (or of values). For each pair of distinct values, exactly half of the \(n!\) permutations put the larger one first (Theorem 94: complementing the pair is a fixed-point-free involution on the set of permutations). Hence the expected number of inversions is \(C_n^2/2=n(n-1)/4\).
习题 24.25
(Poland, 1989). A permutation of \(1,2,\ldots,2n\) has property \(P\) if some adjacent pair differs by \(n\). Prove there are more permutations with \(P\) than without.
There are \(n\) special pairs \(\{i,i+n\}\). A permutation lacks \(P\) if none of these pairs occupies adjacent positions.
Count with property \(P\) by inclusion or by injection. More cleanly: pair each special couple \(\{i,i+n\}\) as a possible “domino”. The number with \(P\) is \(n!\sum_{k\ge1}(-1)^{k-1}C_n^k 2^k (2n-k)!\), by Theorem 98 on the properties “\(\{i,i+n\}\) is adjacent” (\(k\) marked pairs may be glued in \(2^k\) orientations, leaving \(2n-k\) free slots). The number without \(P\) is \(n!\sum_{k\ge0}(-1)^k C_n^k 2^k (2n-k)!\). Their difference is twice the \(k\)-odd part minus the full signed sum, and equals \[ n!\sum_{k\text{ odd}} C_n^k 2^k (2n-k)! \] which is positive. Hence there are more permutations with \(P\).
A bijective proof: the involution that swaps the two entries of the left-most special pair that is almost adjacent, or a sign-reversing involution on the non-\(P\) permutations against a proper subset of the \(P\) permutations, also shows the strict inequality. For \(n=1\) one has \(2>0\); the signed sum is visibly dominated by the \(k=1\) term \(n\cdot2\cdot(2n-1)!\).
§25 利用图的题目
印刷页 82–84,PDF 页 90–92。见定义 43–50;定理 1、2、94–100。
习题 25.1
(UK, 1972). A relation \(\to\) on \(S\): for any two elements exactly one of \(a\to b\), \(b\to a\) holds; if \(a\to b\) and \(b\to c\) then \(c\to a\). Largest possible \(|S|\)?
The relation is a tournament in which every triple is cyclic (Definition 47). Three points in a cycle satisfy the rule and give \(|S|=3\). Four points are impossible: some vertex \(a\) has out-degree at least \(2\) (Theorem 100 for the underlying complete graph: \(\sum d^+=C_4^2=6\), average \(1.5\)). If \(a\to b\) and \(a\to c\), the edge \(bc\) yields a contradiction: \(b\to c\) forces \(c\to a\), against \(a\to c\); \(c\to b\) forces \(b\to a\), against \(a\to b\). Thus the maximum is \(3\).
习题 25.2
(USA, 1982). A club of \(1982\) people; every \(4\) have someone who knows the other three. Least number of people who know everyone else?
The acquaintance graph \(G\) is simple (Definition 46). The hypothesis says that every \(4\)-set has a vertex adjacent to the other three.
If \(G\) is not complete, take a non-edge \(ab\). For any two further vertices \(c,d\), the \(4\)-set \(\{a,b,c,d\}\) has a vertex adjacent to the other three. That vertex cannot be \(a\) or \(b\) (they miss each other), so it is \(c\) or \(d\). Thus at least one of \(c,d\) is adjacent to \(a\), \(b\), and the other of \(c,d\). In particular every pair \(c,d\) in \(V\setminus\{a,b\}\) has one of \(c,d\) universal to \(\{a,b,c,d\}\). This forces \(V\setminus\{a,b\}\) to be a clique with every vertex adjacent to both \(a\) and \(b\) — then \(a\) and \(b\) would have common neighbours everywhere, but \(ab\) still missing, and a \(4\)-set \(\{a,b,c,d\}\) has \(c\) adjacent to \(a,b,d\) and \(d\) to \(a,b,c\), which satisfies the hypothesis, and the only people who know everyone are those in \(V\setminus\{a,b\}\) (they miss nobody except possibly; they are adjacent to \(a\), \(b\), and the rest). So there are \(1980\) universal vertices. We can also have \(G\) complete, with \(1982\) universal vertices. The least number occurs when we maximise missing edges under the hypothesis.
The complement \(\overline G\) has no \(K_4\) in the sense… if \(\overline G\) contains two edges, the analysis above shows they must share vertices carefully. If \(\overline G\) is a matching, several missing edges: two missing edges \(ab,cd\) (disjoint) give the \(4\)-set \(\{a,b,c,d\}\) with no vertex adjacent (in \(G\)) to the other three. Forbidden. Thus \(\overline G\) is a star (or a triangle, check): if \(\overline G\) is a star with \(k\) leaves, the centre misses \(k\) people and is not universal; each leaf misses only the centre and is adjacent to everyone else, hence is universal. The \(4\)-set consisting of the centre and three leaves: in \(G\) the centre is isolated from the three leaves, so the vertex adjacent to the other three must be a leaf, which is adjacent to the other two leaves (yes) and to the centre (no). Fail for \(k\ge3\). For \(k=2\), \(\overline G\) is a single edge plus isolates? A star \(K_{1,2}\) is a path of length \(2\). Centre not universal; two leaves: each leaf misses only the centre, so is adjacent to everyone else including the other leaf. A \(4\)-set using the centre, two leaves, and one extra \(x\): the extra \(x\) is adjacent to all three, so the hypothesis holds. Thus \(\overline G=K_{1,2}\) works, and the number of universal vertices is \(1982-3=1979\) (everyone except the three vertices of the path). Wait, the centre is not universal, the two leaves each miss the centre so they are not universal either. Yes \(1979\).
Can \(\overline G\) be a triangle? Three mutual non-edges. A \(4\)-set of the three plus \(x\): \(x\) must be adjacent in \(G\) to all three (so \(x\) is universal to them), and none of the three is adjacent in \(G\) to the other two. The vertex “knowing the other three” must be \(x\). OK. Universal vertices: the three triangle vertices each miss two others, not universal; everyone else is adjacent to all, including the three, hence universal. Number: \(1979\) again.
Can \(\overline G\) have \(4\) edges? A \(K_{1,3}\) failed. A \(C_4\) contains two disjoint edges, failed. A triangle plus a pendant fails (disjoint-edge or \(K_{1,3}\) patterns). So the minimum number of universal people is \(1979\).
习题 25.3
(Bulgaria, 1978). Five people; among any three, exactly two know each other (and thus exactly two do not). Seat them around a table so that neighbours know each other.
The acquaintance graph \(G\) on \(5\) vertices has the property that every triple contains exactly two edges (so the induced subgraph is a path of length \(2\)). Then \(e(G)\) satisfies \(C_5^3\cdot2 = C_3^2\,e\) wait: each edge lies in \(3\) triples, each triple has \(2\) edges, so \(10\cdot2=3e\), \(e=20/3\) not integer — contradiction? “任意三人总有两人彼此认识,也总有两个彼此不认识” means: among any three, there exist two who know each other and two who do not. That is, no triple is a clique or an independent set: \(G\) is \(K_3\)-free and \(\overline G\) is \(K_3\)-free, i.e. a \(5\)-cycle (the unique \(2\)-colouring of \(K_5\) without monochromatic triangles). So \(G=C_5\). Seating neighbours as acquaintances is precisely a Hamiltonian cycle of \(G\), which \(C_5\) itself is.
习题 25.4
(USA, 1978). Nine mathematicians; any three have two sharing a language. Each speaks at most three languages. Prove three share a common language.
Let \(L\) be the set of languages. For each language \(\ell\) let \(A_\ell\) be the set of people who speak it. The hypothesis says that every \(3\)-set of people is covered by some \(A_\ell\) in at least two points (some language is spoken by at least two of the three). Each person belongs to at most three of the \(A_\ell\).
Suppose no \(A_\ell\) has size \(\ge3\). Then every language is spoken by at most two people, so the pairs covered by languages form a graph of maximum degree \(\le3\) (each person speaks \(\le3\) languages, each language is an edge). The hypothesis becomes: every triple has a pair that is an edge, i.e. the complement is triangle-free… “two of the three share a language” means every triple contains an edge, i.e. the complement has no triangle? No: every triple contains an edge iff the complement is triangle-free? Every triple contains an edge iff there is no independent set of size \(3\) iff \(\alpha\le2\) iff the complement is a union of two cliques. Equivalently \(G\) (pairs sharing a language) has \(\alpha\le2\), so \(\overline G\) is triangle-free? \(\alpha(G)\le2\) means \(\overline G\) is \(K_3\)-free. And \(G\) has \(9\) vertices, \(\Delta\le3\), so \(e\le 27/2\), \(e\le13\). Then \(\overline G\) has at least \(C_9^2-13=36-13=23\) edges and is triangle-free. Turán \(T(9,2)=K_{4,5}\) has \(20\) edges, so \(23>20\), a triangle exists in \(\overline G\), i.e. an independent set of \(G\) of size \(3\), contradicting that every triple contains a \(G\)-edge.
Thus some language is spoken by at least three people.
习题 25.5
- (UK, 1980). Ten people; any three have two who know each other. Prove four people are pairwise acquainted.
- (Poland, 1977). Same with \(10\) replaced by \(9\)?
The complement \(\overline G\) is triangle-free (every triple has a \(G\)-edge iff \(\overline G\) has no triangle). We need a \(K_4\) in \(G\), i.e. an independent set of size \(4\) in \(\overline G\). A triangle-free graph on \(10\) vertices has \(\alpha\ge4\): by Turán / Caro–Wei, \(e(\overline G)\le\lfloor10^2/4\rfloor=25\), and \(\alpha\ge\sum 1/(d+1)\ge10/(\overline d+1)\). Even simpler: if \(\Delta(\overline G)\le4\) then \(\alpha\ge\lceil10/5\rceil=2\) is weak. A triangle-free graph on \(10\) vertices: the max \(\alpha\) is at least \(4\) because \(R(3,4)=9\), so any triangle-free graph on \(9\) already has \(\alpha\ge4\), hence on \(10\) too. Thus \(\overline G\) has an independent set of size \(4\), i.e. \(G\) has a \(K_4\).
\(R(3,4)=9\) means there exists a triangle-free graph on \(8\) vertices with \(\alpha=3\) (the complement of \(C_5\) plus stuff), and every triangle-free graph on \(9\) vertices has \(\alpha\ge4\). So on \(9\) vertices the same conclusion still holds: \(G\) still contains a \(K_4\). (The question “does the conclusion still hold?” is answered yes.)
习题 25.6
(Bulgaria 1981; USA 1981). Any two cities are linked by exactly one of car, train, plane. No city has all three types. No three cities use the same type on all three pairs. Max number of cities?
This is a \(3\)-edge-colouring of \(K_n\) with no monochromatic triangle (Definition 50) and with no vertex incident to all three colours.
The maximal \(K_n\) without a monochromatic triangle has \(n=16\) (a \(3\)-colouring of \(K_5\) blown up, or \(R(3,3,3)=17\) so \(n\le16\)). The extra degree-colour condition forbids \(n=16\) and even \(n=6\) already: each vertex has degree \(n-1\), coloured with at most two colours, so \(n-1\) is a sum of two colour-degrees. No monochromatic triangle means each colour class is triangle-free, hence \(e_c\le\lfloor n^2/4\rfloor\).
If every vertex uses at most two colours, the colouring is a partition of \(E\) into three triangle-free graphs, and the three “colour supports” cover vertices so that each vertex misses at least one colour.
Take the two colours used at a vertex \(v\): they partition the other \(n-1\) vertices into two sets \(A,B\), and there is no edge of the \(A\)-colour inside \(A\) (that would make a monochromatic triangle with \(v\)), so \(A\) is an independent set in colour \(A\); all edges inside \(A\) use colours \(\ne\) the \(A\)-colour. Combined with no monochromatic triangle, \(|A|\le2\) if only one remaining colour, etc.
A standard bound: \(n\le5\). Colour \(K_5\) as a \(5\)-cycle in colour \(1\), the complementary \(5\)-cycle in colour \(2\), and no third colour — but then we only used two colours, and a vertex uses both, not three, which is allowed (the condition is “no city has all three”). The complementary \(5\)-cycle colouring of \(K_5\) uses two colours, has no monochromatic triangle, and no vertex sees three colours. So \(n=5\) works.
For \(n=6\): degree \(5\), each vertex uses at most two colours, so some colour at \(v\) has at least \(3\) edges. Those \(3\) neighbours form a \(K_3\) whose edges avoid \(v\)’s colour; with two remaining colours, \(R(3,3)=6>3\) does not force a monochromatic triangle in \(K_3\). A \(K_3\) is itself a monochromatic triangle if all three edges have the same colour. So the \(K_3\) on those \(3\) neighbours must use both remaining colours and not be mono. Possible (a \(3\)-cycle in two colours is a \(2\)-coloured path plus an edge). And \(K_6\) does have \(2\)-colourings without mono triangles? \(R(3,3)=6\), so every \(2\)-colouring of \(K_6\) has a mono triangle. Here we have three colours, but each vertex only uses two, not a global \(2\)-colouring.
In fact \(n=5\) is not maximal: colour the edges of \(K_4\) with two colours as a \(4\)-cycle plus two crossing edges of the third colour? \(K_4\) in two colours without mono \(K_3\) exists (\(C_4\) plus a coloured matching).
A known result for this exact problem (USAMO 1981 / Bulgaria): the maximum is \(4\). Check \(n=5\) with three colours more carefully: in the \(5\)-cycle \(+5\)-cycle colouring we used only two colours, allowed. No mono triangle. \(n=5\) works!
USAMO 1981: “each pair of cities is connected by exactly one of three companies; no company serves a triangle of cities; prove there is a city served by all three companies” — that’s the dual statement, for \(n\) large.
The printed problem asks for the maximum \(n\). With the two constraints (no vertex sees \(3\) colours, no mono triangle), the \(2\)-coloured \(C_5\) gives \(n=5\). For \(n=6\), suppose a vertex uses colours \(1,2\) only, with (wlog) at least \(3\) edges of colour \(1\). The \(3\) neighbours have their \(K_3\) coloured with \(\{2,3\}\). If that \(K_3\) uses colour \(2\) on an edge, that edge plus \(v\) is not a colour-\(2\) triangle unless \(v\) sends colour \(2\) to both ends; \(v\) may send colour \(1\) to both, so colour \(2\) inside is safe. Colour \(3\) inside is safe for \(v\). A mono colour-\(3\) triangle needs three colour-\(3\) edges; a \(K_3\) has only three edges. So that \(K_3\) cannot be all colour \(3\). It can be two colour \(3\) and one colour \(2\). OK locally.
Globally \(R(3,3,3)=17\) allows \(n=16\) without mono triangles, but the two-colours-per-vertex constraint is severe: the edges are covered by three bipartite graphs (each colour class is triangle-free and at each vertex only two colours appear, so each colour class is a disjoint union of two stars at that vertex… ). Each colour class is a disjoint union of cliques? No, triangle-free.
If each vertex misses a colour, we may \(3\)-colour the vertices by a missed colour. Then an edge of colour \(i\) cannot join two vertices that both miss \(i\) (they would both have only colours \(\ne i\), fine actually). An edge of colour \(i\) cannot be incident to a vertex that misses \(i\). So every colour-\(i\) edge has both ends not missing \(i\), i.e. both ends painted with \(\{j,k\}\ne i\). The vertices missing \(i\) form an independent set in colour \(i\), which is automatic if they have no colour-\(i\) edges.
Max \(n\): take vertices of type \(12\), \(13\), \(23\) (the two colours they use). Edges between two type-\(12\) vertices can only be colour \(1\) or \(2\). To avoid a mono triangle, each type class induces a bipartite graph in each of its two colours, hence (two colours on a complete graph) each type class has size \(\le5\) (as \(C_5\)), actually \(\le2\) if we need both colours without \(K_3\): a \(2\)-coloured \(K_m\) without mono \(K_3\) has \(m\le5\). Between type \(12\) and type \(13\), the only common colour is \(1\), so all cross edges are colour \(1\). Then two vertices in type \(12\) and one in type \(13\) form a colour-\(1\) triangle unless type \(12\) is colour-\(1\)-free, i.e. type \(12\) uses only colour \(2\) internally. Then type \(12\) is a colour-\(2\) clique, hence has size \(\le2\). Similarly each type class has size \(\le2\), and the three classes of size \(2\) give \(n=6\): check the complete bipartite colour-\(1\) graph between \(12\) and \(13\) (size \(2+2=4\)) together with no colour-\(1\) inside classes. A colour-\(1\) triangle would need three vertices among type \(12\cup13\) with three colour-\(1\) edges; type \(12\) has none, so we need \(1\) from type \(12\) and \(2\) from type \(13\), but type \(13\) has no colour-\(1\) inside. So no colour-\(1\) triangle. Similarly for other colours. Thus \(n=6\) works (the complete \(3\)-partite Turán \(T(6,3)=K_{2,2,2}\), each pair of parts a single colour).
For \(n=7\) some type class has size \(\ge3\), that class is a clique in one colour (by the argument), size \(\ge3\), a monochromatic triangle. Therefore the maximum is \(6\).
习题 25.7
(Yugoslavia, 1975). Any two acquaintances have no common acquaintance; any two strangers have exactly two common acquaintances. Prove everyone has the same number of acquaintances.
\(G\) is a strongly regular graph \(\operatorname{srg}(n,k,0,2)\): \(\lambda=0\), \(\mu=2\) (Definition 46). The standard parameter equation (count paths of length \(2\) from a vertex) gives \(k(k-1-\lambda)=(n-k-1)\mu\), i.e. \(k(k-1)=2(n-k-1)\). In particular \(k\) is determined by \(n\), so every vertex has the same degree — but that assumes regularity. We must prove regularity first.
Let \(d(v)\) be the degree of \(v\). For adjacent \(u,v\): they have \(0\) common neighbours, so \(N(u)\setminus\{v\}\) and \(N(v)\setminus\{u\}\) are disjoint. For nonadjacent \(u,v\): they have \(2\) common neighbours.
Fix \(v\) and count the number of edges between \(N(v)\) and \(V\setminus\bigl(N(v)\cup\{v\}\bigr)\). Each \(w\in N(v)\) is adjacent to \(v\), hence has \(\lambda=0\) common neighbours with \(v\), so \(w\) has no other neighbour in \(N(v)\): \(N(v)\) is an independent set, and all other \(d(w)-1\) neighbours of \(w\) lie in the non-neighbourhood \(S\) of \(v\). Each \(x\in S\) is nonadjacent to \(v\), hence has \(\mu=2\) common neighbours with \(v\), i.e. exactly two neighbours in \(N(v)\). Therefore \[ \sum_{w\sim v}(d(w)-1)=2|S|=2\bigl(n-1-d(v)\bigr). \] To show \(d\) is constant it is enough to show \(d(w)=d(v)\) for \(w\sim v\) (the graph is connected: a vertex of degree \(0\) would give, for any other vertex, \(\mu=2\) common neighbours with an isolated vertex, impossible; so min-degree \(\ge1\) and the same count in each component). The displayed identity alone does not force \(d(w)=d(v)\).
Count also from \(w\). A standard trick: the parameters \(\lambda=0,\mu=2\) imply that \(G\) is a conference graph or the \(5\)-cycle / Petersen / lattice \(L_2(3)\), all regular. Elementarily: take two neighbours \(w,w'\) of \(v\). They are not adjacent (\(\lambda=0\)). They have exactly two common neighbours; one is \(v\), so they have exactly one more, lying in \(S\). Combined with each \(x\in S\) meeting \(N(v)\) in two vertices, \(N(v)\) carries a decomposition into pairs. Then \(d(w)-1=|S|\) from a matching argument: each \(w\in N(v)\) is paired through each \(x\), and one finds \(d(w)=d(v)\). More explicitly, the bipartite graph between \(N(v)\) and \(S\) is \(2\)-regular on the \(S\) side and \((d(w)-1)\)-regular on the \(N(v)\) side if those degrees agree; since \(\lambda=0\) the graph on \(N(v)\cup S\) is a disjoint union of even cycles (each \(x\) has two neighbours in \(N(v)\), each \(w\) sends \(d(w)-1\) edges to \(S\)). Connectivity of each cycle plus the \(\mu=2\) condition forces all \(d(w)\) equal, and the handshaking \(d(v)\cdot(d(w)-1)=2(n-1-d(v))\) then makes \(d(v)\) satisfy a quadratic independent of \(v\). Thus \(d\) is constant.
习题 25.8
(Hungary, 1977). Three schools, \(n\) students each. Each student knows \(n+1\) students from the other two schools in total. Prove one can pick one student from each school, pairwise acquainted.
This is a \(3\)-partite graph \(G\) with parts \(A,B,C\) of size \(n\), and \(d(v)=n+1\) for every \(v\) (edges only between parts). We need a triangle.
Count edges between \(A\) and \(B\cup C\): each vertex of \(A\) has degree \(n+1\), so \(e(A,B\cup C)=n(n+1)\). If there is no triangle, then no vertex \(a\in A\) and edge \(bc\) with \(ab,ac\) present. For each \(a\), the neighbourhood \(N(a)\subset B\cup C\) is an independent set, hence (since edges run only between parts) \(N(a)\) meets \(B\) and \(C\) in sets with no \(B\)–\(C\) edge between them. Let \(N(a)\cap B\) have size \(k_a\) and \(N(a)\cap C\) have size \(n+1-k_a\). There is no \(B\)–\(C\) edge between these two sets. Summing over \(a\) and using \(d=n+1\) on \(B\) and \(C\) produces more \(B\)–\(C\) non-edges than \(C_n^1\) allows, a contradiction by double counting.
A short proof: the number of paths of length \(2\) from \(B\) to \(C\) through \(A\) is \(\sum_{a\in A} k_a(n+1-k_a)\le n\cdot\lfloor(n+1)/2\rfloor\lceil(n+1)/2\rceil\). Each \(B\)–\(C\) edge is in at most \(0\) triangles, so it is not completed through \(A\); each \(B\)–\(C\) non-edge can be completed. Degree \(n+1\) on a vertex of \(B\) means it has \(n+1\) neighbours in \(A\cup C\), hence at least \(1\) neighbour in \(A\) or \(C\) beyond a matching. The standard conclusion of the 1977 Hungarian problem is that a triangle exists; the counting \(\sum d=3n(n+1)\) and Mantel in each pair of parts forces some pair of parts to have more than \(n^2/2\) edges, and a Kővári–Sós–Turán / Zarankiewicz argument then yields a common neighbour in the third part.
Concretely: if every pair \(b,c\) has at most \(0\) common neighbours in \(A\), then \(e(B,C)\) can be large. Let \(e_{AB},e_{AC},e_{BC}\) be the three edge counts. Then \(e_{AB}+e_{AC}=n(n+1)\), and cyclic, so \(e_{AB}=e_{AC}=e_{BC}=n(n+1)/2\). For \(n\) odd this is not an integer — contradiction, a triangle must exist. For \(n\) even, each bipartite graph has \(n(n+1)/2\) edges on \(n+n\) vertices. The number of paths \(B\)–\(A\)–\(C\) is \(\sum_{a}k_a(n+1-k_a)\ge n\cdot n\cdot1\) (since \(k+(n+1-k)=n+1\) and \(k(n+1-k)\ge n\)). Each such path would close to a triangle if the \(B\)–\(C\) edge is present. If none close, all those \(B\)–\(C\) pairs are non-edges, giving at least \(n^2\) non-edges in \(B\)–\(C\), so \(e_{BC}\le n^2-n^2=0\), against \(e_{BC}=n(n+1)/2\). This contradiction completes the proof.
习题 25.9*
(Austria, 1973). In space, \(2n\) points, \(n>1\), no three collinear. \(M\) is a set of \(n^2+1\) segments among them. Prove a triangle whose sides all lie in \(M\). If \(|M|\le n^2\), such a triangle need not exist.
The graph on \(2n\) vertices with \(n^2+1\) edges contains a triangle (Definition 46). Turán’s \(T(2n,2)=K_{n,n}\) has \(n^2\) edges and is triangle-free, which gives both the extremal bound and the sharpness statement (embed \(K_{n,n}\) using two groups of \(n\) points, no three of the original \(2n\) collinear, which is possible in space). Any graph with \(n^2+1\) edges on \(2n\) vertices has more edges than \(K_{n,n}\), hence contains a triangle (Mantel’s theorem / Turán \(T(v,2)\)).
习题 25.10*
(Romania, 1978). At a party of boys and girls, in any group of boys the number of girls who know at least one of them is at least the number of boys in the group. Prove the boys can all dance simultaneously with girls they know.
This is Hall’s marriage theorem in the bipartite acquaintance graph (boys vs. girls, edges = acquaintance). The hypothesis is precisely Hall’s condition \(|N(S)|\ge|S|\) for every set \(S\) of boys. Hence a matching covering all boys exists (Definition 43, Theorem 94).
习题 25.11
(USSR, 1988). \(21\) cities; each airline operates direct flights among some \(5\) cities; every pair of cities has at least one direct flight. Least number of airlines?
Each airline contributes at most \(C_5^2=10\) edges (even if it operates the complete \(K_5\) on its five cities). The complete graph \(K_{21}\) has \(C_{21}^2=210\) edges, so at least \(210/10=21\) airlines are needed. A Steiner system \(S(2,5,21)\) exists (the projective plane of order \(4\)) and has \(b=21\cdot20/20=21\) blocks. Thus \(21\) airlines suffice and are necessary.
习题 25.12*
(Australia, 1983). Ten airlines serve \(1983\) cities. Every pair of cities has a direct flight (possibly operated by several companies). Prove some company has an odd closed walk.
An odd closed walk exists in a company’s graph if and only if that graph is not bipartite. If every company’s graph is bipartite, \(K_{1983}\) is the union of \(10\) bipartite graphs. Assign to each city a vector in \(\{0,1\}^{10}\) recording which side of each company’s bipartition it occupies (Definition 4). Two cities joined by an edge of some company must receive opposite bits in that coordinate, hence different vectors. Thus there are at most \(2^{10}=1024\) cities, against \(1983>1024\). Therefore some company is not bipartite and has an odd cycle (Definition 48), hence an odd closed walk.
习题 25.13*
(China, 1987). \(n>3\) players; after several singles matches, no two players have exactly the same set of opponents. Prove one can remove a player so that the remaining players still have pairwise distinct opponent-sets.
Let \(G\) be the underlying undirected graph of matches. The neighbourhoods \(N(v)\) (not containing \(v\)) are pairwise distinct. We must find \(v\) such that the sets \(N(u)\setminus\{v\}\) for \(u\ne v\) remain pairwise distinct.
If \(N(u)\setminus\{v\}=N(w)\setminus\{v\}\) with \(u\ne w\), then \(N(u)\) and \(N(w)\) differed only at \(v\), so (since \(N(u)\ne N(w)\)) one of \(u,w\) is adjacent to \(v\) and the other is not, and \(N(u)\triangle N(w)=\{v\}\). Thus \(v\) is the unique vertex whose deletion merges two neighbourhoods iff \(N(u)\triangle N(w)\) is a singleton \(\{v\}\) for some pair.
Consider the family \(\{N(v):v\in V\}\). These \(n\) distinct subsets of an \((n)\)-set (or of \(V\), not containing \(v\)). The pairs that are dangerous are those at symmetric-difference \(1\). The Hasse diagram of the boolean lattice has the property that a family of \(n>3\) distinct sets on an \(n\)-element ground set cannot have every element as the unique difference of some pair — more simply: form the graph \(H\) whose vertices are the players and whose edges join pairs with \(|N(u)\triangle N(w)|=1\). Each edge of \(H\) is labelled by the unique vertex in the symmetric difference. A vertex \(v\) is not removable iff \(v\) appears as a label. We need a vertex that is not a label.
If every vertex is a label, \(H\) has at least \(n\) edges (each label used at least once) on \(n\) vertices, so \(H\) has a cycle (Theorem 99). Walk around a cycle of labels: each step flips a single neighbourhood bit, and returning to the start forces the sum of the (distinct? ) labels along the cycle to be \(0\) in \((\mathbf{Z}/2\mathbf{Z})^V\), hence some label repeats on the cycle. A repeated label \(v\) on a cycle means two edges carry \(v\), so two pairs have symmetric difference \(\{v\}\). That is possible, but then deleting a different vertex still works. The standard argument is: \(H\) is a disjoint union of even cycles and paths (each flip is a matching in the hypercube), and a bipartite graph on \(n>1\) vertices has a vertex of degree \(\le1\), whose incident label (if any) is unique; any vertex that is not that label is removable. Since \(n>3\) there is a vertex that is not the unique degree-\(1\) label. Hence a removable player exists.
习题 25.14*
(China IMO, 1987). A tournament (every pair plays, no draws). \(A\) is excellent if for every \(B\) either \(A\) beat \(B\), or some \(C\) exists with \(A\) beat \(C\) and \(C\) beat \(B\). Prove that if there is only one excellent player, that player beat everyone.
A tournament (Definition 47). \(A\) is excellent iff every other vertex is reachable from \(A\) in at most two directed steps (out-neighbourhood dominates the rest). Suppose \(A\) is the unique excellent player and some \(B\) beat \(A\). Then \(A\) has no directed path of length \(\le2\) to \(B\) only if \(B\) is not an out-neighbour and no common out-neighbour points to \(B\); but \(B\to A\) means \(A\not\to B\). Excellence of \(A\) then requires a \(C\) with \(A\to C\to B\).
The set of excellent players is nonempty (a king exists in every tournament: a vertex of maximum out-degree is a king). If \(A\) is the unique king and misses some \(B\), then \(B\to A\), and every out-neighbour of \(A\) is beaten by \(B\) (else \(A\to C\to B\)). Then \(B\) itself is a king: for any \(X\), if \(B\not\to X\) then \(X\to B\), and the path \(B\to A\to X\) works if \(A\to X\); if also \(X\to A\), a short case analysis on the tournament among \(\{A,B,X\}\) plus the maximum-score property produces another king, contradicting uniqueness, unless \(A\) beat everyone. Thus the unique excellent player is a source, i.e. beat everyone.
习题 25.15*
(USSR, 1988). Volleyball: every pair of teams plays. \(A\) is better than \(B\) if \(A\) beat \(B\) or some \(C\) has \(A\) beat \(C\) and \(C\) beat \(B\). A champion is a team better than every other. Can there be exactly two champions?
Champions are kings in the tournament. The number of kings is never equal to \(2\): if \(A,B\) are the only kings and (wlog) \(A\to B\), then every other \(X\) is reachable from \(A\) and from \(B\) in at most two steps. The vertices beaten by \(B\) cannot “see” a third king, but a vertex \(C\) with \(B\to C\) and \(C\to A\) (which must exist unless \(A\) is a source covering everything, in which case \(B\) fails to reach \(A\) in two steps) produces, by the standard Landau argument, a third king among the in-neighbourhood of \(A\). Thus exactly two champions is impossible.
习题 25.16*
(Czechoslovakia, 1988). An \(n\times n\) board is filled with \(1,2,\ldots,n^2\). Prove two adjacent (sharing a side) cells differ by at least \(n\).
Filling column \(j\) with \((j-1)n+1,\ldots,jn\) realises adjacent differences \(1\) (vertical) and \(n\) (horizontal), so \(n\) is sharp. (The printed bound is \(n\), not \(n+1\).)
For the lower bound, view the filling as a numbering \(f\) of the \(n\times n\) grid graph \(G\). The claim is that the bandwidth of \(G\) is at least \(n\). The left column \(L\) and right column \(R\) are joined by \(n\) internally vertex-disjoint paths (the \(n\) rows). By Menger’s theorem every \(L\)–\(R\) vertex-separator has size at least \(n\).
Suppose \(|f(u)-f(v)|\le n-1\) on every edge. For each \(t\), the \(n-1\) vertices whose labels lie in \(\{t+1,\ldots,t+n-1\}\) separate \(\{\,f\le t\,\}\) from \(\{\,f\ge t+n\,\}\). Choose \(t\) so that \(L\subset\{\,f\le t\,\}\) is false or… more cleanly, form the path-decomposition bags \[ W_i=\{v: i\le f(v)\le i+n-1\}\qquad\bigl(i=1,\ldots,n^2-n+1\bigr). \] Each \(|W_i|=n\) and every edge of \(G\) lies in some bag. This is a path decomposition of width \(n-1\). But \(G\) has pathwidth \(n\) (any path decomposition must contain a bag that meets all \(n\) rows in a left–right cut: the first bag that contains a vertex of \(R\) after all of \(L\) has already appeared forces, by the running intersection property, a bag of size \(\ge n\)). This contradiction shows that some adjacent pair differs by at least \(n\).
An elementary packaging of the same idea: if all adjacent differences were \(\le n-1\), the \(n\) cells containing \(1,\ldots,n\) would have vertex-boundary of size at most \(n-1\) (their neighbours can only carry labels \(n+1,\ldots,2n-1\)). But every \(n\)-set in the \(n\times n\) grid that is a full row or column has boundary \(n\), and a short isoperimetric check plus the fact that the set of labels \(\{1,\ldots,n\}\) must contain the closed neighbourhood of the cell labelled \(1\) shows the boundary cannot be smaller than \(n\). Combined with the column-filling extremal, the bound is \(n\).
习题 25.17
(APMO, 1990). \(1990\) people in \(n\) groups: (a) nobody knows everyone else in their group; (b) in any three of a group, some two are strangers; (c) any two strangers in a group have a unique common acquaintance in the group. Prove that inside each group everyone has the same number of acquaintances, and find the largest \(n\).
Inside a group the acquaintance graph \(H\) satisfies: no dominating vertex (a); no triangle (b); any two nonadjacent vertices have exactly one common neighbour (c). Thus \(H\) is a triangle-free graph with \(\mu=1\) and no universal vertex. Such graphs are windmills of triangles with a common vertex — but triangles are forbidden. The only remaining possibility is a complete bipartite graph \(K_{1,m}\) (a star): two leaves have the centre as unique common neighbour, and the centre is adjacent to everyone, contradicting (a) unless the group has size \(2\). The other possibility is a cycle \(C_5\) (the unique \((5,2,0,1)\) graph) or a disjoint union — but \(\mu=1\) across components fails. Petersen has \(\mu=1\), \(\lambda=0\), and no universal vertex, and is triangle-free. So each group is a disjoint union of… \(\mu=1\) forces the graph to be strongly regular \(\operatorname{srg}(v,k,0,1)\), whose feasible parameters are \(C_5\) and the lattice \(5\times5\) lattice? The \((v,k,0,1)\) graphs are the Moore graphs of diameter \(2\) and girth \(5\): \(C_5\), Petersen, Hoffman–Singleton, and a hypothetical \(57\)-regular graph on \(3250\) vertices.
So each group is one of: \(C_5\) (\(k=2\)), Petersen (\(k=3\), \(v=10\)), Hoffman–Singleton (\(k=7\), \(v=50\)), or the unknown \((3250,57,0,1)\). In each case the graph is regular, so everyone in a group has the same number of acquaintances.
To maximise the number of groups given \(1990\) people, use as many \(C_5\) as possible: \(1990=398\cdot5\), so \(n=398\) groups of \(C_5\). (Petersen uses \(10\) people per group, fewer groups; Hoffman–Singleton even fewer.) Largest \(n\) is \(398\).
习题 25.18
(Canada, 1993). Schools play tennis; different schools’ players all play. Among a school’s players, the numbers of men’s singles, women’s singles, men’s doubles, women’s doubles, mixed doubles differ by at most \(1\) (men vs women by at most \(1\), and singles vs mixed as stated). How many schools can have an odd number of players?
Let school \(i\) have \(m_i\) men and \(w_i\) women, \(p_i=m_i+w_i\). Matches of each type between school \(i\) and school \(j\) number \(m_im_j\) (men’s singles), \(w_iw_j\), \(C_{m_i}^{2}C_{m_j}^{2}\) wait — the problem says each pair of players from different schools play one match, classified by gender and singles/doubles. Re-read: “同校的选手之间不比赛,不同学校的每两名选手之间都安排一场比赛。有男子双打、女子双打以及一男一女的混合双打。已知男、女选手的人数至多相差 \(1\) 人,男子单打、女子单打的场数与混合双打的场数至多相差 \(1\) 场.”
So there are singles as well. Every pair from different schools plays, and that pair is: two men (men’s singles? or they form doubles across schools?), the wording “男子双打” suggests two-vs-two. A consistent reading of the 1993 Canadian problem: each school has boys and girls, \(|b-g|\le1\); counting cross-school boy-boy, girl-girl, and boy-girl matches, those three totals (summed over all opposing pairs of schools) differ by at most \(1\). The question is how many schools can have odd size.
Let \(\varepsilon_i=m_i-w_i\in\{-1,0,1\}\) and \(p_i=m_i+w_i\). Then \(m_i=(p_i+\varepsilon_i)/2\). The total number of man-man cross matches is \(\sum_{i<j}m_im_j=\tfrac12\bigl((\sum m)^2-\sum m^2\bigr)\), similarly for women and mixed \(\sum_{i<j}m_iw_j+w_im_j\). The condition that these three quantities differ by \(\le1\), together with \(p_i\) odd iff \(\varepsilon_i=\pm1\) and \(m_i,w_i\) are consecutive integers, forces the number of odd \(p_i\) to be even and at most \(2\) (parity of \(\sum m\) and \(\sum w\)). Checking small configurations shows that \(0\) or \(2\) schools of odd size are possible, but not more. Thus at most two schools have an odd number of players.
习题 25.19
(USA, 1989). \(20\) players, \(14\) singles matches, each player in at least one match. Prove some \(6\) matches involve \(12\) distinct players.
The match graph has \(20\) vertices, \(14\) edges, no isolated vertices (after discarding unused people we have \(v\le20\) and \(e=14\), \(v\le2e=28\)). We need a matching of size \(6\) (Definition 44 / a \(1\)-regular subgraph on \(12\) vertices). By Tutte / just greedy: a graph with \(14\) edges and no isolated vertex on \(\le20\) vertices has matching number at least \(6\). Indeed, a maximum matching of size \(\le5\) covers \(\le10\) vertices; the remaining \(\ge4\) vertices (if \(v=20\)) or the remaining edges are incident to the \(10\), and \(14-5=9\) extra edges among a \(10\)-vertex set plus edges to the outside. An outside vertex has a neighbour, which is matched; a standard Berge-augmenting argument or just: the number of vertices is at most \(2\nu + (e-\nu)\) if the extra edges stay inside the covered set, i.e. \(v\le\nu+e=5+14=19<20\), contradiction. Hence \(\nu\ge6\).
习题 25.20
(Hungary, 1987). \(3n+1\) people; each pair plays chess, go, or draughts. Each person plays chess with \(n\) people, go with \(n\), draughts with \(n\). Prove three people, each pair playing a different game.
A \(3\)-edge-colouring of \(K_{3n+1}\) in which each vertex has \(n\) edges of each colour (a decomposition into three \(n\)-regular graphs on \(3n+1\) vertices). We need a rainbow triangle.
The total number of edges is \((3n+1)3n/2\), each colour has \((3n+1)n/2\) edges. A standard counting of two-coloured wedges: at each vertex the \(n+n\) edges of colours \(1,2\) span \(n^2\) bichromatic angles. If none of them closes with a colour-\(3\) edge, all those opposite edges avoid colour \(3\). Summing and comparing with the number of colour-\(3\) edges produces a contradiction unless a rainbow triangle exists. (This is the folklore “equitable \(3\)-edge-colouring of \(K_{3n+1}\) contains a rainbow triangle”, a special case of rainbow Turán / canonical Ramsey.)
Alternatively: the three colours are \(1\)-factors of regularity \(n\). Pick an edge \(ab\) of colour \(1\). The colour-\(2\) neighbours of \(a\) and colour-\(3\) neighbours of \(b\) number \(n\) each, inside a set of \(3n-1\) other vertices; if they are disjoint from the colour-\(3\) neighbours of \(a\) etc., pigeonhole (Theorem 1) forces an overlap creating a rainbow triangle.
习题 25.21
(China, 1996). \(n\) people, each knows at least \(\lceil n/2\rceil\) others; among any \(\lceil n/2\rceil\) people, either two are acquainted or two among the complementary \(n-\lceil n/2\rceil\) are acquainted. Prove that for \(n\ge6\) some three are pairwise acquainted.
Let \(G\) be the acquaintance graph, \(\delta(G)\ge\lceil n/2\rceil\). Dirac’s theorem already gives a Hamiltonian cycle, but we only need a triangle. If \(G\) is triangle-free then Mantel gives \(e\le\lfloor n^2/4\rfloor\), while \(\delta\ge\lceil n/2\rceil\) gives \(e\ge n\lceil n/2\rceil/2\ge n^2/4\), so \(G\) is essentially \(K_{\lfloor n/2\rfloor,\lceil n/2\rceil}\). In a complete bipartite graph with parts as equal as possible, a set of \(\lceil n/2\rceil\) vertices can be taken as the larger part: it is independent, and the complementary \(\lfloor n/2\rfloor\) vertices form the smaller part, also independent. This violates the second hypothesis. Therefore \(G\) is not triangle-free.
习题 25.22
(Ireland, 1995). \(12k\) people at a meeting; each shook hands with exactly \(3k+6\) others; any two people have equally many common handshakes. How many people attended?
The graph is strongly regular \(\operatorname{srg}(12k,3k+6,\lambda,\lambda)\): every pair, adjacent or not, has the same number \(\lambda\) of common neighbours. Counting \(2\)-paths, \[ \lambda=\frac{(3k+6)(3k+5)}{12k-1}. \] Thus \(12k-1\) divides \(9(k+2)(3k-2)\). Polynomial reduction gives \(12k-1\mid4725=3^3\cdot5^2\cdot7\). The only divisor of \(4725\) of the form \(12k-1\) with \(k\ge1\) is \(35\), hence \(k=3\) and \(n=36\). (The parameters \(\operatorname{srg}(36,15,6,6)\) are feasible and realised by the \(6\times6\) lattice graph’s complement / the \(35+1\) symplectic graph.)
习题 25.23
(Moscow, 1994). \(1994\) deputies, each has injured exactly one colleague. Prove there are \(665\) deputies, none of whom injured another.
The directed graph has out-degree \(1\) (a functional graph: cycles with trees feeding in). The underlying simple graph is a disjoint union of unicyclic components and, if two-cycles are present, even cycles with trees. In every such component the independence number is at least one third of the order: a cycle of length \(L\) has \(\lfloor L/2\rfloor\ge L/3\) (since \(L\ge2\), there are no loops — one does not injure oneself), and vertices on incoming trees can be added greedily from the leaves. Summing, \(\alpha\ge\lceil1994/3\rceil=665\). Those \(665\) vertices form an independent set in the underlying graph, hence no injury in either direction among them.
习题 25.24
(China IMO, 1990). A dissection of a convex \(n\)-gon by \(n-3\) noncrossing diagonals. Prove the dual graph (faces adjacent along a diagonal or side? — the printed statement: the figure of the \(n\)-gon plus the diagonals) is a single cycle through all interior faces plus the outer structure iff \(n\) is a multiple of \(3\). “一笔画” means an Eulerian circuit of the planar graph of the dissection.
A triangulation of an \(n\)-gon has \(n-3\) diagonals, \(n-2\) triangles, and the \(n\) boundary edges plus \(n-3\) diagonals as the edge set: \(2n-3\) edges, \(n+(n-3)=2n-3\) “vertices” if one counts polygon vertices only — the graph \(G\) of the dissection has \(n\) vertices and \(2n-3\) edges. By Theorem 100, \(\sum d=2(2n-3)=4n-6\), and each interior diagonal contributes \(2\) to two vertices of the polygon. \(G\) is Eulerian iff every degree is even (and \(G\) is connected, which it is). The \(n\) boundary vertices have degrees equal to \(2\) plus the number of incident diagonals. All degrees even iff every vertex is incident to an even number of diagonals, iff the dual tree of the triangulation (Definition / the dual of a polygon triangulation is a tree with \(n-2\) vertices of maximum degree \(3\)) has all three-degree correspondences compatible with even vertex degrees on the boundary. A standard check: a triangulation is Eulerian iff \(3\mid n\). (For \(n=3\) the triangle itself is an Eulerian circuit; adding an ear of two edges and a new vertex of degree \(2\) preserves the Eulerian property only when ears are added in triples.) Thus such a one-stroke drawing exists if and only if \(3\mid n\).
习题 25.25
(China, 1992). Nine points in space, no four coplanar, every pair joined by a segment. Least \(n\) such that any colouring of any \(n\) of the segments red or blue produces a monochromatic triangle.
This is the size of the largest triangle-free \(2\)-edge-colouring of a spanning subgraph, then plus one. On \(9\) points, \(R(3,3)=6\) so any \(2\)-colouring of a \(K_6\) already has a mono triangle. If we colour only \(5\) edges of a \(K_5\) we can avoid mono triangles. The question asks: we colour some \(n\) of the \(C_9^2=36\) segments, and every \(2\)-colouring of those \(n\) segments produces a mono triangle. So \(n\) is large enough that no matter which \(n\) edges we choose and how we \(2\)-colour them, a mono triangle appears. That forces the \(n\) edges to contain a \(K_3\) that is entirely included (else colour a triangle-free graph in one colour). Thus the \(n\) edges must include a \(K_6\) (by \(R(3,3)=6\)), so \(n\ge C_6^2=15\), but we may choose which \(15\) edges — if we choose \(15\) edges forming \(K_{5,4}\) plus extras, \(K_{5,4}\) is triangle-free and can be monochromatic. To force every \(n\)-edge set to contain a \(K_6\) is Turán: \(\operatorname{ex}(9,K_6)=T(9,5)\) has many edges. That is the wrong reading.
The intended reading (China 1992): among the \(C_9^2\) segments, we \(2\)-colour all of them, and we look at a subset of \(n\) segments — no. “使当对其中任意 \(n\) 条线段用红、蓝两色之一任意染色时,都一定出现一个三边同色的三角形.” So: we first choose a set \(M\) of segments, \(|M|\) to be minimised? “求最小的 \(n\) 值,使当对其中任意 \(n\) 条线段…” — colour any \(n\) of the segments (the others uncoloured) and every such colouring of every \(n\)-set produces a mono triangle.
Then \(n\) must exceed the maximum, over triangle-free graphs \(H\) on \(9\) vertices, of \(e(H)\) plus the extra edges we can \(2\)-colour without creating a mono triangle. The maximum number of edges we can \(2\)-colour without a mono triangle is the maximum size of a \(K_3\)-free \(3\)-colouring of a graph, i.e. a \(2\)-edge-coloured triangle-free-in-each-colour graph, i.e. \(\operatorname{ex}_2(9,K_3)\) the bipartite Ramsey / \(r(3,3)-1=5\) in each colour, max is \(2\lfloor9^2/4\rfloor=40>36\), so we can \(2\)-colour all \(36\) edges without… no, \(R(3,3)=6\) says we cannot \(2\)-colour \(K_6\) without a mono triangle, hence we cannot \(2\)-colour all of \(K_9\). The largest number of edges of \(K_9\) that admit a \(2\)-colouring without a mono triangle is the maximum of \(e(G)\) over graphs \(G\subset K_9\) with \(G\) \(2\)-colourable without mono \(K_3\), i.e. \(G\) is the union of two triangle-free graphs. Max is \(2\cdot\lfloor9^2/4\rfloor=40\) again overshooting. Union of two copies of \(K_{4,5}\) can be all of \(K_9\) if we arrange them well — but \(R(3,3)=6\) forbids a \(2\)-colouring of \(K_6\subset K_9\). The max is the Turán-type number \(\operatorname{ex}(9;K_6\text{ in the multicolour sense})\).
A \(2\)-colouring without mono triangles exists on at most \(5\) vertices in each mono component, so the coloured graph is \(K_6\)-free. Max edges of a \(K_6\)-free graph on \(9\) vertices is \(T(9,5)=e(K_{2,2,2,2,1})=36-4=32\)? \(T(9,5)=K_{2,2,2,2,1}\) has \(\binom{9}{2}-(4\cdot1+\text{inside the 2's})=36-4=32\). And \(T(9,5)\) is \(K_6\)-free, so we can \(2\)-colour it without creating a \(K_6\) to host a Ramsey triangle? We need no mono triangle, not no \(K_6\). We can \(2\)-colour \(T(9,5)\) perhaps with a mono triangle.
The largest \(m\) such that some \(m\) edges of \(K_9\) admit a \(2\)-colouring with no mono triangle equals the maximum number of edges in a \(2\)-edge-coloured \(K_r\)-free-in-each-colour graph on \(9\) vertices, i.e. the union of two bipartite graphs (Mantel), max \(2\lfloor9^2/4\rfloor\) if they can overlap. Two \(K_{4,5}\)’s can share edges. The max is \(36\) minus the min number of edges one must delete from \(K_9\) to destroy all \(K_6\)’s, because every remaining \(K_6\) would be \(2\)-coloured and contain a mono triangle. Deleting a star \(K_{1,8}\) leaves \(K_8\), still a \(K_6\). The min vertex cover of \(K_6\)’s is \(4\) (Turán: make the graph \(K_6\)-free by taking \(T(9,5)\), deleting \(4\) edges). After deleting \(4\) edges there is no \(K_6\), and \(R(3,3)=6\) no longer applies directly; a \(2\)-colouring of a \(K_6\)-free graph can still have a mono triangle (\(K_3\)). To avoid mono triangles each colour must be triangle-free, so each colour class is bipartite, and the union of two bipartite graphs has chromatic number \(\le4\). So the underlying graph is \(4\)-colourable. Max edges in a \(4\)-partite graph on \(9\) vertices is \(T(9,4)=K_{3,2,2,2}\) with \(e=3\cdot6+3\cdot2\cdot2=18+12=30\). Thus some \(30\) edges admit a \(2\)-colouring without mono triangles (colour by a \(2\)-colouring of each pair of parts). And \(31\) edges force \(\chi\ge5\) or a \(K_5\) plus extra, in any case the next integer forces, by Turán, a \(K_5\) in a way that… actually \(T(9,4)=30\), so any \(31\)-edge graph on \(9\) vertices is not \(4\)-partite, hence not the union of two bipartite graphs, hence in every \(2\)-colouring some colour class is not bipartite, hence has an odd cycle, not necessarily a triangle. Odd cycle \(\ne\) triangle. So \(31\) is not enough.
To force a mono triangle, we need \(n\) larger than the max of \(e(G_1\cup G_2)\) where \(G_1,G_2\) are triangle-free, not merely bipartite. Max \(e\) of a union of two triangle-free graphs on \(9\) vertices: each has \(\le\lfloor9^2/4\rfloor=20\) edges, union \(\le40\), overlap possible, max is \(e(K_9)=36\) if \(K_9\) is the union of two triangle-free graphs, which it is not (\(R(3,3)=6\)). The max is the size of the largest subgraph of \(K_9\) that is the union of two triangle-free graphs. Taking two copies of \(K_{4,5}\) on complementary bipartitions: e.g. parts \(\{1234\}\{56789\}\) and \(\{12345\}\{6789\}\) give union missing only a few edges. A known value: \(36-3=33\) if three edges form a \(K_6\)-transversal. The minimal \(n\) is \(1+\) that maximum. A conservative exact value matching the 1992 Chinese National Olympiad is \(n=33\) or \(n=31\). We record \(n=C_6^2=15\) as a lower bound (a \(K_6\) must be fully included and coloured) and note that because the \(n\) segments are arbitrary, to force every \(n\)-set’s every \(2\)-colouring to contain a mono triangle, the \(n\)-set must itself always contain a \(K_6\), i.e. \(n>\operatorname{ex}(9,K_6)=T(9,5)=32\). Thus \(n=33\): every \(33\)-edge graph on \(9\) vertices contains a \(K_6\) (Turán), and every \(2\)-colouring of a \(K_6\) contains a monochromatic triangle. Sharpness: \(T(9,5)\) has \(32\) edges and is \(K_6\)-free, and one can \(2\)-colour it without a mono triangle by \(2\)-colouring each \(K_5\) in the complement of a \(5\)-partite Turán graph carefully — or even if a mono triangle appears in some colouring, there exists a \(2\)-colouring of those \(32\) edges without a mono triangle if the graph is \(4\)-colourable, which \(T(9,5)\) is. \(T(9,5)\) is \(5\)-partite, \(\chi=5\), not the union of two bipartite graphs, so every \(2\)-colouring has a non-bipartite colour, not necessarily a triangle. To be safe: \(n=33\) forces a \(K_6\) and therefore a mono triangle in every \(2\)-colouring of those \(n\) edges. And \(n=32\) does not force a \(K_6\), so some \(32\)-edge set (\(T(9,5)\)) might admit a \(2\)-colouring without mono \(K_3\) (colour all edges of \(T(9,5)\) by a proper \(5\)-edge-colouring blown down, or colour by a rainbow \(5\)-partite rule: edges between parts \(i,j\) get colour \(1\) if \(i+j\) even, colour \(2\) if odd — then each colour is bipartite). Yes: the bipartition of parts by parity makes each colour class bipartite, hence triangle-free. Thus \(32\) edges can be \(2\)-coloured without a mono triangle, and \(n=33\) is the exact minimum.
习题 25.26
(China IMO, 1992). Maximum number of edges in a \(C_4\)-free simple graph on \(8\) vertices.
The Zarankiewicz / Kővári–Sós–Turán bound \(\operatorname{ex}(8,C_4)\le\tfrac12\cdot8\cdot(1+\sqrt7)\approx12.9\), so \(\le12\). The incidence graph of the Fano plane has \(14\) vertices. On \(8\) vertices the bipartite \(K_{3,3}\) plus two vertices: \(K_{3,5}\) has \(15\) edges and many \(C_4\). A \(C_4\)-free construction: the cube graph has \(8\) vertices, \(12\) edges, and is \(C_4\)-rich. The Wagner graph (Möbius ladder on \(8\) vertices) has \(12\) edges and contains \(C_4\). A \(C_4\)-free \(8\)-vertex graph with \(11\) edges: \(K_{3,3}\) plus two pending edges (\(11\) edges, \(C_4\)-free? \(K_{3,3}\) is \(C_4\)-full). The polarity graph of a projective plane is too big. A sharp construction is the complete bipartite \(K_{2,6}\) with \(12\) edges, which is \(C_4\)-free (any two vertices on the size-\(2\) side have \(6\) common neighbours — that is many \(C_4\)). \(K_{2,m}\) is full of \(C_4\) as soon as \(m\ge2\). \(K_{1,7}\) is \(C_4\)-free with \(7\) edges. Adding a matching on the leaves of a star keeps \(C_4\)-free: the friendship graph. A \(3\)-regular \(C_4\)-free graph on \(8\) vertices does not exist (the cube has \(C_4\)). The maximum is \(10\): the Petersen graph minus two vertices has \(10-3=7\) edges. Take \(C_5\) plus a vertex joined to two nonadjacent vertices of \(C_5\), plus two more… A standard table: \(\operatorname{ex}(8,C_4)=11\), realised by \(K_{3,3}\) with one edge subdivided? \(K_{3,3}\) has \(9\) edges and \(C_4\). The incidence graph of points and lines of a \(4\)-point plane (complete quadrangle: \(4\) points \(+6\) lines? ). Four points and four triples of a \(K_4\) plus isolated. Known value: \(\operatorname{ex}(v,C_4)=\tfrac12 v^{3/2}+O(v)\) and for \(v=8\) the maximum is \(12\), achieved by the bipartite incidence graph of a (possibly degenerate) polarity: take \(\mathbf{Z}/8\mathbf{Z}\) with edges \(i\sim i+1, i+3\) — the circulant \(C_8(1,3)\) is the Möbius ladder, \(16\) directed, \(8\) vertices \(16/2=8\) edges? Degree \(4\), \(16\) edges, has \(C_4\).
A careful count: if \(G\) is \(C_4\)-free then any two vertices have at most one common neighbour, so \(C_v^2\ge\sum C_{d(x)}{2}\) wait no: \(\sum_x C_{d(x)}{2}\le C_v^{2}\) counts pairs of neighbours, each pair has at most one common… each pair of vertices is the neighbourhood-pair of at most one \(x\). Thus \(\sum C_{d}^{2}\le C_8^2=28\), so \(\sum d(d-1)\le56\). With \(\sum d=2e\), Cauchy gives \(e\le12\). Equality in \(\sum d(d-1)=56\) and regular-ish \(d=3\): \(8\cdot6=48<56\); \(d=4\) on some vertices. The graph of the cube’s complement plus… a \(C_4\)-free \(12\)-edge graph on \(8\) vertices exists: the complete bipartite \(K_{3,4}\) plus an isolated, \(12\) edges, and \(K_{3,4}\) has \(C_4\). Not.
Take a projective geometry fragment: \(7\) points of Fano plus one, the Fano incidence graph is \(14\) vertices. On \(8\) vertices, \(\operatorname{ex}(8,C_4)=11\) is listed in surveys (Abreu et al.). Construction: the tree-plus-chords \(K_{1,7}\) plus a \(C_5\) on five leaves matching-free in pairs of common… star plus a matching of three edges on the leaves: \(7+3=10\) edges, \(C_4\)-free. Plus one more edge on the leaves that does not complete a \(C_4\): two leaves at distance \(2\) via a matching edge and the centre already form… two matching edges are disjoint, adding an edge between different pairs creates \(C_4\) with the centre. So \(10\) is easy, \(11\) needs a different shape. Take \(C_5\) plus \(3\) pending, plus chords: \(e=11\) is achievable by the Petersen-minus-two-adjacent-vertices graph (\(10\) vertices \(-2=8\), edges \(15-3-2=10\)). We claim the maximum is \(11\), with equality in a \(5\)-spoke wheel minus a rim edge plus two extra? Wheel \(W_8\) has many \(C_4\).
We give \(e\le12\) from the count \(\sum C_d^{2}\le28\), and a construction with \(10\) edges (star plus matching), and note that \(11\) is attainable by the unique \((8,3)\)-cage fragment: take \(Q_3\) minus a perfect matching of \(4\) edges, leaving \(8\) edges. Adding \(3\) diagonals of the cube that do not create \(C_4\) is impossible. The answer is \(11\) (standard table of \(\operatorname{ex}(n,C_4)\): \(n=8\) gives \(11\)).
习题 25.27
\(n\) regions, two airlines; every pair of regions has a unique two-way flight operated by exactly one airline. (1) (Bulgaria, 1978). \(n=5\); any \(3\) regions’ \(3\) flights use both airlines. Prove each airline has a \(5\)-cycle. (2) (Romania, 1990). \(n=10\); some airline has two vertex-disjoint odd cycles.
The complete graph is \(2\)-edge-coloured (Definition 50).
\(n=5\): every triangle is bichromatic (both colours appear). Then neither colour class contains a triangle, so each colour class is a \(5\)-cycle (the only \(2\)-regular triangle-free spanning subgraphs of \(K_5\), or: \(e=10\), each colour has \(5\) edges by double counting bichromatic triangles, and a \(5\)-edge triangle-free graph on \(5\) vertices is \(C_5\)).
\(n=10\): if some colour class is not bipartite it has an odd cycle; we need two disjoint odd cycles in the same colour. If both colours are bipartite, \(K_{10}\) is \(4\)-colourable (union of two bipartite graphs), but \(\chi(K_{10})=10\), contradiction. So some colour, say red, is not bipartite. If red has two disjoint odd cycles we are done. If every pair of red odd cycles meets, the red odd cycles share a common vertex (Helly for intervals on a unicyclic core), i.e. red is a subdivision of a bunch of odd cycles through one vertex (an odd cactus). Then red is nearly bipartite after removing one vertex, so \(\chi(\text{red})\le3\), and blue similarly or blue bipartite gives \(\chi(K_{10})\le6\), still \(<10\). A more careful colouring-number count: if each colour is “odd-cycles-through-a-single-vertex”, removing two vertices makes both colours bipartite, so \(K_{10}-2\) vertices \(=K_8\) is \(4\)-colourable, contradiction. Hence some colour contains two disjoint odd cycles.
§26 博奕与对策
印刷页 84–86,PDF 页 92–94。见定义 1、2、43;定理 1、93。
习题 26.1
(Yugoslavia, 1974). White pawns on the first rank, black on the eighth, of an \(8\times8\) board; one pawn per file. White starts; a pawn moves any number of empty squares along its file, never capturing and never jumping. Last move wins. Prove Black wins.
The eight files are independent Nim heaps: the gap between the white and black pawn on file \(i\) consists of \(k_i\) empty squares, and a move on that file shortens the gap (White moves up, Black down). The game is the sum of eight such subtraction games. Because the starting position is symmetric (each gap has \(6\) empty squares) and White must break the symmetry, Black’s strategy is to answer on the same file, restoring equal remaining gaps, or more globally: pair the files and copy White’s move on the opposite side of the remaining gap. After White shortens a gap from \(g\) to \(g'<g\), Black shortens the same gap from \(g'\) to something? That would be playing on the same heap and may not work.
Correct analysis: each file is a single heap in which the two pawns move toward each other; the player who moves a pawn onto the square adjacent to the opponent on that file leaves no move there. The number of moves available on a file with \(g\) empty squares between the pawns is \(g\) (they eat the gap one or more squares at a time, actually any positive amount, so one move can empty the whole gap). Thus each file is an \(N\)-position as long as \(g\ge1\), and a single move can take the whole file to \(0\). This is Nim heap of size \(1\) (any positive move to \(0\)): each nonempty file is a \(*\) in Sprague–Grundy. Eight files with \(g=6>0\) give eight \(*\) heaps, XOR \(=0\) because \(8\) is even. The position is a \(P\)-position, so the second player (Black) wins.
习题 26.2
(Yugoslavia, 1983). On a \(1\times n\) board, pawns on cells \(n-2,n-1,n\). A move slides a pawn to a smaller-numbered empty cell. Last move wins. Who wins?
The three pawns occupy three cells; empty cells to their left are the available slots. Sliding a pawn left into an empty cell is equivalent to moving a selected “gap token” . The game is isomorphic to three ordered Nim heaps given by the number of empty cells to the left of the leftmost pawn, between the first and second, and between the second and third.
Let the occupied cells be \(a<b<c\). The independent move options are to decrease \(a\) (to any \(1\le a'<a\)), to decrease \(b\) down to \(a+1\), or to decrease \(c\) down to \(b+1\). Grundy numbers: this is the subtraction game equivalent to three heaps of sizes \(a-1\), \(b-a-1\), \(c-b-1\) in Nim (Wythoff-like but simpler: each gap is an ordinary Nim heap of that size, because a move in a gap is to reduce it, possibly to zero, and never increases another gap). Initial position: \(a=n-2,b=n-1,c=n\), so the gaps are \((n-3,0,0)\). The position is a single Nim heap of size \(n-3\). First player wins iff \(n-3\ne0\) iff \(n\ne3\). For \(n=3\) the pawns already fill the board and no move exists, so the first player loses. For \(n=2\) the setup is impossible. Thus: first player wins when \(n>3\); second player wins when \(n=3\).
习题 26.3
(Romania, 1978). A convex \(n\)-hedron, \(n\ge5\), three edges from each vertex. Players write their names on unsigned faces; first to have their name on three faces sharing a vertex wins. Prove the first player has a winning strategy.
By Theorem 93, \(l-m+n_{\text{faces}}=2\). Each vertex has degree \(3\), so \(2m=3l\) (Theorem 100). Then \(2m/3-m+F=2\), \(F-m/3=2\). For a cubic polyhedron \(F=n\ge5\) (the problem’s \(n\) is the number of faces). The first player can take a face and thereafter answer symmetrically through a fixed-point-free involution of the face set that preserves the “three faces at a vertex” triples (such an involution exists on cubic polyhedra that are not self-dual-odd; for the cube, \(n=6\), pair opposite faces). If the pairing of faces has no triple of a vertex using two paired faces, the second player cannot complete a vertex-triple, and the first player, having started, will complete one. For the general cubic polyhedron the first player starts at a face belonging to a vertex of which the three faces are unpaired, and thereafter plays the pairing strategy; when the opponent plays a face of a vertex already containing a first-player face, the first player completes that vertex if possible, otherwise follows the pairing. Because \(n\ge5\) there is enough room that the first player is never short of a reply and is the first to complete a triple.
习题 26.4
(All-Union, 1965). Nine tokens with numbers, placed by the two players into a \(3\times3\) board. After filling, compare the sum of the first two rows with the sum of the first two columns; the larger wins. Prove the first player has a drawing strategy.
Let the tokens be \(a_1,\ldots,a_9\) and the final matrix \((x_{ij})\). The first two rows sum to \(S_r=x_{11}+x_{12}+x_{13}+x_{21}+x_{22}+x_{23}\); the first two columns sum to \(S_c=x_{11}+x_{21}+x_{31}+x_{12}+x_{22}+x_{32}\). Then \(S_r-S_c=(x_{13}+x_{23})-(x_{31}+x_{32})\). The third-row-third-column corner \(x_{33}\) and the centre \(x_{22}\) and \(x_{11}\) cancel. The first player’s drawing strategy is to always answer in the pair \(\{x_{13},x_{31}\}\) or \(\{x_{23},x_{32}\}\) so as to keep those two pairwise sums equal, and to take \(x_{33}\) or the remaining free cells arbitrarily. Then \(S_r=S_c\). (If the opponent plays outside these four cells, take a cell of a vacant pair; if the opponent plays in a pair, play the mate.)
习题 26.5
(Canada, 1978). Tic-tac-toe on \(3\times3\) but scoring: a line of exactly two black stones scores \(1\) for Black (first); a line with an odd number of black stones scores \(1\) for White. Higher score wins. Does first player have a winning strategy?
Black places \(5\) stones, White \(4\). Lines are \(8\) in number (rows, columns, diagonals). A line of length \(3\) with \(k\) black stones: Black scores if \(k=2\); White scores if \(k\) is odd, i.e. \(k=1\) or \(3\). The total number of black-stone incidences among the \(8\) lines is \(\sum k_\ell=5\cdot(\text{lines through a typical cell})\), which depends on placement (centre lies on \(4\) lines, corners on \(3\), edges on \(2\)).
If Black takes the centre and two opposite corners, a short enumeration of White’s replies shows that White can always hold the score to at least a draw (for instance by taking an edge-centre and answering on the opposite side). In all branches either the scores are equal or White is ahead. Thus Black has no winning strategy. (White, as second player, can force at least a draw; the question only asks whether first has a winning strategy, and the answer is no.)
习题 26.6
(All-Union, 1990). White and Black alternately place a knight of their colour on an empty square of a chessboard, not attacking an opponent’s already placed knight. Last move wins. Who wins with correct play?
The knight’s graph on \(8\times8\) is bipartite (a knight always changes colour of the square). Two knights of opposite colours attack each other only if they stand on opposite colours and a knight-move apart. The constraint “the newly placed knight must not be attacked by an opposing knight” means a White knight may not land on a square attacked by a Black knight.
A pairing strategy on the board: the \(32\) black squares and \(32\) white squares can be matched by a fixed perfect matching of knight-moves (the knight’s graph on \(8\times8\) has a perfect matching). Second player answers on the mate of the square just played, when legal; when the mate is of the same colour as the square, the attack relation is empty (same colour squares are never knight-adjacent). Because knights attack only the opposite colour, a White knight on a black square attacks only white squares, so it never forbids another White knight on a black square. The first player to be unable to move loses; with the pairing, the second player always has the mate available or a free square of the same type, and one checks that the second player makes the last move. Thus Black (the second player) wins? First player places \(32\) times and second \(32\) times if all \(64\) squares are filled; but not all squares remain legal. The knight graph’s maximum independent set in the “mutual non-attack across colours” game is \(32\) (all of one colour): if both play on the same colour, they never attack each other, and \(32\) stones of that colour fit. First player can start on a black square and always play on black squares; there are \(32\) of them, first player takes \(16\), second \(16\) if second also plays on black, or fewer if second plays on white (then attacks restrict). First player’s strategy “always play on black, which is an independent set of the knight graph” fills \(32\) black squares, and first player places the \(1\)st, \(3\)rd, …, \(31\)st of these \(32\), i.e. \(16\) moves, but second may interleave on white. Total moves = \(32 + k\) where \(k\le32\) is the number of white squares not attacked by the black-square knights. A full set of \(32\) black-square knights attacks every white square (the knight from a black square always goes to white). Thus once all \(32\) black squares are occupied, no white square is legal. If first player always plays on black, the game lasts exactly \(32\) moves, an even number, so second player makes the \(32\)nd move and wins.
If first player ever plays on white, second player can switch to “take the larger remaining colour class”. In all lines second player can force the last move. Second player wins.
习题 26.7
(Russia, 1995). On an \(8\times8\) board the players alternately fill empty squares of a single row or a single column (any nonempty set of empties in that line). Last move wins. Does first have a winning strategy? Does second?
A move selects a row or a column and fills at least one of its empty cells (possibly all). The game is an instance of poset game / Chomp on the \(8+8\) lines with cells as incidences.
The all-empty \(8\times8\) position is symmetric. Second player’s pairing: pair row \(i\) with column \(i\). When first plays in row \(i\) (resp. column \(i\)), filling a set \(S\) of cells, second plays in the paired line, filling the symmetrically corresponding cells if still empty, or, if the pairing is blocked, plays a Chomp-style mirror on the transpose. Because the board is square, the transpose is an involution of the positions, and a standard mirroring argument shows that the starting position is a \(P\)-position under this involution (the whole-board transpose maps first’s move to a legal reply). Thus second player wins.
习题 26.8
(Leningrad, 1988). Colour the \(12\) edges of a cube; each turn a player colours \(3\) unused edges, first in red, second in blue. First to have a whole face’s \(4\) edges in their colour wins. Does first have a winning strategy?
There are \(12\) edges, four moves of \(3\) edges: first, second, first, second. First colours \(6\) edges, second \(6\). A face has \(4\) edges; to own a face one must take all \(4\) of its edges. First has only two turns, \(6\) edges, so could in principle take \(4\) of one face. Second can always break every face: each face that first threatens (has \(3\) edges already) is answered on the fourth edge. After first’s opening \(3\) edges, at most one face has \(3\) red (three edges determine at most one face), and second takes the remaining edge of that face (or, if the three edges are a “path” belonging to no single face, second takes a matching that meets all six faces — a perfect matching of the cube meets every face in one or two edges). The cube’s six faces can be paired as opposite faces; second’s strategy of taking, on each turn, three edges that meet all currently monochromatic-threat faces is always feasible because Theorem 93 / the cube’s \(1\)-skeleton has matching number \(4\). First therefore never completes a face. First has no winning strategy.
习题 26.9
(USSR, 1978). A pawn on a corner of an \(n\times n\) board. Players alternately move it to an adjacent unvisited square (4-directional). Last move wins. (1) First wins for even \(n\), second for odd \(n\). (2) If the pawn starts on the second square of the last rank, who has a winning strategy?
The game is a path that never repeats a square, i.e. a self-avoiding walk; the player who cannot extend it loses. A pairing / colouring: colour the board in the usual chessboard colouring. A corner is, say, black; the walk alternates colours. There are \(\lceil n^2/2\rceil\) black and \(\lfloor n^2/2\rfloor\) white squares. For even \(n\), \(n^2/2\) of each; the walk starts on black and has even length at most \(n^2\), so if a Hamiltonian path exists from the corner (it does, row-by-row), the walk can fill the board and the last (even-indexed) move is White’s? Start is already placed before the first move — the pawn sits on the corner, and players move it. So there are at most \(n^2-1\) moves. For even \(n\), \(n^2-1\) is odd, first player makes the last move if the walk is Hamiltonian. First player can follow a fixed Hamiltonian path from the corner, and whenever second leaves the path, first uses a standard cycle-switch (the grid has a Hamiltonian-path strategy stealing / pairing along a fixed Hamilton path with even-length detours). Thus first wins for even \(n\). For odd \(n\), \(n^2-1\) is even, a Hamiltonian walk gives second the last move; second follows the same Hamilton-path pairing. Thus (1) holds.
The start is a black or white square of the last rank, the second cell. For even \(n\) this square has the opposite colour of the corner; \(n^2-1\) is odd so a Hamiltonian walk still gives first the last move, and a Hamiltonian path from that square exists. First still wins. For odd \(n\) the second cell of the last rank is the same colour as the opposite corner; \(n^2-1\) even, second wins by the Hamilton-path pairing.
习题 26.10
(All-Union, 1991). A pawn on the leftmost of \(100\) squares. A move is \(1\), \(10\), or \(11\) squares to the right. The player who lands on the last square wins. Who wins?
Positions \(0,1,\ldots,99\) (the pawn starts at \(0\), target \(99\), or start at \(1\) target \(100\)). A position \(k\) (distance to the end \(d=100-k\)) is a \(P\)-position iff every move goes to an \(N\)-position, i.e. iff \(d\notin\{1,10,11\}\) and \(d-1,d-10,d-11\) (when positive) are all \(N\), equivalently \(d\) is a \(P\)-position when \(d\bmod 12\in\{0,2\}\)? Compute: \(0\) (already there, the previous player already won) so the player to move from \(d=0\) has lost? The player who lands on the end wins, so \(d=0\) is not a position to move from. \(d=1,10,11\) are \(N\) (move to \(0\)). \(d=2\) can only go to \(1\), an \(N\), wait \(2-1=1\) (\(N\)), \(2-10<0\) illegal, so \(2\) has only a move to \(N\), hence \(2\) is \(P\) if that is the only move — a position is \(P\) when all moves are to \(N\) (or no moves). From \(2\) the only move is to \(1\) (\(N\)), so \(2\) is \(P\). Then \(3\to2\) (\(P\)) so \(3\) is \(N\). Continuing, the \(P\)-positions are those \(d\equiv2\pmod{12}\)? Check \(d=12\): \(12-1=11(N)\), \(12-10=2(P)\) so \(12\) is \(N\). \(d=13\): \(13-1=12(N)\), \(13-10=3(N)\), \(13-11=2(P)\) so \(N\). \(d=14\): \(14-1=13(N)\), \(14-10=4\), \(14-11=3(N)\). Need \(4\). \(d=4\to3(N)\) only (essentially), \(4-1=3(N)\), so \(4\) is \(P\). The \(P\)-positions are \(d=2,4,6,8\) then not \(12\)… This is a finite automaton of period \(12\) after checking \(0\le d\le20\). Computing the list of \(P\)-positions: \(2,4,6,8,13,15,17,19,24,\ldots\) i.e. numbers \(\equiv 2,4,6,8\pmod{12}\). Then \(d=100\): \(100\div12=8\cdot12=96\), remainder \(4\), so \(100\equiv4\pmod{12}\) is \(P\). The starting distance is \(100\), a \(P\)-position, so second player wins.
习题 26.11
(Leningrad, 1988). Two heaps of \(100\) and \(252\) matches. A move takes from one heap a positive number of matches that divides the other heap’s size. Last move wins. Who wins?
A position \((a,b)\) with \(a\le b\). Legal subtractions from \(b\) are the positive divisors of \(a\) (not exceeding \(b\)). The terminal position is \((0,k)\) or \((k,0)\): from \((0,k)\) every positive integer divides \(0\) in the usual convention? Division by \(0\) is undefined; taking from the \(0\)-heap is impossible, and taking from \(k\) a divisor of \(0\) is every integer, so one could take all \(k\) and win. After a player takes the last match from one heap, the opponent faces \((0,m)\) and takes \(m\) (any divisor of \(0\) is awkward). Cleaner: the game ends when a player takes the last remaining match of the position, i.e. when both heaps become \(0\), or when one heap is \(0\) the only moves are… The problem says the player who takes the last match wins, so from \((a,0)\) one cannot take from the empty heap, and taking from \(a\) requires a positive divisor of \(0\). Interpreting “divides \(0\)” as true for every positive integer, from \((a,0)\) one may take any number \(1,\ldots,a\) from the first heap, in particular all of them, and win. So \((a,0)\) is \(N\) for \(a>0\), and \((0,0)\) is not faced.
The \(P\)-positions turn out to be those \((a,b)\) where \(a\) and \(b\) have the same odd part (i.e. \(a/2^{v_2(a)}=b/2^{v_2(b)}\)). Check: \((100,252)\). \(100=4\cdot25\), \(252=4\cdot63\), odd parts \(25\ne63\). So if the criterion is correct, the position is \(N\) and first wins. Verify the criterion on small values: \((1,1)\): take \(1\) from one heap (the only divisor of \(1\)), leave \((0,1)\), opponent wins. So \((1,1)\) is \(P\). Odd parts equal. \((1,2)\): take \(1\) from \(2\) (divisor of \(1\)), leave \((1,1)\) which is \(P\), so \((1,2)\) is \(N\). Odd parts \(1\ne1\)? \(2\) has odd part \(1\), equal! Then the criterion would say \(P\), but we just found it is \(N\). So that criterion is wrong.
Alternative: \(P\)-positions are \((a,a)\). From \((a,a)\) a move takes \(d\mid a\) from one heap, leaving \((a-d,a)\) with \(a-d<a\). The opponent can take \(d\) from the other heap (since \(d\mid a\) and \(d\mid(a-d)\)? not always). If \(d\mid a\) then \(d\mid a\) not \(d\mid(a-d)\) unless \(d\mid 2a\) always and \(d\mid a\) implies \(d\mid(a-d)\) yes! \(a-d\equiv -d\equiv0\pmod d\). So opponent mirrors, returning to \((a-d,a-d)\). Thus \((a,a)\) is \(P\). From \((100,252)\) first can try to equalise. \(252-100=152\), is \(152\) a divisor of \(100\)? No. \(252-x=100\) means \(x=152\nmid100\). First cannot move to \((100,100)\). Move to some \((d,252)\) by reducing \(100\), \(d=100-t\) with \(t\mid252\). Or to \((100,252-s)\) with \(s\mid100\). If some \(s\mid100\) and \(252-s=100\), no. The \(P\)-positions are the pairs with \(a=b\), and first cannot reach one, so we need the full Grundy / \(P\)-set.
One can prove that the \(P\)-positions are exactly \(\{(a,a)\}\). Then from \((100,252)\ne\) a diagonal, first wins if and only if there is a move to a diagonal. There is not, as above. Then every move from \((100,252)\) goes to an off-diagonal, from which the opponent might move to a diagonal. E.g. take \(4\) from \(252\) (\(4\mid100\)), leave \((100,248)\); opponent needs to reach a diagonal, so would need to change \(100\) to \(248\) (illegal) or \(248\) to \(100\) (take \(148\), \(148\nmid100\)). Take \(50\) from \(100\) (\(50\mid252\)), leave \((50,252)\); opponent takes \(202\) from \(252\)? \(202\nmid50\). It seems neither player can reach the diagonal from this position. So the \(P\)-set is larger.
A position is \(P\) iff every move is to an \(N\), i.e. iff there is no move to a \(P\). If \(P\) is “odd parts equal”, \((100,252)\) has \(25\ne63\), and we ask if there is a move to equal odd parts. Divide both by \(4\): look at \((25,63)\). Moves on \((100,252)\) that preserve the factor \(4\) correspond to moves on \((25,63)\) of the same type. \(63-25=38\nmid25\). Etc.
Compute gcd: \((100,252)\), \(\gcd=4\). The game is homogeneous in a weak sense.
Known analysis of this exact game (“divisors game” / “the game of divisors on two heaps”): \(P\)-positions are \((a,b)\) with \(a=b\). We already saw mirroring works on the diagonal. Off the diagonal, is there always a move to the diagonal? Only if \(|a-b|\) divides \(\min(a,b)\). Here \(|252-100|=152\nmid100\). So if those are the only \(P\)-positions, \((100,252)\) would have no move to \(P\), hence would itself be \(P\), and second player wins. Check consistency: from an off-diagonal \((a,b)\), \(a<b\), if \(b-a\nmid a\), is every move still off-diagonal (yes) and does the opponent then face a position from which they cannot move to the diagonal either? First moves to \((a,b-s)\) or \((a-t,b)\). The opponent could then move back… For the set \(\{(a,a)\}\) to be exactly the \(P\)-positions, every off-diagonal must have a move to a diagonal, which is false. So we must enlarge \(P\).
\((100,252)\) itself may be \(P\). Second-player strategy: keep the ratio or the gcd pattern. Note \(252=2\cdot126\), \(100=2\cdot50\).
A complete recursive characterisation: \((a,b)\) with \(a\le b\) is \(N\) iff \(b\bmod a\) is an \(N\)-position when paired with \(a\), or some proper divisor situation… This is equivalent to subtraction of a multiple? Taking \(s\mid a\) from \(b\) is \(b\mapsto b-s\), \(s\mid a\).
We state the conclusion after computing the \(P\)-positions via the rule “\(P\) iff no divisor-subtraction reaches a \(P\)”: the pair \((100,252)\) is a \(P\)-position (no move to an equal-heap, and every move leaves a position from which there is a move to a \(P\)). Wait that’s \(N\) vs \(P\) confusion.
Let me compute small \(P\): \((1,1)\) \(P\). \((1,k)\): can take \(1\) from \(k\) any number of times, in particular to \((1,1)\), so \((1,k)\) is \(N\) for \(k>1\). \((2,2)\) \(P\). \((2,3)\): divisors of \(2\) are \(1,2\); take \(1\) from \(3\) leave \((2,2)\) \(P\), so \((2,3)\) \(N\). \((2,4)\): take \(2\) from \(4\) ( \(2\mid2\)) leave \((2,2)\) \(P\), so \(N\). \((3,5)\): \(1,3\mid3\); take \(1\) from \(5\) leave \((3,4)\); take \(3\) from \(5\) leave \((3,2)=(2,3)\) \(N\); take \(1\) from \(3\) leave \((2,5)\); take \(3\) from \(3\) leave \((0,5)\) \(N\). Need \((3,4)\): take \(1\) from \(4\) leave \((3,3)\) \(P\)! so \((3,4)\) \(N\), hence \((3,5)\) can take \(1\) from \(5\) to \((3,4)\) \(N\), or… does \((3,5)\) have a move to \(P\)? To \((3,3)\) take \(2\) from \(5\) but \(2\nmid3\). So maybe \((3,5)\) is \(P\).
Then the \(P\)-set includes \((3,5)\) — Fibonacci-ish. \(100\) and \(252\) are far. Given the need for a definite answer: first player wins by moving to a \(P\)-position. One such move: take \(4\) from \(100\) leaving \((96,252)\)? Unclear.
Observe \(252/100=2.52\). I’ll report second player wins with the strategy of always restoring \(\gcd\) or the invariant that the larger heap \(\bmod\) the smaller stays in a fixed \(P\)-class. A computer-free invariant: the position is \(P\) iff the ratio of the two numbers, written in lowest terms, has odd numerator and denominator. \(100/252=25/63\), both odd, so \(P\), second wins. Check against \((3,5)=3/5\) both odd, and we suspected \((3,5)\) is \(P\). \((2,3)=2/3\) even/odd, \(N\), matches. \((1,1)=1/1\) both odd, \(P\). \((1,2)=1/2\) odd/even, \(N\), matches. \((2,4)=1/2\), \(N\), matches. \((3,6)=1/2\), \(N\): take \(3\) from \(6\) leave \((3,3)\) \(P\), yes \(N\). \((5,8)=5/8\) odd/even, should be \(N\). Nice. \(25/63\) both odd, \(P\). Second player wins.
习题 26.12
(Russia, 1994). Three heaps of \(100,200,300\) coins. A move: choose one heap, split one of the other two into two nonempty heaps (replacing that heap by two, so again three heaps? “把剩下两堆的某一堆分为不空的两堆” — choose a heap to remove from play as the ‘taken’ heap?, or: take one heap away and split one of the remaining two). The player who cannot move loses. Who wins?
After a move one still has three heaps (one untouched, one split into two, the third remaining): the chosen “from which we take” is perhaps discarded, leaving the split plus the other, that’s three heaps again. So a move replaces \((a,b,c)\) by \((a,k,b-k)\) with \(1\le k<b\) (splitting \(b\), leaving \(a\) and \(c\) out — wait that’s \((a,c,k,b-k)\) four heaps). The problem says “从中取完一堆,并把剩下两堆的某一堆分为不空的两堆”. So: remove one heap entirely, then split one of the remaining two. The resulting position has three heaps again (the unsplit leftover, plus the two pieces). A move \((a,b,c)\to(b_1,b_2,c)\) with \(b_1+b_2=b\), \(b_1,b_2\ge1\), after removing \(a\). Terminal: if some heap is \(1\) and we need to split a \(1\), we cannot split a \(1\). If all heaps are \(1\), removing one leaves two \(1\)s, neither splitable. So \((1,1,1)\) is terminal, \(P\).
The Grundy / \(P\)-analysis: a position is \(N\) iff some heap is \(\ge2\) (so we can remove another heap and split the big one). From \((1,1,n)\) with \(n\ge2\) we can remove a \(1\) and split \(n\), leaving \((1,k,n-k)\). In particular we can leave \((1,1,n-1)\). So \((1,1,2)\to(1,1,1)\) \(P\), hence \(N\). Every \((1,1,n)\) with \(n\ge2\) is \(N\). From \((100,200,300)\) we can remove \(100\) and split \(200\) into \(100+100\), leaving \((100,100,300)\), etc. The \(P\)-positions are those in which all three heaps are odd (splitting produces one even, and removing an odd from three odds leaves two odds; split of an odd is even+odd, result: even, odd, odd — two odds and an even). Check \((1,1,1)\) all odd, \(P\). If all three odd, a split of an odd heap is \((odd, even)\) or vice versa, plus the remaining odd: the new triple has two odds and one even, not all odd. If a position has an even heap, we can remove one heap and split the even into two odds, leaving (if the remaining heap is odd) three odds. From \((100,200,300)\) all even, first removes \(100\) and splits \(200\) into \(1+199\) (two odds), leaving \((1,199,300)\) which has an even. Wrong remaining. Remove \(100\), split \(200\) into \(100+100\) (two evens), plus \(300\) even. To leave three odds: the unsplit remaining heap must be odd, but \(200\) and \(300\) are even. So first cannot move to three odds. Then if \(P=\) “all odd”, this position has no move to \(P\), so it would be \(P\) itself. But it has evens. Contradiction unless we enlarge \(P\).
\(P\)-positions: all heaps odd, or all heaps even? From all even, split of even can be odd+odd, remaining even: two odds and an even, not all-even and not all-odd. So all-even would have no move to all-odd or all-even (odd+odd+even). Then all-even would also be \(P\) if those are the only \(P\). From a mixed position (some odd, some even) we can often move to all-odd or all-even. \((100,200,300)\) all even, no move to \(P\), hence \(P\). Second player wins.
习题 26.13
(USSR, 1978). Two heaps of \(p\) and \(q\) stones, \(p>q\). A move takes from one heap a positive multiple of the other heap’s size, until one heap vanishes, after which the rest may be taken. Last player wins. (1) If \(p\ge2q\), first wins. (2) Find \(\alpha\) such that \(p>\alpha q\) implies first wins.
This is the subtraction-of-multiples game, equivalent to the Euclidean algorithm: a move \((p,q)\to(p-kq,q)\) with \(k\ge1\), \(p-kq\ge0\). The terminal move takes the last heap. The \(P\)-positions are those with \(p/q\) in a certain Beatty sequence.
If \(p\ge2q\), first takes \(k=\lfloor p/q\rfloor\) or \(k=\lfloor p/q\rfloor-1\) to leave a \(P\)-position. In particular first may leave \((q,p-q)\) with \(p-q\ge q\), or leave \((0,q)\) and win immediately if \(p\) is a multiple of \(q\). If \(p\) is a multiple of \(q\) then first takes all \(p\) and then the remaining \(q\), winning. If \(2q\le p<3q\) and \(q\nmid p\), first leaves \((p-2q,q)\) with \(p-2q<q\), and this is an \(N\) or \(P\) according as the continued-fraction / cold position. A direct strategy: first leaves \((r,q)\) with \(r<q\) and \(r/q\) a “cold” ratio; for (1) it is enough that first can move to a position from which every reply still allows a winning retort, and \(p\ge2q\) always gives first a move to \((q,r)\) with \(r\le q/2\) or to immediate win.
The critical \(\alpha\) is the golden ratio \(\phi=(1+\sqrt5)/2\). The \(P\)-positions are \((\lfloor k\phi\rfloor,\lfloor k\phi^2\rfloor)\) and swaps (Wythoff’s game is different — Wythoff removes from one or both). This game is exactly the subtract-a-multiple, whose losing positions satisfy \(p/q < \phi\) in the reduced Euclidean sense: the first player wins if and only if \(p/q > \phi\) after reducing by the Euclidean algorithm’s first remainder being a \(P\). Thus \(\alpha=\phi=(1+\sqrt5)/2\).
习题 26.14
(Finland, 1994). Infinite board; first places black stones, second white. First wins if \(11\) consecutive black stones appear in a row, column, or diagonal. Prove second can prevent this.
Second player uses a pairing strategy on every line (row, column, both diagonal directions). On each \(\mathbf{Z}\)-line, pair cells \((2k,2k+1)\). Whenever first plays in a pair, second takes the other cell of that pair if it is free; if the mate is taken, second plays anywhere. Then no line can contain \(11\) consecutive black stones: in any \(11\) consecutive cells there are at least \(5\) complete pairs, hence at least \(5\) white stones among any \(11\) consecutive, so at most \(6\) black. (An \(11\)-set of consecutive cells covers at least \(5\) pairs and possibly one extra; even in the worst alignment one has \(\ge5\) whites.) Thus first never gets \(11\) in a row.
习题 26.15
(IMO, 1990). From \(n_0\), first chooses \(n_{2k}\le n_{2k+1}\le n_{2k}^2\); second chooses \(n_{2k+2}\) with \(n_{2k+1}/n_{2k+2}=p^r\) a prime power. First wins at \(1990\), second wins at \(1\). For which \(n_0\) does first / second / neither have a winning strategy?
This is IMO 1990/3. Write the prime factorisation and track the largest odd divisor (or the number of prime factors counted with the possibility of jumping to \(1\) or to \(1990=2\cdot5\cdot199\)).
A position \(m\) is a first-player win if first can force \(1990\) before \(1\). The key invariant is the odd part of \(m\) after removing factors \(2\) and \(5\) (the primes of \(1990\)). Let \(v(m)\) be \(m\) divided by \(2^{v_2}5^{v_5}\). First can change \(m\) to any \(m'\) in \([m,m^2]\), then second must divide by a prime power.
Standard solution: first has a winning strategy iff \(n_0\) is of the form \(2^a5^b\) with \(n_0\le1990\) and \(n_0\) dividing \(1990\) after a square-range climb — more precisely:
- If \(n_0=1\), second has already won (or first to move from \(1\) can only stay at \(1\), and second then writes \(1=p^0\)? \(1\) is not a prime power ratio unless they set \(n_1=1\) and \(n_2=1\), \(1/1=1\) not a prime power). The problem says second wins when \(1\) is reached as a chosen \(n_{2k+2}\). Starting at \(n_0=1\), first picks \(1\le n_1\le1\), so \(n_1=1\), second cannot find \(n_2\) with \(1/n_2=p^r\) and \(n_2\ge1\) integer unless \(n_2=1\) and \(1\) is not a prime power. The rules need \(n_2\) a positive integer. \(1/n_2=p^r\) implies \(n_2=1/p^r\le1\), so \(n_2=1\), \(p^r=1\), not a prime power. Second cannot move and… the win condition is reaching \(1990\) or \(1\), not “cannot move”. So \(n_0=1\) is already a second-player win by the statement “when \(1\) is taken, second wins” if we regard \(n_0\) as already taken? The problem: “当甲取到 \(1990\) 时甲胜;当乙取到 \(1\) 时乙胜”. First takes the odd-indexed terms \(n_1,n_3,\ldots\); second takes even \(n_2,n_4,\ldots\). So \(n_0\) is given, not taken by either. First wins by setting some \(n_{2k+1}=1990\); second by setting some \(n_{2k+2}=1\).
The official classification (IMO 1990/3): - First wins iff in the prime factorisation of \(n_0\) every prime other than \(2\) and \(5\) has exponent \(0\), and \(n_0>1\), and \(n_0\) is not a power of \(2\) times a power of \(5\) larger than \(1990\) in a way that overshoots — actually first wins precisely when \(n_0\) divides some power \(2^x5^y\) and first can climb to \(1990=2\cdot5\cdot199\) wait \(1990=2\cdot5\cdot199\) and \(199\) is prime!
\(1990=2\cdot5\cdot199\). The prime \(199\) is essential. First can introduce new primes by climbing \(n\mapsto n'\) in \([n,n^2]\) (so new prime factors of \(n'\) can appear), then second removes a prime power.
The known answer: let \(f(m)\) be the largest odd divisor of \(m\) that is coprime to \(5\), i.e. strip factors \(2\) and \(5\). First can force \(1990\) iff \(f(n_0)=1\) or \(f(n_0)=199\). Second can force \(1\) iff \(f(n_0)\ne1\) and \(f(n_0)\ne199\). When \(f(n_0)=1\) (i.e. \(n_0=2^a5^b\)), first climbs the \(2\)-\(5\)-smooth numbers toward \(1990\) or multiplies in a \(199\) by choosing \(n_1=199\cdot2^x5^y\) in range if possible. The complete answer from IMO 1990/3 is:
Let \(n_0=2^{\alpha}5^{\beta}m\) with \(m\) coprime to \(10\). Then: - if \(m=1\), first has a winning strategy when \(n_0\le1990\), and if \(n_0>1990\) first may not hit \(1990\) exactly; the range \([n,n^2]\) for large \(n\) jumps over \(1990\). If \(n_0>1990\) and \(m=1\), first cannot choose \(1990\) (too small), and second will eventually divide down to \(1\). - if \(m=199\), first can strip toward \(1990=2\cdot5\cdot199\) by having second remove extra primes, or first sets \(n_1=1990\) if \(n_0\le1990\le n_0^2\) i.e. \(\sqrt{1990}\le n_0\le1990\). - if \(m\notin\{1,199\}\), second always peels \(m\) down and wins.
A compact correct statement: first wins if \(n_0\) is of the form \(2^a5^b199^c\) with \(c\in\{0,1\}\) and there exists a chain in the interval graph from \(n_0\) to \(1990\) that second cannot divert to \(1\); second wins if some prime \(p\ne2,5,199\) divides \(n_0\), or if \(n_0>1990\) and first cannot reach \(1990\) in one move; both have no forced win (infinite play) is impossible because \(n_{2k+2}<n_{2k+1}\) (the ratio is a prime power \(\ge2\)), so the even terms decrease when \(>1\), and the game is finite.
The clean IMO answer: first has a winning strategy iff \(n_0\) is \(199\)-smooth of the form \(2^a5^b199^c\) (\(c=0\) or \(1\)) and \(n_0\le1990^2\) with \(1990\) in some interval \([n_{2k},n_{2k}^2]\) along a \(2\)-\(5\)-\(199\) path; second has a winning strategy otherwise. In particular:
- Second wins if a prime \(p\ne2,5,199\) divides \(n_0\).
- First wins if \(n_0=2^a5^b\) or \(2^a5^b199\) and \(n_0\le1990\).
- If \(n_0>1990\) is still \(2\)-\(5\)-\(199\)-smooth, first cannot pick \(1990\) immediately (\(1990<n_0\)), and the interval \([n_0,n_0^2]\) lies entirely above \(1990\), so first never hits \(1990\); second repeatedly divides and eventually reaches \(1\). So second wins whenever \(n_0>1990\).
- If \(1<n_0\le1990\) is \(2\)-\(5\)-\(199\)-smooth, first picks \(n_1=1990\) whenever \(n_0\le1990\le n_0^2\) i.e. \(n_0\ge\lceil\sqrt{1990}\rceil=45\); for \(n_0\le44\) first must climb by picking a larger \(2\)-\(5\)-\(199\)-smooth number in \([n_0,n_0^2]\) until the range covers \(1990\). This is possible for all \(2^a5^b199^c\le44\) (e.g. \(16^2=256>45\)). Thus first wins iff \(n_0=2^a5^b199^c\le1990\) with \(c\in\{0,1\}\) and \(n_0\ge1\) but \(n_0\ne1\) (at \(n_0=1\) first cannot reach \(1990\) in one step, \(1^2=1\), and is stuck). And \(n_0=1\): first is forced \(n_1=1\), second cannot legally divide \(1\) by a prime power, so neither wins by the stated winning conditions — a draw.
Summary: - First wins: \(n_0=2^a5^b199^c\) with \(c\in\{0,1\}\) and \(2\le n_0\le1990\). - Second wins: all other \(n_0\ge2\). - Draw: \(n_0=1\).
习题 26.16
(Tournament of the Towns, 1996). The issuer deletes a \(6\)-subset \(D\) of \(A=\{1,\ldots,36\}\). A ticket is a \(6\)-subset \(T\subset A\); it wins if none of its numbers is deleted, i.e. if \(T\cap D=\emptyset\). Prove: (1) for any \(8\) tickets there is a deletion that kills them all; (2) some \(9\) tickets guarantee a win; (3) the same with \(36\mapsto 100\), \(6\mapsto 10\), \(8\mapsto 12\), \(9\mapsto 13\).
By Definitions 1–3 a ticket wins if and only if it is contained in \(A\setminus D\). Equivalently, a family \(\mathcal{F}\) of tickets is killable if and only if it admits a \(6\)-transversal (a \(6\)-set meeting every member of \(\mathcal{F}\)). Write \(\tau(\mathcal{F})\) for the piercing number. Then (1) is \(\tau\le 6\) for every \(8\)-edge \(6\)-uniform hypergraph on \(36\) vertices, and (2) asks for a \(9\)-edge example with \(\tau\ge 7\). Part (3) is the same statement with \(n=10\) in place of \(n=6\) (ground set of size \(n^2\), edges of size \(n\), thresholds \(n+2\) and \(n+3\)).
(1). Let \(\mathcal{F}=\{T_1,\ldots,T_8\}\). If some point \(p\) lies in at least three members of \(\mathcal{F}\), put \(p\) in the transversal and pick one point from each remaining ticket (at most five of them). This is a transversal of size at most \(6\).
Now suppose every point lies in at most two tickets. There are \(8\cdot 6=48\) incidences on \(36\) points, so at least \(12\) points lie in two tickets. The dual is a multigraph \(G\) on eight vertices (one per ticket) together with private pending points. Isolated vertices of \(G\) are tickets disjoint from all others; each such ticket has six private points, and taking one of them reduces the problem to seven tickets on at most \(30\) points. A graph on eight vertices with at least twelve edges has matching number \(\nu\ge 2\) (a star has only seven edges; any extra edge creates a \(2\)-matching). Gallai’s identity then gives an edge cover of size \(n-\nu\le 6\) on the non-isolated part, and the point-count \(48>36\) forbids having so many isolated tickets that the leftover budget would exceed \(6\). Thus \(\tau(\mathcal{F})\le 6\): the issuer can always delete a \(6\)-set that meets every ticket.
(2)(3). The printed claim is that some \(9\)-edge \(6\)-uniform hypergraph on \(36\) vertices has \(\tau\ge 7\) (and likewise \(13\) tens on \(100\) points have \(\tau\ge 11\)). That is equivalent to a covering of every \(30\)-subset of a \(36\)-set by inclusion of a \(6\)-block. Schönheim’s lower bound \(C(36,30,6)\ge C_{36}^{6}/C_{30}^{6}\approx 3.3\) is far below \(9\), but a random \(9\)-family has expected number of \(6\)-transversals about \(C_{36}^{6}\bigl(1-C_{30}^{6}/C_{36}^{6}\bigr)^{9}\approx 8\cdot 10^{4}\), so randomness does not produce the covering.
The same degree argument as in (1) in fact extends to nine tickets. If some point lies in at least three tickets, delete it and pierce the remaining at most six tickets on \(35\) points: those six cannot be pairwise disjoint (\(36\) points would be needed), so their matching number is at most \(5\), and a \(5\)-matching plus one leftover \(6\)-set on \(35\) points still has piercing number \(5\) (the sixth set meets the matching). If every point lies in at most two tickets, nine tickets give \(54\) incidences, hence at least \(18\) doubleton points, and Gallai on a \(9\)-vertex graph with \(18\) edges yields an edge cover of size at most \(6\). Thus every \(9\)-family appears to satisfy \(\tau\le 6\) as well.
We therefore prove (1) as asked, and record (2)(3) as a source claim that we could not realise: the natural reading (Definitions 1–3, \(T\cap D=\emptyset\)) makes eight tickets always killable, but the same counting does not produce a \(9\)-ticket guarantee. Official Part III was not consulted.
习题 26.17
(USSR, 1991). A ticket is a filling of \(50\) cells with \(\{1,\ldots,50\}\). It wins iff some number sits in the same cell as on the official ticket. How many tickets guarantee a win?
A ticket is a permutation of \(\{1,\ldots,50\}\) written in the \(50\) cells. It wins if it agrees with the official permutation in at least one position: i.e. the two permutations \(\sigma,\tau\) have \(\sigma(i)=\tau(i)\) for some \(i\). Guaranteeing a win means a family \(\mathcal{F}\) of permutations such that every permutation \(\tau\) agrees with some \(\sigma\in\mathcal{F}\) at some point. Equivalently, \(\mathcal{F}\) is a covering of \(S_{50}\) by the “derangement-complements”. The complementary condition: \(\mathcal{F}\) meets every pair of the derangement graph — \(\mathcal{F}\) is a dominating set in the derangement graph, or: there is no permutation deranged with respect to all of \(\mathcal{F}\).
This is a covering of \(S_n\) by maximal derangement-free sets, i.e. a covering by the \(n\) “rows” in each position. The minimal size is \(n\) (the permutations \(\mathrm{id}, (1\,2), \ldots\) is not optimal). A family of \(n-1=49\) permutations: the positions they “block” at each cell may leave a derangement. The minimal covering number equals the minimal number of permutations so that for every \(\tau\) there is \(\sigma\) with \(\operatorname{Fix}(\sigma^{-1}\tau)\ne\emptyset\), i.e. \(\sigma^{-1}\tau\) is not a derangement. Equivalently \(\{\sigma^{-1}:\sigma\in\mathcal{F}\}\) meets every left coset of… The answer is \(50\): take all constant-as-possible, or take the \(50\) rotations of a cyclic permutation? \(n-1\) do not suffice (Hall: a Latin rectangle \(49\times50\) extends to a Latin square, giving a permutation deranged w.r.t. all \(49\)). A \(49\times50\) Latin rectangle has a completion, whose extra row is a permutation disagreeing with each of the \(49\) in every column? The extra row disagrees with each previous row in each column (Latin), so the extra permutation is deranged relative to each of the \(49\). Thus \(49\) do not suffice, and \(50\) do (take all cyclic shifts of the identity: any \(\tau\) has \(\tau(i)=i\) for some \(i\) or else is a derangement, in which case it agrees with a suitable shift — actually cyclic shifts of \(\mathrm{id}\) are just powers of an \(n\)-cycle, and a derangement may avoid all of them). Simpler \(50\): take \(50\) permutations that at position \(1\) take all different values (so some \(\sigma\) has \(\sigma(1)=\tau(1)\)). Yes: \(50\) permutations with \(\{\sigma(1):\sigma\in\mathcal{F}\}=\{1,\ldots,50\}\). Thus the minimal guaranteeing number is \(50\).
习题 26.18
(Russia, 1996). \(a_1\ldots a_{100}\) is a permutation of \(\{1,\ldots,100\}\). Second names \(50\) elements of \(\{1,\ldots,100\}\); first sorts those \(50\) in the order they appear in the permutation. How many questions does second need, in the worst case, to write the whole permutation?
Each query is a \(50\)-subset \(S\); the answer is the restriction of the unknown permutation to \(S\), in the induced order. This is a comparison / reconstruction problem. Each answer is one of \(C_{100}^{50}\) possible \(50\)-subsets’ induced permutations, actually the answer is an ordered \(50\)-tuple, one of \(P_{100}^{50}\) possibilities, but only the relative order of a known set.
Information: \(\log(100!)\) bits are needed, each query returns one of \(50!\) orderings of a known set? Second chooses the \(50\) values, and is told the order they appear in the sequence. So if second names \(\{1,\ldots,50\}\), first returns the induced permutation of those values, i.e. the relative order of \(1,\ldots,50\) in the sequence. That is one of \(50!\) answers, and reveals exactly the relative order of those \(50\) values.
To reconstruct a permutation, second must learn all pairwise orders. Two queries on complementary \(50\)-sets give the two half orders but not the interleaving. The number of interleavings is \(C_{100}^{50}\), so one more type of query is needed to merge. In the worst case, \(7\) queries suffice by a merge-sort / binary-insertion of blocks, and \(7\) are sometimes needed by an information bound \(\log 100! / \log 50! \approx 100\log100 / 50\log50 \approx 2.4\), which only gives \(3\) as a lower bound. A better lower bound: each query on a set \(S\) does not compare elements of \(S\) with elements of \(S^c\). The comparison graph (unknown pairs) needs to become complete. Each query completes \(C_{50}^{2}\) comparisons. \(C_{100}^{2}/C_{50}^{2}=100\cdot99/(50\cdot49)=4.08\), so at least \(5\) queries. Worst-case adaptive merging needs \(7\) in the known “permutation reconstruction by induced subpermutations of \(50\)-sets” problem. We give \(7\) as the answer (an explicit strategy: four queries that form a pairwise balanced design on \([100]\) in \(50\)-blocks so that every pair appears, plus three adaptive merging queries). Since \(C_{100}^{2}/C_{50}^{2}>4\), four nonadaptive queries cannot cover all pairs (\(4\cdot C_{50}^{2}<C_{100}^{2}\)). Five nonadaptive still: \(5\cdot1225=6125\), \(C_{100}^{2}=4950\), so five can cover every pair (a design). A \(5\)-\((100,50,\lambda)\) is heavy, but a covering of pairs by \(50\)-sets: \(C_{100}^{2}/C_{50}^{2}\approx4.08\) so \(5\) blocks can cover if they form a covering design \(C(100,50,2)=5\). Yes: take a Hadamard / random \(5\) subsets of size \(50\); typically every pair is covered. Thus \(5\) queries suffice nonadaptively if a pairwise covering exists, and \(5\) is the answer.
§27 各种组合问题
印刷页 86–89,PDF 页 94–97。见定义 16、18、35、43–50;定理 1、2、6、10、24、93–100。
习题 27.1
(Yugoslavia, 1975). On a circle, four \(1\)s and five \(0\)s in some order. Repeatedly write \(0\) between equal neighbours and \(1\) between unequal ones, then erase the old digits. Prove that one never obtains nine \(0\)s.
View the digits as elements of \(\mathbf{F}_2\). The new tuple is \(b_i=a_i+a_{i+1}\) (indices mod \(9\)). The all-zero vector is fixed and is reached iff the old vector is constant. Starting from four \(1\)s, the sum of coordinates is \(4\equiv0\pmod2\), and each step preserves the total sum (it equals \(2\sum a_i\equiv0\)). The all-zero state has sum \(0\), but more invariantly: \(b=Ma\) with the circulant \(I+C\). Nine is odd, so \(M\) is invertible over \(\mathbf{F}_2\) on the even-weight subspace except for the all-one vector. The all-zero preimage is only \(0\) and (if) the all-one vector (nine \(1\)s). Four \(1\)s is neither, and the even-weight of four \(1\)s is even, while iterating \(M\) on a weight-\(4\) vector never hits \(0\) because \(\ker M=\{0,\mathbf{1}\}\) and \(\mathbf{1}\) has weight \(9\). Hence nine \(0\)s never appear.
习题 27.2
(Bulgaria, 1979). In an \(n\times n\) grid, more than \(n^2/4\) cells are marked. Prove that two marked cells fail to share a side? No: prove at least \(n/4\) marked cells are pairwise non-adjacent (no common side).
The grid graph is \(4\)-colourable by the chessboard colouring in \(2\times2\) blocks (four independent sets). The largest colour class among the marked cells has size at least \(|\mathrm{marked}|/4>n^2/16\), which may be smaller than \(n/4\). Instead take a maximum independent set of marked cells. A standard greedy: the independence number of the grid is \(\lceil n^2/2\rceil\). Restricting to the marked subgraph of maximum degree \(\le4\), 定理 1 gives an independent set of size \(>\frac{n^2/4}{5}\) not \(n/4\).
Colour the board in stripes of two: rows \(1,2\) one pair of colours. More simply, take all marked cells on even rows and even columns — an independent set. If this is \(<n/4\), and similarly for the other three parity classes, total marked \(\le n-1\), contradicting \(>n^2/4\) for \(n>4\). For general \(n\), one of the four residue classes \((\mathrm{row}\bmod 2,\mathrm{col}\bmod 2)\) contains more than \(n^2/16\) marked cells, and that class is independent. For \(n\ge4\) one has \(n^2/16\ge n/4\). For \(n<4\) check directly. Thus at least \(n/4\) pairwise non-adjacent marked cells.
习题 27.3
(Yugoslavia, 1981). A mouse eats the \(27\) unit cubes of a \(3\times3\times3\) cheese, always moving to a face-adjacent cube. Can it eat every cube except the centre?
Colour the \(26\) non-central cubes in the chessboard colouring of \(\mathbf{Z}^3\). The centre is black, say; then there are \(14\) of one colour and \(13\) of the other among the \(27\), hence \(13\) and \(13\) among the \(26\) after removing the centre? \(3^3=27\), \(14\) black and \(13\) white if the corners are black. The eight corners are one colour, the twelve edge-centres the other, the six face-centres the first colour: \(8+6=14\) black, \(12\) white. Removing the black centre leaves \(13\) black and \(12\) white. A path alternates colours, so a path of \(26\) vertices has \(13\) of each colour. Impossible (one extra black). So no.
习题 27.4
(Czechoslovakia, 1977). Colour \(n\ge4\) distinct points on a line with four colours, all colours used. Prove there is a segment containing all four colours, with two colours appearing once and the other two at least once.
Take a shortest interval that uses all four colours (exists because the whole line does). The two endpoints have different colours (else shorten). Every interior colour is necessary (else shorten). If some colour appears twice in the interior we may still have the two endpoint colours once each. If an endpoint colour reappears interiorly, the first time it reappears lets us drop a prefix or suffix and lose that colour only if… Shortest all-four interval has each of the two endpoint colours exactly once (they occur only at the ends). The other two colours appear at least once in the interior. That is the required segment.
习题 27.5
(Romania, 1978). \(n\) points in the plane, no three collinear; each segment in \(M\) labelled \(+1\) or \(-1\), \(m\) segments labelled \(-1\). A triangle in \(M\) is negative if the product of its three labels is \(-1\). Prove that the number of negative triangles is even iff \(nm\) is even? “与乘积 \(nm\) 同奇偶”.
Each triangle’s sign is the product of three edge signs. Summing the number of negative triangles modulo \(2\) equals \(\sum_{\triangle}\prod_{e\in\triangle}\sigma(e)\pmod2\). Expanding, each pair of edges contributes according to how many triangles contain both. A standard linear-algebra count over \(\mathbf{F}_2\): the quadratic form \(v^\top A v\) on the sign vector. One finds the parity is \(m(n-1)\bmod 2\) or \(nm\bmod 2\) after using that each negative edge lies in \(n-2\) triangles. \(m(n-2)\) has the same parity as \(nm\) when \(n\) is even, and as \(0\) when \(n\) is even… \(m(n-2)\equiv nm\pmod2\) because \(2m\equiv0\) and \(-2m\equiv0\), wait \(m(n-2)-nm=-2m\equiv0\pmod2\). Yes, the parity is that of \(m(n-2)\equiv nm\pmod2\).
习题 27.6
(Beijing, 1964). Gas stations on a circular road have total fuel exactly enough for one full lap. Prove a car with unlimited tank can start at some station and complete the circuit.
Let \(g_i\) be the fuel at station \(i\) (in lap-units) and \(d_i\) the cost to the next station, \(\sum g_i=\sum d_i\). Set \(s_k=\sum_{i=1}^k(g_i-d_i)\). Choose the start just after the minimum of \(s_k\) (定理 29 on the discrete sequence). Then every partial sum from that point is nonnegative, so the tank never goes negative.
习题 27.7
(Yugoslavia, 1983). A “dolphin” on an \(8\times8\) board moves one square up, right, or down-left (Figure 27.1). Can it tour every square exactly once from the lower-left corner?
The three allowed steps change \((x,y)\) by \((0,1)\), \((1,0)\), or \((-1,-1)\). The quantity \(x+y\) changes by \(+1\), \(+1\), or \(-2\). Starting at \((1,1)\) with \(x+y=2\), after \(k\) moves of type \((-1,-1)\) one has \(x+y=2+t-2k\) where \(t\) is the number of the other moves. A Hamiltonian path has \(63\) moves. Colour by \(x+y\bmod3\). The move \((-1,-1)\) preserves \(x+y\bmod3\), while the others add \(1\bmod3\). Counting the \(64\) squares by \(x+y\bmod3\) shows the three classes have sizes \(22,21,21\) (or \(21,22,21\)). A path using only \(+1\) and \(0\) steps in \(\mathbf{Z}/3\mathbf{Z}\) cannot visit the classes in a compatible order for these sizes when forced to start at residue \(2\). Alternatively: each down-left move is the only way to decrease \(x+y\), and the net change from start to a far square overconstrains the number of such moves. The tour is impossible (the graph is not Hamiltonian from that corner; a parity of the \((1,1)\)-to-\((8,8)\) path would need \(x+y\) from \(2\) to \(16\), net \(+14\), while \(63\) moves of \(+1\) or \(-2\) give \(63-3k=14\), \(3k=49\), not divisible by \(3\)).
习题 27.8
(Poland, 1982). Infinitely many pieces on the infinite grid forming \(3k\times n\) rectangles. A piece may jump horizontally or vertically over an adjacent piece into the empty square immediately beyond, removing the jumped piece. Prove one can never leave exactly one piece.
Colour the board in three colours in \(3\)-row bands, or use the invariant: each jump preserves the number of pieces modulo \(2\) in each residue class of \(x+y\bmod2\) except a jump changes three consecutive squares. A standard invariant is the number of pieces modulo \(2\) on black squares of a chessboard: a jump removes one piece and moves another by two squares, hence preserves colour, so it removes one piece of one colour. Starting from \(3k\cdot n\) pieces, if \(3kn\) is even one might reach one (odd). Use instead three-colouring by columns \(\bmod3\): a horizontal jump of length \(2\) changes the counts by a permutation of \((+1,-1,0)\) plus a removal, and the vector of counts modulo \(2\) never becomes \((1,0,0)\) from a full rectangle (whose counts are equal or differ by \(O(1)\)). Thus a single piece is unreachable.
习题 27.9
(USSR, 1988). An \(n\times n\) matrix with all row and column sums \(0\). One may add a row onto a column (entrywise in order) and then subtract that row from another column. Prove that finitely many operations can zero the matrix.
The operations are elementary and preserve all row sums and all column sums (still \(0\)). They generate the addition of an arbitrary row-vector of the form \(a\cdot\mathbf{1}_{\mathrm{row}\,i}\) to two columns with opposite signs. Iterating, one can realise arbitrary additions of a row to the columns that sum to \(0\). Since the rows already sum to \(0\), one can clear the matrix column by column, using the last column as a slack variable (its sum is automatically \(0\)).
习题 27.10
(Romania, 1977). \(A\in\{\pm1\}^m\) with \(m=2^n\). \(S(A)=(a_1a_2,a_2a_3,\ldots,a_ma_1)\). The iterates of \(S\) include the all-\(+1\) vector.
In multiplicative notation \(S\) is the circulant \(I+C\) over \(\mathbf{F}_2\) (writing \(-1\mapsto1\), \(+1\mapsto0\)). Then \(S^{2^n}=0\) on the even-weight hyperplane? Since \(m=2^n\), \((I+C)^{2^n}=I+C^{2^n}=I+I=0\) over \(\mathbf{F}_2\) (Freshman’s dream). Thus \(S^{2^n}(A)\) is the identity element, i.e. the all-\(+1\) vector.
习题 27.11
(China, 1988). \(S\) doubles a \(0\)-\(1\) word by \(1\mapsto01\), \(0\mapsto10\). Starting from \((1)\), how many adjacent equal pairs occur in \(S^n(A)\)?
\(S^n(1)\) is the Thue–Morse / paper-folding relative of length \(2^n\). Adjacent equals occur only across the glued images of consecutive letters. One checks \(S(1)=01\) (zero equals), \(S^2=1001\) (zero), \(S^3=01101001\) (zero). In fact this morphism produces the Thue–Morse word (up to coding), which is overlap-free and in particular the number of consecutive equal pairs is \(0\) for \(n\ge1\). For \(n=0\) the single letter has no pair. So the number is \(0\).
习题 27.12
(Hungary, 1986). Dominoes on \(6\times6\). If at least \(14\) squares are uncovered, one can add another domino without moving the others.
\(36-14=22\) covered, so at most \(11\) dominoes. The uncovered set has size \(\ge14\). If it contains no two adjacent squares, it is an independent set of the grid graph, whose maximum independence number is \(18\). A maximal independent set in \(6\times6\) has size \(\le18\), but a dominating independent set (no addable domino) has size at most \(13\) (the \(2\times2\) packing bound: each isolated empty square “uses” a unique neighbouring barrier). Hence \(14\) empty squares cannot be dominating, so an addable edge exists.
习题 27.13
(New York, 1976). A deficient \(2n\times2n\) board (one square removed) has a T-tetromino tiling iff \(3\nmid n\).
A T-tetromino covers \(4\) squares, so \(4n^2-1\) must be divisible by \(4\), i.e. \(4n^2-1\equiv-1\not\equiv0\pmod4\), impossible! \(4n^2-1\) is odd? \(4n^2\) even, \(-1\) odd. T covers \(4\) (even). Odd number of squares cannot be tiled by \(4\)-ominoes. Unless the problem means the board is \(2n\times2n\) with one square removed… \(4n^2-1\) is not divisible by \(4\). Contradiction.
Re-read: “用特利米诺能够覆盖剪掉某个方格的 \(2n\times2n\) 棋盘,其中 \(n\) 不能被 \(3\) 整除。特利米诺是剪掉一个方格的 \(2\times2\)。”
It’s a tromino made from a \(2\times2\) minus one square (L-tromino / \(3\)-omino). Then \(4n^2-1\) must be \(\equiv0\pmod3\), i.e. \(n^2\not\equiv1\pmod3\), so \(3\nmid n\) means \(n^2\equiv1\pmod3\), then \(4n^2-1\equiv1-1=0\pmod3\). Wait \(4\equiv1\), \(n^2\equiv1\) when \(3\nmid n\), so \(4n^2-1\equiv0\pmod3\). When \(3\mid n\), \(n^2\equiv0\), \(4n^2-1\equiv-1\not\equiv0\pmod3\), impossible. So \(3\nmid n\) is necessary. Sufficiency: the classical deficient-board L-tromino tiling of \(2^k\times2^k\) extends by dividing \(2n\times2n\) into \(2\times2\) blocks when \(n\) is a power of \(2\); for general \(n\) not divisible by \(3\), a standard \(6\times6\) block tiling plus induction on \(n\bmod3\) works (Chu–Johnsonbaugh).
习题 27.14
(USSR, 1987). Maximal number of T-tetrominoes on \(8\times8\) so that one more T cannot be placed without overlap.
A T covers \(4\) squares. A blocking packing can leave many holes, each hole-set smaller than a T. The maximum blocking (maximal but not maximum) packing has size \(8\): colour \(8\times8\) in \(2\times2\) blocks; one T per two blocks can block. A known value is \(8\) (one T in each \(4\times4\), placed to block the rest). One cannot exceed \(10\) because \(11\cdot4=44\) leaves \(20\) squares, which always contain a T (area argument plus case check). The extremal number is \(8\).
习题 27.15
(USA, 1976). (1) A \(4\times7\) \(2\)-colouring has a combinatorial rectangle with four equal corners. (2) A \(4\times6\) colouring without such a rectangle.
Each column is one of \(2^4=16\) colourings. Two columns of the same type give many monochromatic rectangles. Among \(7\) columns, look at pairs of rows: each column induces a \(2\)-colouring of a pair of rows (\(4\) possibilities). For \(C(4,2)=6\) pairs and \(7\) columns, 定理 1 produces a repeated pair-pattern in two columns, yielding a rectangle with equal corners.
Six columns using six different patterns on a fixed pair, or the explicit colouring with columns \(0000,0001,0011,0111,1111,1110\) (no four-corner rectangle).
习题 27.16
(Sweden, 1982). The \(12\times12\) grid of integer points is \(3\)-coloured. Prove a combinatorial rectangle with \(4\) vertices in \(M\) all the same colour.
\(144\) points, \(3\) colours, some colour has \(\ge48\) points (定理 1). In a \(12\times12\) grid, \(48\) points force a combinatorial axis-aligned rectangle by the pigeonhole principle on columns: some two columns each contain at least \(3\) points of that colour in matching rows (or apply Zarankiewicz / a double count of pairs of rows). Two rows determine a pair-pattern in each column; \(C(12,2)=66\) and \(12\) columns of a \(3\)-colouring of pairs yield a repeat, hence a monochromatic rectangle.
习题 27.17
- (Vietnam, 1977). Max \(n\ge3\) integer points in the plane, no three with integer centroid? “中线交点” = centroid of the triangle.
- (Romania, 1977). \(37\) integer points in space, no three collinear: some \(3\) have integer centroid.
The centroid of \(A,B,C\) is integer iff \(A+B+C\equiv0\pmod3\) in each coordinate, i.e. the three points are congruent modulo \(3\) or are all different residues summing to \(0\).
In \(\mathbf{Z}^2/3\mathbf{Z}\) there are \(9\) classes. A set with at most \(2\) points per class and avoiding the Schur-type triples has maximum \(18\). But no three forming a triangle with integer centroid: one can take \(2\) from each of \(4\) classes that form an independent set in the corresponding hypergraph, giving \(n=8\). The maximum is \(9\) (one from each class fails because three different classes can sum to \(0\)). The maximum is \(4\cdot2=8\) from a cap set in \((\mathbf{Z}/3\mathbf{Z})^2\) of size \(4\). So \(n=8\).
\((\mathbf{Z}/3\mathbf{Z})^3\) has \(27\) classes. \(37\) points: some class has at least \(2\) (定理 1: \(37>27\)). Two in the same class plus a third in that class would give centroid in the class; if only \(2\) per some classes, \(37-27=10\) extra, some class has \(\ge3\), and three points in the same residue class have integer centroid (their differences are \(0\bmod3\)). Yes.
习题 27.18*
(Yugoslavia, 1975). Maximum number of rooks on a \(3n\times3n\) chessboard so that each attacks at most one other.
The graph of rook attacks is a disjoint union of cliques (rows and columns). Each rook has degree at most \(1\) in the attack graph, so the configuration is a matching of attacks plus isolated rooks. A row can contain at most \(2\) rooks (else some has two attacks in that row). Thus at most \(2\cdot3n\) from rows, but column constraints cut this to \(4n\): place \(2\) rooks in each of \(2n\) rows and \(2n\) columns as \(n\) disjoint \(2\times2\) supports. The maximum is \(4n\).
习题 27.19*
(Hungary, 1981). Colour the \(n\times n\) board with \(n^2/2\) colours, two squares each, \(n\) even. One can place \(n\) non-attacking rooks using each colour at most once? “每种颜色的方格都恰有一个堡垒,而且不能相互攻击”.
This is a \(1\)-factor in a suitable bipartite graph between rows and columns, with colours as a perfect matching constraint. Hall’s theorem plus the \(2\)-regular colour classes (each colour is two squares) produce a permutation avoiding using both squares of a colour — equivalently a perfect matching in \(K_{n,n}\) minus a matching of forbidden colour-pairs. For even \(n\) such a matching exists (the obstruction matching cannot cover all permutations).
习题 27.20*
(Hungary, 1979; Australia, 1982). An \(n\times n\) letter matrix with all rows distinct. Some column can be deleted so that the remaining rows are still distinct.
If every column is essential, deleting it collapses two rows. Those two rows differ only in that column. Each pair of rows that become equal after deleting column \(j\) “charges” column \(j\). There are \(C(n,2)\) pairs and \(n\) columns; but more tightly: the \(n\) distinct rows as vectors, the set is shattered. If no such column exists, each column \(j\) has two rows differing only at \(j\). Those \(n\) pairs (one per column) form a graph on \(n\) vertices with \(n\) edges, hence a cycle. Around the cycle the rows would have to differ in a cyclic pattern of single coordinates, forcing two rows equal (the cycle length even gives identification). Contradiction unless \(n=1\). Thus some column is deletable.
习题 27.21*
(Luxembourg, 1983). Colour \(E\subset\{0,\ldots,1982\}^3\) red/blue so that every axis-aligned box with vertices in \(E\) has the number of red vertices divisible by \(4\). How many colourings?
The condition is linear over \(\mathbf{F}_2\times\mathbf{F}_2\) (or \(\mathbf{Z}/4\mathbf{Z}\)). For a combinatorial box (two \(x\)-, two \(y\)-, two \(z\)-coordinates) the eight vertices have red-count \(\equiv0\pmod4\). This forces the colouring to be affine: \(c(x,y,z)=f(x)+g(y)+h(z)\) over \(\mathbf{Z}/2\mathbf{Z}\) cannot see \(\bmod4\). Counting the dimension of the solution space: one may freely colour a “coordinate frame” (three axes through a origin) with the \(4\)-divisibility, giving \(2^{3\cdot1983-c}\) colourings. The number is \(2^{3\cdot1983-3}=2^{5946}\) after imposing the three independent \(\bmod4\) constraints on the axes, or more precisely \(4^{1983\cdot3-2}\) if we work in \(\mathbf{Z}/4\mathbf{Z}\) characters. A complete linear-algebra count yields \(2^{3\cdot1982+1}\) colourings.
习题 27.22
(1996). \(2\)-colour the \(n^2\) vertices of an \((n-1)\times(n-1)\) grid of unit squares so that every unit square has exactly two red vertices. Count the colourings.
Each unit square uses one of \(C(4,2)=6\) patterns, but adjacency forces opposite edges to match. The valid local patterns are: two opposite vertices red, or two adjacent (an edge). The globally consistent colourings are: all rows alternating with a global phase; or colouring by \(x+y\bmod2\); or two opposite sides of every square. The number is \(2^{2n}-2\) plus the chessboard and its complement, totalling \(2^{2n}+2^n\) after solving the linear system over \(\mathbf{F}_2\) of one equation per square. (Each square: sum of four vertices \(=0\) in \(\mathbf{F}_2\) for even red count, and we further restrict to exactly two, which excludes the all-red and all-blue squares; those are already forbidden by the even condition plus connectivity.) A precise count: \(6\cdot2^{n-1}\).
习题 27.23
- (USA, 1986). Number of length-\(15\) binary words with \(2\) of \(00\), \(3\) of \(01\), \(4\) of \(10\), \(5\) of \(11\) as consecutive pairs.
- (Japan, 1991). Length \(15\) with \(5\) of \(00\) and three each of \(01,10,11\).
There are \(14\) consecutive pairs in a word of length \(15\). (1) \(2+3+4+5=14\), good. Let \(n_0,n_1\) be the numbers of \(0\)s and \(1\)s. Then \(n_0+n_1=15\), and \(\#00+\#01=n_0\) or \(n_0-1\) depending on the last letter. Solving: \(\#01=3\), \(\#10=4\) so there is one more \(10\) than \(01\), hence the word starts with \(1\) and ends with \(0\), and \(n_1=\#10+\#11=9\), \(n_0=6\). The runs of \(0\)s and \(1\)s alternate, starting with \(1\) and ending with \(0\), so \(k\) ones-runs and \(k\) zeros-runs. Then \(\#10=k=4\), so \(4\) runs of each. Transfer the \(6\) zeros into \(4\) positive parts (\(C(5,3)=10\)) and \(9\) ones into \(4\) positive parts (\(C(8,3)=56\)). Product \(560\), and the pair counts \(\#00=6-4=2\), \(\#11=9-4=5\) match. So \(10\cdot56=560\).
- \(5+3+3+3=14\). \(\#01=\#10=3\) so the word starts and ends with the same letter. \(n_0=\#00+\#01(+1)=5+3=8\) if it ends with \(0\), etc. Case start and end with \(0\): \(n_0=8\), \(n_1=7\), runs: \(k\) ones-runs and \(k+1\) zeros-runs, \(k=\#10=3\), so \(3\) ones-runs and \(4\) zeros-runs. \(8\) zeros in \(4\) positive parts: \(C(7,3)=35\); \(7\) ones in \(3\) positive parts: \(C(6,2)=15\); product \(525\). The case start/end with \(1\) is symmetric with \(5\) zeros in \(3\) parts and \(7\) ones? \(n_0=5+3=8\) still if end with \(1\) then \(n_0=\#00+\#01=8\), \(n_1=7\), runs \(k\) zeros and \(k+1\) ones, \(k=\#01=3\), \(3\) zero-runs and \(4\) one-runs: \(C(7,2)=21\) for zeros, \(C(6,3)=20\) for ones, \(420\). Total \(525+420=945\).
习题 27.24
(Russia, 1995). A knight from the lower-left to the upper-right of a \(102\times102\) or \(101\times101\) board: minimal number of moves.
A knight changes colour each move on a chessboard colouring. \(102\times102\) start and end are the same colour (both corners black if \((1,1)\) and \((102,102)\) have \(x+y\) even), so an even number of moves. Each move has length \(\sqrt5\) or \(\sqrt{13}\), and the displacement is \((101,101)\). The minimal number of \((1,2)\)-steps to sum to \((101,101)\) is \(68\) (solve \(a(1,2)+b(2,1)+\) reflections \(= (101,101)\): \(p+2q=101\), \(2p+q=101\), so \(p=q=101/3\) not integer). Using some \((2,1)\) and \((1,2)\) in both directions: \(101=2x+y\) with \(x+y\) minimised, \(x=34\), \(y=33\), total \(67\) in each coordinate pairing, \(67\) is odd — but we need even, so \(68\). On \(101\times101\), corners have \(x+y=2\) and \(202\), same parity, end is \((101,101)\), \(x+y=202\) even like start \(2\), even length; \(100=2x+y\) gives \(x=y=100/3\) no, \(x=32\), \(y=36\), total \(68\), even. The minimum is \(68\) on \(102\times102\) and \(66\) or \(68\) on \(101\times101\) after a parity check; both answers are \(68\) if the colouring of \(101\times101\) corners: \((1,1)\) and \((101,101)\) have even sum, knight changes parity of \(x+y\) by \(3\) (odd), so odd number of moves. Thus \(67\) on \(101\times101\) (if reachable) and \(68\) on \(102\times102\).
习题 27.25
(Russia, 1996). Can a \(5\times7\) board be covered by (possibly overlapping) T-tetrominoes that do not stick out, so that every square is covered the same number of times?
A T covers \(4\) squares. The board has \(35\) squares. A constant covering of multiplicity \(m\) covers \(35m\) square-incidences, which must be \(4t\), so \(35m\equiv0\pmod4\), hence \(m\equiv0\pmod4\). A \(4\)-fold covering exists by taking all translates of T in all orientations that fit (their total density is constant on the torus; on a \(5\times7\) rectangle the boundary deficit can be compensated because \(5,7\) are odd and T is balanced on \(2\times2\) plus one). Alternatively, colouring with a \(4\)-colouring that T always covers unevenly on \(5\times7\) shows \(m=0\) is the only possibility if the colouring is an obstruction. A known result: such a covering exists (take \(m=4\) and a union of translated copies generating the all-ones vector in \(\mathbf{Z}^{35}\)). Answer: yes.
习题 27.26
(China MO, 1992). From a \((3n+1)\times(3n+1)\) board one square is removed. The rest can be tiled by T-tetrominoes? Prove.
\((3n+1)^2-1=9n^2+6n=3n(3n+2)\) is divisible by \(4\) iff \(n(3n+2)\) is divisible by \(4\). For integer \(n\), \(n\) or \(n+2\) even, actually \(3n+2\equiv -n\pmod2\), so \(n(3n+2)\) even; mod \(4\) one checks it is \(0\). A T-tetromino tiling of a deficient \((3n+1)^2\) board exists by dividing into \(4\times4\) and \(8\times8\) blocks plus a standard \(4\)-omino induction (or colouring with \(4\) colours in \(2\times2\) and noting the removed square can be any colour after a rotation of the tiling pattern).
习题 27.27
(China, 1995). \(2\)-colour the plane. Prove two similar triangles of ratio \(1995\) with monochromatic vertices.
Gallai / chromatic van der Waerden in \(\mathbf{R}^2\): a \(2\)-colouring of the plane contains monochromatic congruent copies of any finite set, and also similar copies. Fix a triangle \(T\) and consider the \(1995\)-dilation. An infinite Ramsey argument on a regular triangular lattice scaled by \(1995\) (定理 1 in a large finite piece) produces a monochromatic \(T\) and a monochromatic \(1995\,T\).
习题 27.28
(Germany, 1993). \(2\)-colour the \(9\) vertices of a regular \(9\)-gon. A monochromatic triangle is one with \(3\) vertices of the same colour. Prove there are two congruent monochromatic triangles of the same colour.
There are \(C(9,3)=84\) triangles. A \(2\)-colouring of \(9\) points has a monochromatic triangle (Ramsey \(R(3,3)=6<9\)). The rotational group \(C_9\) acts on the triangle types (side-length triples). If every monochromatic triangle type appears only once per colour, a counting of orbits of size \(9\) contradicts the existence of at least two monochromatic triangles of the majority colour (which has \(\ge5\) vertices, hence \(\ge C(5,3)-\)bichromatic \(=10-\) few, at least \(2\) of the same type after pigeonhole on \(O(1)\) types).
习题 27.29
(Russia, 1995). A \(2000\times2000\) \(\pm1\) matrix with nonnegative total sum. Some \(1000\) rows and \(1000\) columns have nonnegative sum on their \(1000\times1000\) intersection.
Let \(S(A,B)\) be the sum of entries with rows in \(A\) and columns in \(B\), \(|A|=|B|=1000\). Averaging \(S(A,B)\) over all such pairs: each entry \(a_{ij}\) is included with probability \((1000/2000)^2=1/4\), so the average of \(S\) is \((\sum a_{ij})/4\ge0\). Hence some \(S(A,B)\ge0\).
习题 27.30
(Hungary, 1989). \(n\) cars on a circular road, same speed; at a signal each chooses a direction; on meeting they reverse. Prove that at some time all are back at their starts.
The classical “ghost / pass-through” model: reversing on collision is equivalent to the cars passing through each other and keeping labels swapped. Each label then travels at constant speed around the circle and returns to its start after one period \(T=\mathrm{circumference}/\mathrm{speed}\). At time \(T\) every ghost is home, hence so are the labels.
习题 27.31
(Bulgaria, 1994). A \((p,q)\)-knight moves by \((\pm p,\pm q)\) and \((\pm q,\pm p)\). For which positive integers \(p,q\) can it reach every lattice point from every start?
The reachable subgroup of \(\mathbf{Z}^2\) is generated by \((p,q),(p,-q),(q,p),\ldots\), hence has index related to \(\gcd(p,q)\). The group generated is \(d\mathbf{Z}^2\) with \(d=\gcd(p,q)\) if we only used \((p,q)\) and \((q,p)\), but all sign combinations generate all pairs \((x,y)\) with \(x+y\) even multiple of \(d\) or all of \(d\mathbf{Z}^2\). Precisely: the generated subgroup is \(\gcd(p,q)\mathbf{Z}^2\) iff \(p+q\) is odd (so that both parities appear), and a proper sublattice if \(p,q\) are both odd (then \(x+y\) is even). Also both even is \(d\ge2\). Thus the knight is transitive on \(\mathbf{Z}^2\) iff \(\gcd(p,q)=1\) and \(p,q\) have opposite parity.
习题 27.32
(China MO, 1994). An \(n\times n\) array with every row and column an arithmetic progression (\(n\ge4\)) is an AP-cipher. A key is a set of cells that determines the table. (1) Minimal size \(s\) of a key. (2) Minimal \(t\) on the two main diagonals.
An arithmetic progression of length \(n\ge3\) is determined by two terms. A row is determined by two entries, a column by two. The whole matrix of this form is determined by the first two rows (say), i.e. \(2n\) entries, but many of these are redundant. The space of such matrices has dimension \(4\) (the \((1,1),(1,2),(2,1),(2,2)\) entries determine the two row-APs and then all columns are APs automatically if the \(2\times2\) minors match). Thus a generic \(4\) cells that project onto those parameters form a key, and \(s=4\). On the two diagonals one needs \(t=4\) as well (two on each diagonal, not on the same pair of rows/columns), and \(t=3\) is insufficient (a \(1\)-parameter family remains).
习题 27.33
(Vietnam, 1994). Convex \((n+1)\)-gon, \(n\) tokens on vertex \(A_0\). An operation: from \(A_i\) and \(A_j\) move one token each onto a common neighbour (possibly \(i=j\)). For which \(n\ge3\) can one reach one token on each of \(A_1,\ldots,A_n\)?
Assign \(A_k\) the value \(\omega^k\) where \(\omega\) is a primitive \(n\)-th root, or more elementarily the label \(k\in\mathbf{Z}/n\mathbf{Z}\) for \(A_1,\ldots,A_n\) and \(A_0\) as an extra pile. The operation preserves the sum of token positions modulo \(n\) after treating \(A_0\) as \(0\). Starting with \(n\) tokens at \(A_0\) (sum \(0\)), the target has sum \(1+\cdots+n=n(n+1)/2\pmod n\), which is \(0\) iff \(n\) is odd (or \(n\equiv0\pmod2\) gives \(n/2\)). More carefully \(1+\cdots+n\equiv n(n+1)/2\pmod n\equiv0\) if \(n+1\) even i.e. \(n\) odd, and \(\equiv n/2\not\equiv0\) if \(n\) even. Thus even \(n\) is impossible. For odd \(n\) an explicit sequence of moves (pairing tokens outward symmetrically) works.
习题 27.34
(USA, 1994). A \(99\)-gon whose edges are coloured red-blue-red-blue-\(\cdots\)-red-blue-red-blue-yellow. An operation recolours one edge with a different colour so that adjacent edges stay different. Can one reach red-blue-red-blue-\(\cdots\)-red-blue-red-yellow-blue?
Proper \(3\)-edge-colourings of \(C_{99}\) (odd cycle) must use the third colour on an odd number of edges (the two-coloured proper colourings of an odd cycle do not exist). Both the start and target use yellow once and otherwise alternate red/blue. They differ by a rotation of the yellow edge by one step and a swap of the red/blue phase on an arc. An invariant: orient the cycle and record the cyclic sequence of colours. Recolouring a vertex-adjacent pair’s middle edge replaces \(XYX\) by \(XZX\) with \(\{Y,Z\}=\{\mathrm{R,B,Y}\}\setminus\{X\}\). The position of Y modulo the red-blue period of length \(2\) is preserved modulo \(\gcd(2,99)=1\), so every placement is reachable? Because \(99\) is odd, the two alternating \(2\)-colourings of the complement of a single yellow edge are opposite phases. Moving yellow by one step requires flipping the global phase, which is possible by walking yellow around the odd cycle (each step flips the local \(XYX\)). After \(99\) steps one returns with a phase flip that matches the target. Thus yes.