2015 AIME II 第 12 题

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

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

12.

1010 个字母组成、且每个字母都是 A 或 B 的字符串共有 210=10242^{10} = 1024 个。求其中不含超过 33 个连续相同字母的字符串个数。

There are 210=10242^{10} = 1024 possible 1010-letter strings in which each letter is either an A or a B. Find the number of such strings that do not have more than 33 adjacent letters that are identical.

答案:548
知识点:递推计数有限制的排列
难度评级:2890
解答:

条件说明每一段最长连续相同字母的长度至多为 33。令 sns_n 表示以 A 开头的有效 nn 位字符串个数;由对称性,答案为 2s102s_{10}。去掉第一段(长度为 1122, 或 33) 后,剩下的是一个以 B 开头的更短有效字符串,所以 sn=sn1+sn2+sn3.s_n = s_{n-1} + s_{n-2} + s_{n-3}.

s1=1s_1 = 1s2=2s_2 = 2s3=4s_3 = 4, 开始,序列依次为 7,13,24,44,81,149,2747, 13, 24, 44, 81, 149, 274,所以 s10=274s_{10} = 274

有效字符串数为 2274=5482 \cdot 274 = 548

The condition says every maximal run of identical letters has length at most 3.3. Let sns_n count the valid strings of length nn whose first letter is A; by symmetry the answer is 2s10.2s_{10}. Removing the first run (of length 1,1, 2,2, or 33) leaves a valid shorter string beginning with B, so sn=sn1+sn2+sn3.s_n = s_{n-1} + s_{n-2} + s_{n-3}.

Starting from s1=1,s_1 = 1, s2=2,s_2 = 2, s3=4,s_3 = 4, the sequence runs 7,13,24,44,81,149,274,7, 13, 24, 44, 81, 149, 274, so s10=274.s_{10} = 274.

The number of valid strings is 2274=548.2 \cdot 274 = 548.

← 第 11 题#11
完整试卷

其他年份的第 12 题