Maths Olympiad Prep

Library / /65 of 66

, 2022

Combinatorics Difficulty 4.1 AIME Prove it Canada

A Bauman string is a string of letters that satisfies
the following two conditions.

Each letter in the string is AA, BB, CC, DD, or EE. No two adjacent letters in the string are the same. For example, AECDAECD and BDCECBDCEC are Bauman strings of length 4 and length 5, respectively, and ABBCABBC and DAEEEDAEEE are not Bauman strings.Figure 0 How many Bauman strings of length 5 are there in which the first letter and the last letter are both AA?Figure 1 Determine the number of Bauman strings of length 6 that contain more than one BB.Figure 2 Determine the number of Bauman strings of length 10 in which the first letter is CC and the last letter is DD.

Solution

Solution 1

For each Bauman string of length 5 in which the first and last
letters are both AA, the second and fourth letters are not AA. For such Bauman strings, either the third letter is AA, or the third letter is not AA. Case 1: The third letter is AA. In this case, the string is of the form AAAA\underline{\hspace{5mm}}A\underline{\hspace{5mm}}A. There are 4 choices for the second letter (B,C,DB,C,D, or EE) and 4 choices for the fourth letter, and so there are 4×4=164\times4=16 such Bauman strings. Case 2: The third letter is not AA. In this case, the string is of the form AxAA\underline{\hspace{5mm}}x\underline{\hspace{5mm}}A, where the third letter xx is B,C,DB,C,D, or EE, and so there are 4 choices for the third letter. The second letter must be different than the third letter and must not be AA, and so there are 3 choices for the second letter. Similarly, there are 3 choices for the fourth letter, and so there are 4×3×3=364\times3\times3=36 such Bauman strings. In total, the number of Bauman strings of length 5 in which the first and last letters are both AA is 16+36=5216+36=52. Solution 2 For each Bauman string of length 5 in which the first and last letters are both AA, either the second and fourth letters are the same, or they are different. Case 1: The second and fourth letters are the same. In this case, the string is of the form AxxAAx\underline{\hspace{5mm}}xA. There are 4 choices for the second letter (B,C,DB,C,D, or EE) and 1 choice for the fourth letter since it is the same as the second letter. The third letter must be different than the second and fourth letters (which are the same) and so there are 4 choices for the third letter. Thus, there are 4×1×4=164\times1\times4=16 such Bauman strings. Case 2: The second and fourth letters are different. In this case, the string is of the form AxyAAx\underline{\hspace{5mm}}\, yA, where xx and yy represent different letters. There are 4 choices for the second letter (B,C,DB,C,D, or EE) and 3 choices for the fourth letter (it is different than the second letter and not AA). The third letter must be different than the second and fourth letters (which are different) and so there are 3 choices for the third letter. Thus, there are 4×3×3=364\times3\times3=36 such Bauman strings. In total, the number of Bauman strings of length 5 in which the first and last letters are both AA is 16+36=5216+36=52. Solution 1 We may determine the number of Bauman strings of length 6 that contain more than one BB indirectly. That is, we may subtract the number of Bauman strings that contain 0 BB’s and the number of Bauman strings that contain exactly 1 BB from the total number of Bauman strings of length 6. For a Bauman string of length 6 (with no restrictions), there are 5 choices for the first letter and 4 choices for each of the remaining letters, and so there are a total of 5×45=51205\times4^5=5120 such strings. For a Bauman string of length 6 that contains 0 BB’s, there are 4 choices for the first letter and 3 choices for each of the remaining letters, and so there are a total of 4×35=9724\times3^5=972 such strings. Next, we count the number of Bauman strings that contain exactly 1 BB. If the first letter of the string is a BB, then there are 4 choices for the second letter and 3 choices for each of the remaining four letters. Similarly, if the last letter is a BB, then there are 4 choices for the letter adjacent to the BB and 3 choices for each of the remaining four letters. Thus, there are 1×4×34=3241\times4\times3^4=324 strings that begin with a BB and 324 strings that end with a BB. If the second letter of the string is a BB, then there are 4 choices for the first letter, 4 choices for the third letter, and 3 choices for each of the fourth, fifth and sixth letters. Thus, there are 4×1×4×33=4324\times1\times4\times3^3=432 such strings. Similarly, if the third, fourth or fifth letter in the string is a BB, then there are 432 such strings. In total, there are 51209722×3244×432=17725120-972-2\times324-4\times432=1772 Bauman strings of length 6 that contain more than one BB. Solution 2 A Bauman string of length 6 cannot contain more than 3 BB’s (confirm for yourself why this is true before proceeding). We may determine the number of Bauman strings of length 6 that contain more than one BB directly. That is, we may count the number of strings that contain exactly 3 BB’s and the number of strings that contain exactly 2 BB’s. Thus, there are two cases to consider. Case 1: The Bauman string has exactly 3 BB’s In this case, the string must take one of four possible forms: BBB,  BBB,  BBB,  BBB.B\underline{\hspace{5mm}}B\underline{\hspace{5mm}}B\underline{\hspace{5mm}},~~ B\underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B ,~~ B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B\underline{\hspace{5mm}}B ,~~ \underline{\hspace{5mm}}\,B\underline{\hspace{5mm}}B\underline{\hspace{5mm}}B. We begin by counting the number of strings of the form BBBB\underline{\hspace{5mm}}B\underline{\hspace{5mm}}B\underline{\hspace{5mm}}. There are 4 choices for the second letter (A,C,DA,C,D, or EE), 4 choices for the fourth letter, and 4 choices for the sixth letter, and so there are 43=644^3=64 such strings. Similarly, there are 43=644^3=64 strings of the form BBB\underline{\hspace{5mm}}\,B\underline{\hspace{5mm}}B\underline{\hspace{5mm}}B. It is worth noting that BBBB\underline{\hspace{5mm}}B\underline{\hspace{5mm}}B\underline{\hspace{5mm}} and BBB\underline{\hspace{5mm}}\,B\underline{\hspace{5mm}}B\underline{ }B have identical forms when one is read left to right and the
other right to left.

