2015 AIME II Problem 12

Below is the professionally curated solution for Problem 12 of the 2015 AIME II, from LIVE by Po-Shen Loh. You can also try the full timed exam, view all 2015 AIME II solutions, or check the answer key.

All of the real AMC 8, AMC 10, AMC 12, and AIME problems in our complete solution collection are used with official legal permission of the Mathematical Association of America (MAA).

Concepts:recursive countingarrangements with restrictions

Difficulty rating: 2890

12.

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.

Solution:

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.

← Problem 11Full ExamProblem 13

Problem 12 in Other Years