Maths Olympiad Prep

Library / /275 of 520

Combinatorics Difficulty 5.3 AIME, harder Find the answer

Example 2 Color each vertex of a square pyramid with one color, and make the endpoints of the same edge have different colors. If only 5 colors are available, then the total number of different coloring methods is \qquad

A number or a short expression. Spacing and $ signs are ignored.

Solution

Solution: Vertex SS can be colored with any of the mm colors, and the color on SS cannot appear on the vertices of the polygon A1A2AnA_{1} A_{2} \cdots A_{n}. The problem is then reduced to coloring the vertices of the polygon with m1m-1 colors, ensuring that adjacent vertices have different colors. Let there be ana_{n} ways to do this. Then,
a3=(m1)(m2)(m3). a_{3}=(m-1)(m-2)(m-3) .

For n>3n>3, consider the recurrence relation for ana_{n}. If starting from A1A_{1}, then A1A_{1} has (m1)(m-1) ways to be colored, and A2,,An1A_{2}, \cdots, A_{n-1} each have (m2)(m-2) ways to be colored, and finally to AnA_{n}, if only requiring AnA_{n} to be different from An1A_{n-1}, there are still (m2)(m-2) ways to color it. Thus, there are
(m1)(m2)n1 (m-1)(m-2)^{n-1}

ways in total. However, this calculation can be divided into two categories: one where AnA_{n} is different from A1A_{1}, which meets the requirement and is exactly ana_{n} ways; the other where AnA_{n} is the same as A1A_{1}, which does not meet the requirement, but by merging AnA_{n} and A1A_{1} into one point, we get an1a_{n-1} ways. Therefore,
{an+an1=(m1)(m2)n1,(n>3)a3=(m1)(m2)(m3). \left\{\begin{array}{l} a_{n}+a_{n-1}=(m-1)(m-2)^{n-1},(n>3) \\ a_{3}=(m-1)(m-2)(m-3) . \end{array}\right.

Transforming and recursively,
an(m2)n=[an1(m2)n1]=(1)2[an2(m2)n2]==(1)n2(m2)=(1)n(m2). \begin{array}{l} a_{n}-(m-2)^{n}=-\left[a_{n-1}-(m-2)^{n-1}\right] \\ =(-1)^{2}\left[a_{n-2}-(m-2)^{n-2}\right] \\ =\cdots \cdots \\ =(-1)^{n-2}(m-2) \\ =(-1)^{n}(m-2) . \end{array}

Thus, an=(m2)[(m2)n1+(1)n]a_{n}=(m-2)\left[(m-2)^{n-1}+(-1)^{n}\right].
Therefore, the total number of coloring methods for the entire pyramid is
N=m(m2)[(m2)n1+(1)n] N=m(m-2)\left[(m-2)^{n-1}+(-1)^{n}\right] \text {. }

In particular, for n=4,m=5n=4, m=5, we get
N=53(33+1)=420 N=5 \cdot 3\left(3^{3}+1\right)=420 \text {. }

Here, we see the shadow of an old problem: dividing a circular surface into n(n2)n(n \geqslant 2) sectors, denoted as S1,S2,,SnS_{1}, S_{2}, \cdots, S_{n}. Each sector can be colored with one of the three different colors: red, white, and blue, with the requirement that adjacent sectors have different colors. How many coloring methods are there?

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.