We may call such pairs of forms symmetric, and recognize that
under the same restrictions, symmetric forms have an equal number of
Bauman strings.

For strings of the form BBBB\underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B, there are 4 choices for the second letter, 4 choices for the fourth letter, and 3 choices for the fifth letter (since the fifth letter must be different than BB and different than the fourth letter, which is not BB), and so 42×3=484^2\times3=48 such strings. Since BBBB\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B\underline{\hspace{5mm}}B is symmetric to BBBB\underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B, there are similarly 42×3=484^2\times3=48 strings of this form. Thus, there are 2×64+2×48=2242\times64+2\times48=224 Bauman strings with exactly 3 BB’s. Case 2: The Bauman string has exactly 2 BB’s In this case, the string must take one of ten possible forms. Eight of these occur in one of the following four symmetric pairs BB  and  BB,       BB  and  BB,B\underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}} \textrm{ \ and \ } \underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B\underline{\hspace{5mm}}B \textrm{,\ \ \ \ \ \ \ } B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}} \textrm{ \ and \ } \underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B, BB  and  BB,       BB  and  BBB\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{ }B\underline{\hspace{5mm}} \textrm{ \ and \ } \underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B \textrm{,\ \ \ \ \ \ \ } \underline{\hspace{5mm}}B\underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}} \textrm{ \ and \ } \underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B\underline{\hspace{5mm}}B\underline{\hspace{5mm}} and the final two forms (which are not a symmetric pair) are BB  and  B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B \textrm{ \ and \ } BB.\underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B\underline{\hspace{5mm}}. We begin by counting the number of strings of the form BBB\underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}. There are 4 choices for the second letter (A,C,DA,C,D, or EE), 4 choices for the fourth letter, 3 choices for each of the fifth and sixth letters, and so there are 42×32=1444^2\times3^2=144 such strings. Similarly, there are 42×32=1444^2\times3^2=144 strings for each of the next five forms listed above, $BB,BB,BB,\$\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B\underline{\hspace{5mm}}B,\, B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,, \,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B, \, BB,B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,, \textrm{} and }
BB\underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B. For strings of the form

Figure for this problem

Figure for this problem

Figure for this problemBB\underline{\hspace{5mm}}B\underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}, there are 4 choices for the first letter, 4 choices for the third letter, 4 choices for the fifth letter, and 3 choices for the sixth letter, and so there are

Figure for this problem

Figure for this problem

Figure for this problem43×3=1924^3\times3=192suchstrings.Since such strings. Since BB\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B\underline{\hspace{5mm}}B\underline{\hspace{5mm}}issymmetricto is symmetric to BB\underline{\hspace{5mm}}B\underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}},therearesimilarly, there are similarly 43×3=1924^3\times3=192 strings of this form. Finally, there are

Figure for this problem

Figure for this problem

Figure for this problem4×33=1084\times3^3=108stringsoftheform strings of the form BBB\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B,and, and 43×3=1924^3\times3=192stringsoftheform strings of the form BB\underline{\hspace{5mm}}B\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}B\underline{\hspace{5mm}}.Thus,thereare. Thus, there are 6×144+2×192+6\times144+2\times192+
108+192 =1548 Bauman strings with exactly 2

