These are brief answers and hints, not full solutions: they give the result and the key step, so that you can check your own work. Try each exercise properly before looking.
9.1 Lines Cutting the Plane
One circle gives \(2\) regions. The \(n\)th circle meets the others in \(2(n - 1)\) points, which cut it into \(2(n - 1)\) arcs, each splitting a region in two. So \(R_n = R_{n-1} + 2(n - 1)\), giving \(n^2 - n + 2\).
Each line adds \(1\) plus the number of crossings on it, so the total is \(1 + n + (\text{number of crossings})\). The \(k\) parallel lines lose \(\binom k2\) crossings: \(1 + n + \binom n2 - \binom k2\).
The \(n\)th plane is cut by the others in \(n - 1\) lines in general position, which divide it into \(\frac12(n^2 - n + 2)\) pieces, each splitting a region of space. Adding these to \(\frac16\bigl((n - 1)^3 + 5(n - 1) + 6\bigr)\) gives \(\frac16(n^3 + 5n + 6)\).
For \(n = 6\) there are \(31\) regions, not \(32\). Inside the circle the graph has \(V = n + \binom n4\) vertices (each crossing comes from four points) and \(E = n + \binom n2 + 2\binom n4\) edges (the arcs of the circle, plus the chords, each crossing adding two pieces). Euler’s formula \(V - E + F = 2\) counts the outside too, so the number of regions is \(F - 1 = 1 + \binom n2 + \binom n4\).
9.2 Ramsey’s Theorem in Miniature
There are at most \(6 \times 6 = 36\) bichromatic angles. Each triangle that is not one-colour contains exactly two, so there are at most \(18\) such triangles. Since \(\binom63 = 20\), at least \(2\) triangles are one-colour.
A point has \(16\) edges, so at least \(6\) of one colour, say red, going to points \(P_1, \ldots, P_6\). If any edge among the \(P_i\) is red, there is a red triangle. If not, the \(P_i\) form a two-coloured \(K_6\), which has a one-colour triangle.
A point \(v\) has \(9\) edges, so either at least \(4\) are gold or at least \(6\) are silver. With \(4\) gold neighbours: a gold edge among them gives a gold triangle with \(v\), and otherwise they form a silver \(K_4\). With \(6\) silver neighbours: among them there is a one-colour triangle; if gold we are done, and if silver it forms a silver \(K_4\) with \(v\).
Label each term with \((i, d)\): the lengths of the longest increasing and decreasing subsequences ending there. For two terms, the later one has a larger \(i\) or a larger \(d\), so the labels are all different. If no subsequence of length \(3\) existed, there would be only \(4\) possible labels for \(5\) terms. Example with neither: \(2, 1, 4, 3\).
9.3 Colouring Fence Posts
\(r_{n+1} = s_n\) as before (post \(n\) is not red, so post \(n + 1\) can be red), and \(r_n + s_n = (k - 1)^{n-1}\), since each post after the first has \(k - 1\) choices. So \(r_{n+1} + r_n = (k - 1)^{n-1}\), and \(r_n = \frac{(k - 1)^{n-1} + (k - 1)(-1)^{n-1}}{k}\). For the circle: \(k\) choices of colour for post \(1\), then a line of \(n + 1\) posts ending in the same colour, which gives \(kr_{n+1} = (k - 1)^n + (-1)^n(k - 1)\).
\(2, 3, 5, 8, \ldots\): with \(a_n\) ways, a line ending in white continues any line of \(n - 1\), and one ending in red continues a line of \(n - 2\) ending in white, so \(a_n = a_{n-1} + a_{n-2}\). The answer is \(F_{n+2}\).
\(4\) choices for the centre, then a \(3\)-colouring of the \(n\)-cycle: \(4\bigl(2^n + 2(-1)^n\bigr)\).
For \(n = 4\): \(18\) colourings. A quarter-turn fixes none, and a half-turn fixes the \(6\) with opposite posts alike, so there are \(\frac14(18 + 0 + 6 + 0) = 6\) necklaces. For \(n = 5\): \(30\) colourings, no rotation fixes any, so \(6\).
9.4 Sequences as Functions
The tail is at most \(F_7\sum_{r \geq 7}2^{r-7}10^{-r} = \frac{13 \times 10^{-7}}{0.8} < 2 \times 10^{-6}\). Since \(\sum F_r10^{-r} = \frac{10}{89}\) and the first six terms give \(0.112358\), \(\frac{10}{89}\) lies between \(0.112358\) and \(0.112360\), so \(\frac{1}{89} = 0.011235\ldots\). With two-digit blocks, \(\sum F_r100^{-r-1} = \frac{1}{9899}\).
Summing the recurrence gives \(\mathrm{f}(x)(1 - 7x + 10x^2) = 2 - 7x\), and \(\frac{2 - 7x}{(1 - 2x)(1 - 5x)}\) splits as stated. For \(b_n\): \(10p + 5q = 40\) and \(40p + 10q = 100\) give \(p = 1\), \(q = 6\); the roots of \(t^2 = t + 6\) are \(3\) and \(-2\), and \(b_n = 4 \cdot 3^n + (-2)^n\).
\(\sum nx^n = \frac{x}{(1 - x)^2}\); at \(x = \frac{1}{100}\) this is \(\frac{100}{9801}\), so \(\frac{1}{9801} = \sum n \cdot 100^{-n-1}\). The pattern goes wrong at the block \(98\): the block for \(100\) carries \(1\) into the \(99\), which carries into the \(98\), so the expansion runs \(\ldots96\,97\,99\,00\,01\ldots\).
Multiplying by \(\frac{1}{1 - x} = 1 + x + x^2 + \cdots\) makes the coefficient of \(x^n\) equal to \(u_0 + \cdots + u_n\). The squares have generating function \(\frac{x(1 + x)}{(1 - x)^3}\), so the partial sums have \(\frac{x + x^2}{(1 - x)^4}\), and the coefficient of \(x^n\) is \(\binom{n + 2}{3} + \binom{n + 1}{3} = \frac{n(n + 1)(2n + 1)}{6}\).
9.5 Making Change
The coefficient of \(x^{24}\) counts \(6a + 6b + 3c = 24\): for each \(s = a + b\) from \(0\) to \(4\) there are \(s + 1\) choices, giving \(15\). In general the coefficient of \(x^n\) is \(0\) unless \(n = 3m\), and then it is \(\frac12(k + 1)(k + 2)\) with \(k = \lfloor m/2\rfloor\). With the extra factor the coefficients are partial sums: \(55\), \(55\) and \(650\) for \(x^{24}\), \(x^{25}\) and \(x^{66}\). They count the ways of paying with \(1\)p and \(3\)p coins and two different kinds of \(6\)p coin.
Each part \(k\) is used once or not at all. The product telescopes: \(\prod\frac{1 - x^{2k}}{1 - x^k}\) cancels every factor with an even exponent from the denominator, leaving \(\prod\frac{1}{1 - x^{\text{odd}}}\), the generating function for partitions into odd parts. For \(n = 6\): \(6\), \(5 + 1\), \(4 + 2\), \(3 + 2 + 1\), and \(5 + 1\), \(3 + 3\), \(3 + 1 + 1 + 1\), \(1 + 1 + 1 + 1 + 1 + 1\): four of each.
The values for \(n = 0, 1, 2, \ldots\) are \(1, 1, 2, 2, 3, 4, 5, 6, 7, 8, 10, \ldots\), and \(\frac{(n + 4)^2}{20}\) is always within \(\frac12\) of them (checked up to \(n = 60\); a proof uses the partial fractions of \(\frac{1}{(1 - x)(1 - x^2)(1 - x^5)}\)).
The last coin is \(1\)p or \(2\)p, so \(c_n = c_{n-1} + c_{n-2}\): the Fibonacci numbers, \(c_n = F_{n+1}\).
9.6 Strange Dice
Each die is \(x\) times a product of the factors \(1 + x\), \(1 + x\), \(1 + x^2\), \(1 + x^2\) with value \(4\) at \(x = 1\), so it takes two of them. Apart from the standard pair, the only option is \(x(1 + x)^2\) and \(x(1 + x^2)^2\): faces \(1, 2, 2, 3\) and \(1, 3, 3, 5\).
The product is \(2x^3 + x^4 + x^5 + 4x^6 + 3x^7 + 8x^8 + 6x^9 + 5x^{10} + 6x^{11}\), matching the table.
Yes: the Sicherman pair \(1, 2, 2, 3, 3, 4\) and \(1, 3, 4, 5, 6, 8\) together with a standard die.
\((x + x^2)(x + \cdots + x^8) = x^2(1 + x)^2(1 + x^2)(1 + x^4)\). The coin needs a factor with value \(2\): besides the standard choice \(x(1 + x)\), it can be \(x(1 + x^2)\) (faces \(1, 3\), with the octahedron \(1, 2, 2, 3, 5, 6, 6, 7\)) or \(x(1 + x^4)\) (faces \(1, 5\), with \(1, 2, 2, 3, 3, 4, 4, 5\)).
9.7 Equal Sums of Powers
\(\sum(c + b_k)^3 - \sum(c + a_k)^3 = 3c^2\bigl(\sum b_k - \sum a_k\bigr) + 3c\bigl(\sum b_k^2 - \sum a_k^2\bigr) + \sum b_k^3 - \sum a_k^3\), and the first two brackets vanish. Starting from \(\{1, 4, 6, 7\}\), \(\{2, 3, 5, 8\}\) with \(c = 8\): \(\{1, 4, 6, 7, 10, 11, 13, 16\}\) and \(\{2, 3, 5, 8, 9, 12, 14, 15\}\).
\(A\) and \(B \cup \{0\}\) both have \(6\) elements, sum \(33\) and sum of squares \(253\). Then \(\sum_{a \in A}(n + a)^2 = \sum_{b \in B \cup \{0\}}(n + b)^2\), which splits \(\{n^2, \ldots, (n + 11)^2\}\).
Expand \((x + c)^r\) by the binomial theorem: it involves only powers up to \(r\), whose sums agree. The question’s sets, with \(0\) added to the second, are \(\{0, \ldots, 15\}\), and translating gives any \(16\) consecutive integers.
With \(ABABABAB\), \(A\) gets about \(1.676\) and \(B\) about \(1.042\). With \(ABBABAAB\), \(A\) gets about \(1.560\) and \(B\) about \(1.158\): still unequal, but much closer.
9.8 Nobody Gets Their Own Shirt
\(\mathrm{E}(C_1) = \frac1m\), \(\mathrm{Var}(C_1) = \frac1m - \frac{1}{m^2}\), and \(\mathrm{Cov}(C_1, C_2) = \frac{1}{m(m - 1)} - \frac{1}{m^2} = \frac{1}{m^2(m - 1)}\). Then \(\mathrm{E}(N) = 1\) and \(\mathrm{Var}(N) = m\bigl(\frac1m - \frac{1}{m^2}\bigr) + m(m - 1)\frac{1}{m^2(m - 1)} = 1\). For \(m = 4\): \(\mathrm{P}(N = 0) = \frac{9}{24} = 0.375\), against \(\mathrm{e}^{-1} \approx 0.368\).
Card \(1\) goes to some position \(i\) (\(n - 1\) choices). If card \(i\) goes to position \(1\), the rest is a derangement of \(n - 2\); if not, treat position \(1\) as card \(i\)’s forbidden place, giving a derangement of \(n - 1\). Check: \(D_3 = 2(1 + 0) = 2\) and \(D_4 = 3(2 + 1) = 9\).
Choose the \(k\) fixed cards and derange the rest: \(\binom nk\frac{D_{n-k}}{n!} = \frac{1}{k!}\cdot\frac{D_{n-k}}{(n - k)!} = \frac{d_{n-k}}{k!}\), which tends to \(\frac{\mathrm{e}^{-1}}{k!}\).
\(30 - (15 + 10 + 6) + (5 + 3 + 2) - 1 = 8\), which equals \(30 \cdot \frac12 \cdot \frac23 \cdot \frac45\): the inclusion–exclusion sum factorises (this is Euler’s \(\varphi(30)\)).
9.9 The Birthday Problem
\(\mathrm{P}(X = r) = \bigl(1 - \frac1n\bigr)\cdots\bigl(1 - \frac{r - 2}{n}\bigr)\frac{r - 1}{n}\), and these sum to \(1\). For the expectation, \(\mathrm{P}(Y = r)\) is counted once in each of \(\mathrm{P}(Y \geq 1), \ldots, \mathrm{P}(Y \geq r)\). Write \(Q_k = \mathrm{P}(X > k) = \prod_{j=1}^{k-1}\bigl(1 - \frac jn\bigr)\). Then \(\mathrm{E}(X) = \sum(k + 1)\frac kn Q_k\) and also \(\mathrm{E}(X) = 1 + \sum Q_k\); using \(\sum\frac knQ_k = 1\) and subtracting gives \(\sum Q_k\bigl(1 - \frac{k^2}{n}\bigr) = 0\).
\(\binom k3 \approx 365^2\ln2\) gives \(k \approx 82\); the approximation ignores the dependence between triples, and the true answer is \(88\).
\(14\) people. (Each pair is “close” with probability \(\frac{3}{365}\), and \(\binom k2\frac{3}{365} \approx \ln2\) gives \(k \approx 14\); an exact count gives a probability of about \(0.537\) for \(14\) and \(0.483\) for \(13\).)
Two people share day \(i\) with probability \(p_i^2\); add. By Cauchy–Schwarz, \(1 = \bigl(\sum p_i\bigr)^2 \leq 365\sum p_i^2\), with equality only when all \(p_i\) are equal.
9.10 Always Able to Give Change
The first person must have a £1 coin. Conditioning on the next few people splits into many cases (which coins you hold after each £2 customer), each finishing with the answers to parts (i) and (ii); collecting them gives \(\frac{m - 2}{m + 1}\). The reflection principle does it in one line.
The first vote must be for \(A\). Among the counts that start with \(A\), the bad ones (those that reach a tie) correspond, by reflecting the part before the first tie, to the counts that start with \(B\). So the number of good counts is \(\binom{a + b - 1}{a - 1} - \binom{a + b - 1}{a}\), and dividing by \(\binom{a + b}{a}\) gives \(\frac{a - b}{a + b}\).
\(((()))\), \((()())\), \((())()\), \(()(())\), \(()()()\). A bijection: the first bracket pair splits a sequence into the part inside it and the part after it; correspondingly the triangle on a fixed edge splits the polygon into two smaller polygons. Recurse on both.
Each £5 customer needs four £1 coins in change, so the path goes up \(1\) or down \(4\). A path can jump past the barrier instead of touching it, and reflection no longer matches the bad paths with a simple set.
9.11 Collecting the Set
The expected waits are \(\frac nn + \frac{n}{n - 1} + \cdots + \frac{n}{n/2 + 1} = n(H_n - H_{n/2}) \approx n(\ln n - \ln\frac n2) = n\ln2\).
Each card is missing with probability \((1 - \frac1n)^k\); add over the \(n\) cards. For \(95\%\), \((1 - \frac1n)^k \approx \mathrm{e}^{-k/n} = 0.05\), so \(k \approx n\ln20 \approx 3n\).
After \(t\) packets a given card has been seen fewer than twice with probability about \(\mathrm{e}^{-t/n}(1 + \frac tn)\). Both children finish roughly when the expected number of such cards, \(n\mathrm{e}^{-t/n}(1 + \frac tn)\), falls to about \(1\); that gives \(\frac tn \approx \ln n + \ln\ln n\), far less than \(2\ln n\).
\(\frac{1}{n + 1} < \ln\frac{n + 1}{n}\) (area under \(\frac1x\) on \([n, n + 1]\)), so \(H_n - \ln n\) decreases. By convexity the trapezium overestimates the area: \(\ln\frac{n + 1}{n} < \frac12\bigl(\frac1n + \frac{1}{n + 1}\bigr)\), so \(H_n - \ln n - \frac{1}{2n}\) increases. With \(n = 1\), \(\gamma > \frac12\); with \(n = 4\), \(\gamma < H_4 - \ln4 \approx 0.697\).
9.12 Random Subsets
Each element must be in at least one set: \(\bigl(\frac34\bigr)^n\), and \(\bigl(1 - 2^{-m}\bigr)^n\) in general.
\(|S \setminus A_2|\) has the same distribution as \(|A_2|\), and is independent of \(A_1\), so the probability is that of \(|A_1| + |S \setminus A_2| = n\). The pair \((A_1, S \setminus A_2)\) corresponds to a random subset of a \(2n\)-element set, of size \(n\) with probability \(\binom{2n}{n}/4^n\). Stirling (or Wallis, Section 4.4) gives \(\approx \frac{1}{\sqrt{\pi n}}\).
Each element goes in \(A\), in \(B\) or in neither: \(3^n\). The only ordered pair with \(A = B\) is \((\varnothing, \varnothing)\), so there are \(\frac{3^n - 1}{2} + 1 = \frac{3^n + 1}{2}\) unordered pairs.
For \(n = 3\), \(3\) sets (all the singletons, or all the pairs). For \(n = 4\), \(6\) sets (all the pairs). In general \(\binom{n}{\lfloor n/2\rfloor}\) (Sperner’s theorem).
9.13 Loaded Dice
\(1 = \bigl(\sum q_j\bigr)^2 \leq 6\sum q_j^2\), so \(\mathrm{P}(\text{same}) = \sum q_j^2 \geq \frac16 > \frac{1}{36}\).
Yes, and yes: the probability is \(\sum q_jr_j\), which is \(0\) if, say, one die always shows \(1\) and the other always \(2\).
The totals are \(0, 1, \ldots, 35\), each exactly once: uniform. The question requires both dice to be numbered \(1\) to \(6\), and here they are not.
No. Write \(\mathrm{P}(3) = q_1r_1s_1\) and \(\mathrm{P}(18) = q_6r_6s_6\), both \(\frac{1}{16}\). \(\mathrm{P}(8) + \mathrm{P}(13)\) includes the six terms \(q_1r_1s_6, \ldots, q_1r_6s_6\) (two \(1\)s and a \(6\), or two \(6\)s and a \(1\)), whose product is \((\mathrm{P}(3)\mathrm{P}(18))^3\). AM–GM gives \(\mathrm{P}(8) + \mathrm{P}(13) \geq 6 \cdot \frac{1}{16} > \frac{2}{16}\). The polynomial proof as given fails because \(1 + x + \cdots + x^{15}\) does have a real root, \(-1\). (It can be rescued: three real quintics need three real roots, and \(-1\) is only a simple root.)