返回题库

PUMaC 2009 · 组合(B 组) · 第 1 题

PUMaC 2009 — Combinatorics (Division B) — Problem 1

专题
Contest Math / 竞赛数学
难度
L3
来源
PUMaC

题目详情

英文原题

  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.
解析

英文解析

  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
    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 M7M^{7}, and M7M^{7} 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 ana_{n}, bnb_{n} for n ≥ 0: ana_{n} is the number of ways of passing the ball starting
    from a player and reaching that same player again on the n -th pass, bnb_{n} is the number of ways
    of passing the ball starting from a player and reaching a different player on the n -th pass.
    Then a0=0a_{0}=0, b1=1b_{1}=1 and
    an+1=2bnbn+1=an+bna_{n+1}=2b_{n}b_{n+1}=a_{n}+b_{n}
    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 ana_{n}.