Figure for this problem

Figure for this problem

Figure for this problemBs.Intotal,thereare’s. In total, there are 224+1548=1772 Bauman strings of length 6 that contain more than one

Figure for this problem

Figure for this problem

Figure for this problemB. Solution 1 Consider all Bauman strings of length

Figure for this problem

Figure for this problem

Figure for this problemnthatbeginwith that begin with C. There are 4 choices for each of the remaining

Figure for this problem

Figure for this problem

Figure for this problemn-1letters,andsothereare letters, and so there are 4^{n-1} such Bauman strings. Each of these strings either ends with

Figure for this problem

Figure for this problem

Figure for this problemD, or it does not end with

Figure for this problem

Figure for this problem

Figure for this problemD. We call those that end with

Figure for this problem

Figure for this problem

Figure for this problemD,, d_n,andwedefine, and we define |d_n| to be the number of such strings. Similarly, we call those that do not end in

Figure for this problem

Figure for this problem

Figure for this problemD,, x_n,andwedefine, and we define |x_n| to be the number of such strings. For example,

Figure for this problem

Figure for this problem

Figure for this problemd_1 represents the Bauman strings of length

Figure for this problem

Figure for this problem

Figure for this problem1thatbeginwith that begin with Candendwith and end with D, and since no such string exists, then

Figure for this problem

Figure for this problem

Figure for this problem|d_1|=0.Similarly,. Similarly, x_1 represents the Bauman strings of length

Figure for this problem

Figure for this problem

Figure for this problem1thatbeginwith that begin with Canddonotendwith and do not end with D,andso, and so |x_1|=1(thestringis (the string is C).Wemayconfirmthat). We may confirm that 4^{n-1}=|d_n|+|x_n|when when n=1,since, since 4^{1-1}=|d_1|+|x_1|=0+1.Further,weknowthat. Further, we know that |d_2|=1(thestringis (the string is CD),and), and |x_2|=3(thestringsare (the strings are CA,, CB,, CE), and again confirm that

Figure for this problem

Figure for this problem

Figure for this problem4^{2-1}=1+3. Next, consider the Bauman strings of length

Figure for this problem

Figure for this problem

Figure for this problemnthatbeginwith that begin with Canddonotendwith and do not end with D,thatis,, that is, x_n. Each of these strings could have a

Figure for this problem

Figure for this problem

Figure for this problemD added to its end to form a Bauman string of length

Figure for this problem

Figure for this problem

Figure for this problemn+1thatbeginswith that begins with Candendswith and ends with D,or, or d_{n+1}.Sinceaddinga. Since adding a D to the end of every string

Figure for this problem

Figure for this problem

Figure for this problemx_n gives all possible strings

Figure for this problem

Figure for this problem

Figure for this problemd_{n+1},then, then |d_{n+1}| = |x_n|. From our earlier work, we may confirm that

Figure for this problem

Figure for this problem

Figure for this problem|d_2|=|x_1|=1.Further,. Further, |x_{n+1}| = 4|d_n| +
3|x_n|. Why is this true? Every Bauman string of length

Figure for this problem

Figure for this problem

Figure for this problemn+1thatbeginswith that begins with C and does not end with

Figure for this problem

Figure for this problem

Figure for this problemD,thatis, that is x_{n+1},iseitherastring, is either a string d_nwithan with an A,, B,, C,or, or Eaddedtoitsend,oritisastring added to its end, or it is a string x_n that has a choice of 3 letters added to its end (the letter added can not be

Figure for this problem

Figure for this problem

Figure for this problemD and it can not be the last letter of

Figure for this problem

Figure for this problem

Figure for this problemx_n,leaving3possibilities).Thenumberofstrings, leaving 3 possibilities). The number of strings d_nthathave that have A,, B,, C,or, or Eaddedtoitsendis added to its end is 4|d_n|.Thenumberofstrings. The number of strings x_n that have a choice of 3 letters added to its end is

Figure for this problem

Figure for this problem

Figure for this problem3|x_n|.Therefore,weconcludethat. Therefore, we conclude that |x_{n+1}| =
4|d_n| + 3|x_n|. From our earlier work, we may confirm that

Figure for this problem

Figure for this problem

Figure for this problem|x_2|=4|d_1|+3|x_1|=4(0)+3(1)=3. We use these two formulas

Figure for this problem

Figure for this problem

Figure for this problem|d_{n+1}| =
|x_n|and and |x_{n+1}| = 4|d_n| + 3|x_n|,whichareequivalentto, which are equivalent to |d_{n}| = |x_{n-1}|and and |x_{n}| = 4|d_{n-1}| + 3|x_{n-1}|, to build the table below.

