PUMaC 2009 · 组合(B 组) · 第 1 题
PUMaC 2009 — Combinatorics (Division B) — Problem 1
题目详情
英文原题
- Three people, John, Macky, and Rik, play a game of passing a basketball from one to another.
Find the number of ways of passing the ball starting with Macky and reaching Macky again
at the end of the seventh pass.
解析
英文解析
- Three people, John, Macky, and Rik, play a game of passing a basketball from one to another.
Find the number of ways of passing the ball starting with Macky and reaching Macky again
on the 7th pass.
Solution. 42. Consider a graph with 3 verticies, corresponding to each player. Draw an edge
between all pairs of people. Now, write down the adjacency matrix for this graph, and call it
M. We are interested in the upper left entry of , and can be computed using repeated
squaring, to get 42 as the answer.
Alternative Solution: We can rephrase the above solution in terms of recursions.
Define the sequences , for n ≥ 0: is the number of ways of passing the ball starting
from a player and reaching that same player again on the n -th pass, is the number of ways
of passing the ball starting from a player and reaching a different player on the n -th pass.
Then , and
since, for example: the ball can reach the same player on the n + 1-st pass if and only if it
reached any of the two other players on the n -th pass. These recursions can be easily solved,
or you can use them to compute the first few values of .