2008 AIME I 第 11 题

先试着解答 2008 AIME I 第 11 题,然后核对你的答案与精心整理的解答,解答来自 LIVE by Po-Shen Loh。你也可以参加完整限时模拟考试、查看全部 2008 AIME I 解答,或核对答案

所有题目均经美国数学协会(MAA)官方合法授权使用。

11.

考虑只由 AABB 组成的序列,并且它满足:每一段连续的 AA 的长度都是偶数, 每一段连续的 BB 的长度都是奇数。这样的序列例子有 AAAABB, 和 AABAAAABAA, 而 BBABBBAB 不是这样的序列。长度为 1414 的这种序列有多少个?

Consider sequences that consist entirely of AA's and BB's and that have the property that every run of consecutive AA's has even length, and every run of consecutive BB's has odd length. Examples of such sequences are AA,AA, B,B, and AABAA,AABAA, while BBABBBAB is not such a sequence. How many such sequences have length 14?14?

答案:172
知识点:递推计数有限制的排列奇偶性
难度评级:2920
解答:

ana_nbnb_n 分别表示长度为 nn、以 AA 开头和以 BB 开头的合法序列数。以 AA 开头的序列先是 AAAA,后面接一个长度为 n2n - 2 的任意合法序列(可以为空),所以 an+2=an+bna_{n+2} = a_n + b_n,其中空序列计为一个。以 BB 开头的序列要么先是单个 BB,后面接以 AA 开头的序列;要么先是 BBBB,后面接以 BB 开头的序列,所以 bn+2=an+1+bnb_{n+2} = a_{n+1} + b_n

(a1,b1)=(0,1)(a_1, b_1) = (0, 1)(a2,b2)=(1,0)(a_2, b_2) = (1, 0) 开始,n=3,4,,14n = 3, 4, \ldots, 14 时的 (an,bn)(a_n, b_n) 依次为 (1,2), (1,1), (3,3), (2,4), (6,5), (6,10), (11,11), (16,21), (22,27), (37,43), (49,64), (80,92). \begin{aligned} &(1, 2),\ (1, 1),\ (3, 3),\ \\ &(2, 4),\ (6, 5),\ (6, 10),\ \\ &(11, 11),\ (16, 21),\ (22, 27),\ \\ &(37, 43),\ (49, 64),\ (80, 92). \end{aligned}

长度为 1414 的合法序列数为 80+92=17280 + 92 = 172

Let ana_n and bnb_n count valid sequences of length nn beginning with AA and with B.B. A sequence beginning with AA starts with AAAA followed by any valid sequence of length n2n - 2 (possibly empty), so an+2=an+bn,a_{n+2} = a_n + b_n, where the empty sequence counts once. A sequence beginning with BB starts either with a single BB followed by a sequence beginning with A,A, or with BBBB followed by a sequence beginning with B,B, so bn+2=an+1+bn.b_{n+2} = a_{n+1} + b_n.

Starting from (a1,b1)=(0,1)(a_1, b_1) = (0, 1) and (a2,b2)=(1,0),(a_2, b_2) = (1, 0), the pairs (an,bn)(a_n, b_n) for n=3,4,,14n = 3, 4, \ldots, 14 are (1,2), (1,1), (3,3), (2,4), (6,5), (6,10), (11,11), (16,21), (22,27), (37,43), (49,64), (80,92). \begin{aligned} &(1, 2),\ (1, 1),\ (3, 3),\ \\ &(2, 4),\ (6, 5),\ (6, 10),\ \\ &(11, 11),\ (16, 21),\ (22, 27),\ \\ &(37, 43),\ (49, 64),\ (80, 92). \end{aligned}

The number of valid sequences of length 1414 is 80+92=172.80 + 92 = 172.

← 第 10 题#10
完整试卷

其他年份的第 11 题