Figure for this problem

Figure for this problem

Figure for this problemn |d_n|=|x_{n-1}| |x_n|=4|d_{n-1}| + 3|x_{n-1}|1 1 |d_1|=0 |x_1|=12 2 |d_2|=1 |x_2|=33 3 |d_3|=|x_{2}|=3 |x_3|=4|d_{2}| +
3|x_{2}|=4(1)+3(3)=134 4 |d_4|=|x_{3}|=13 |x_4|=4|d_{3}| +
3|x_{3}|=4(3)+3(13)=515 5 |d_5|=51 |x_5|=4(13)+3(51)=2056 6 |d_6|=205 |x_6|=4(51)+3(205)=8197 7 |d_7|=819 |x_7|=4(205)+3(819)=32778 8 |d_8|=3277 |x_8|=4(819)+3(3277)=13\,1079 9 |d_9|=13\,107 |x_9|=4(3277)+3(13\,107)=52\,42910 10 |d_{10}|=52\,429 not needed Therefore, the number of Bauman strings of length

Figure for this problem

Figure for this problem

Figure for this problem10 in which the first letter is

Figure for this problem

Figure for this problem

Figure for this problemC and the last letter is

Figure for this problem

Figure for this problem

Figure for this problemDis52429.Solution2Let is 52 429. Solution 2 Let S_{n} be the set of Bauman strings of length

Figure for this problem

Figure for this problem

Figure for this problemn in which the first letter is

Figure for this problem

Figure for this problem

Figure for this problemC and the last letter is

Figure for this problem

Figure for this problem

Figure for this problemD.Further,wedefine. Further, we define |S_{n}| to be the number of such strings. For example,

Figure for this problem

Figure for this problem

Figure for this problemS_2=\{CD\}andso and so |S_{2}|=1,and, and S_3=\{CAD, CBD, CED\}andso and so |S_{3}|=3.Eachstringin. Each string in S_{10}isoftheform is of the form CDC\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,\underline{\hspace{5mm}}\,Dor or CT_8Dwhere where T_8 is a Bauman string of length 8 that does not begin with

Figure for this problem

Figure for this problem

Figure for this problemC and does not end with

Figure for this problem

Figure for this problem

Figure for this problemD.Therefore,. Therefore, |S_{10}|=|T_8|. The number of such strings,

Figure for this problem

Figure for this problem

Figure for this problem|T_8|,isequalto, is equal to the total number of Bauman strings of length 8the number of Bauman strings of length 8 that begin with Cthe number of Bauman strings of length 8 that end with D+the number of Bauman strings of length 8 that begin with C and end with D\begin{array}{cl} & \text{the total number of Bauman strings of length 8}\\ - & \text{the number of Bauman strings of length 8 that begin with } C\\ - & \text{the number of Bauman strings of length 8 that end with } D\\ + & \text{the number of Bauman strings of length 8 that begin with } C \text{ and end with } D \end{array} In the above, we note that strings beginning with

Figure for this problem

Figure for this problem

Figure for this problemC include those that end with

Figure for this problem

Figure for this problem

Figure for this problemD, as well as others. Similarly, strings that end with

Figure for this problem

Figure for this problem

Figure for this problemD include those that begin with

Figure for this problem

Figure for this problem

Figure for this problemC, as well as others. Since we have subtracted the number of strings that begin with

Figure for this problem

Figure for this problem

Figure for this problemCandendwith and end with D twice from the total, we conclude by adding the number of such strings. For a Bauman string of length 8, there are 5 choices for the first letter and 4 choices for each of the remaining 7 letters. Thus, the total number of Bauman strings of length 8 is equal to

Figure for this problem

Figure for this problem

Figure for this problem5×475\times4^7. For a Bauman string of length 8 that begins with

Figure for this problem

Figure for this problem

Figure for this problemC, there is 1 choice for the first letter and 4 choices for each of the remaining 7 letters. Thus, the total number of Bauman strings of length 8 that begin with

Figure for this problem

Figure for this problem

Figure for this problemCisequalto is equal to 1×471\times4^7. Also, the total number of Bauman strings of length 8 that end with

Figure for this problem

Figure for this problem

Figure for this problemDisequalto is equal to 1×471\times4^7. The number of Bauman strings of length 8 that begin with

Figure for this problem

Figure for this problem

Figure for this problemCandendwith and end with Disequalto  is equal to |S_8|.Therefore,weget. Therefore, we get S10=T8=5×471×471×47+S8=3×47+S8|S_{10}|=|T_8|=5\times4^7-1\times4^7-1\times4^7+|S_8|=3\times4^7+|S_8| and so the number of Bauman strings of length 10 that begin with

Figure for this problem

Figure for this problem

Figure for this problemCandendwith and end with D is dependent on the number of Bauman strings of length 8 that begin with

Figure for this problem

Figure for this problem

Figure for this problemCandendwith  and end with D. At this point, we could repeat the process above to determine

Figure for this problem

Figure for this problem

Figure for this problem|S_8|, however it may be more efficient to generalize the work above to determine a formula for

Figure for this problem

Figure for this problem

Figure for this problem|S_n|.Forintegers. For integers n3n\geq3,eachstringin, each string in S_{n}isoftheform is of the form CT_{n-2}Dwhere where T_{n-2}isaBaumanstringoflength is a Bauman string of length n-2 that does not begin with

Figure for this problem

Figure for this problem

Figure for this problemC and does not end with

Figure for this problem

Figure for this problem

Figure for this problemD. The number of such strings,

Figure for this problem

Figure for this problem

Figure for this problem|T_{n-2}|,isequalto, is equal to the total number of Bauman strings of length n2the number of Bauman strings of length n2 that begin with Cthe number of Bauman strings of length n2 that end with D+the number of Bauman strings of length n2 that begin with C and end with D\begin{array}{cl} & \text{the total number of Bauman strings of length } n-2\\ - & \text{the number of Bauman strings of length } n-2 \text{ that begin with } C\\ - & \text{the number of Bauman strings of length } n-2 \text{ that end with } D\\ + & \text{the number of Bauman strings of length } n-2 \text{ that begin with } C \text{ and end with } D \end{array}ForaBaumanstringoflength For a Bauman string of length n-2, there are 5 choices for the first letter and 4 choices for each of the remaining

Figure for this problem

Figure for this problem

Figure for this problemn-3 letters. Thus, the total number of Bauman strings of length

Figure for this problem

Figure for this problem

Figure for this problemn-2isequalto is equal to 5×4n35\times4^{n-3}.ForaBaumanstringoflength. For a Bauman string of length n-2thatbeginswith that begins with C, there is 1 choice for the first letter and 4 choices for each of the remaining

Figure for this problem

Figure for this problem

Figure for this problemn-3 letters. Thus, the total number of Bauman strings of length

Figure for this problem

Figure for this problem

Figure for this problemn-2thatbeginwith that begin with Cisequalto is equal to 1×4n31\times4^{n-3}. Also, the total number of Bauman strings of length

Figure for this problem

Figure for this problem

Figure for this problemn-2thatendwith that end with Disequalto is equal to 1×4n31\times4^{n-3}. The number of Bauman strings of length

Figure for this problem

Figure for this problem

Figure for this problemn-2thatbeginwith that begin with Candendwith and end with Disequalto  is equal to |S_{n-2}|.Therefore,weget. Therefore, we get Sn=Tn2=5×4n31×4n31×4n3+Sn2=3×4n3+Sn2, for integers n3.|S_{n}|=|T_{n-2}|=5\times4^{n-3}-1\times4^{n-3}-1\times4^{n-3}+|S_{n-2}|=3\times4^{n-3}+|S_{n-2}|, \textrm{ for integers } n\geq3. Using this recursive formula and the fact that

Figure for this problem

Figure for this problem

Figure for this problem|S_2|=1,weget, we get S4=3×443+S42=3×4+S2=13S6=3×463+S62=3×43+S4=205S8=3×483+S82=3×45+S6=3277S10=3×4103+S102=3×47+S8=52429\begin{array}{lllllll} |S_4|&=&3\times4^{4-3}+|S_{4-2}|&=&3\times4+|S_2|&=&13\\ |S_6|&=&3\times4^{6-3}+|S_{6-2}|&=&3\times4^3+|S_4|&=&205\\ |S_8|&=&3\times4^{8-3}+|S_{8-2}|&=&3\times4^5+|S_6|&=&3277\\ |S_{10}|&=&3\times4^{10-3}+|S_{10-2}|&=&3\times4^7+|S_8|&=&52\,429 \end{array} The number of Bauman strings of length

Figure for this problem

Figure for this problem

Figure for this problem10 in which the first letter is

Figure for this problem

Figure for this problem

Figure for this problemC and the last letter is

Figure for this problem

Figure for this problem

Figure for this problemD$ is 52 429.

Want a route through all this instead of an archive? The track puts 2,604 problems in a working order, from Junior Challenge level to the IMO shortlist.

Source: CEMC, University of Waterloo, licensed CC-BY-NC-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.