MathDB
CMI 2018 #5

Source: CMI 2018

August 31, 2018
combinatoricsrecursions

Problem Statement

An alien\textrm{alien} script has nn letters b1,b2,,bnb_1,b_2,\dots,b_n. For some k<n/2k<n/2 assume that all words formed by any of the kk letters (written left to right) are meaningful. These words are called kk-words. Such a kk-word is considered <spanclass=latexbold>sacred</span><span class='latex-bold'>sacred</span> if:
i. no letter appears twice and, ii. if a letter bib_i appears in the word then the letters bi1b_{i-1} and bi+1b_{i+1} do not appear. (Here bn+1=b1b_{n+1} = b_1 and b0=bnb_0 = b_n).
For example, if n=7n = 7 and k=3k = 3 then b1b3b6,b3b1b6,b2b4b6b_1b_3b_6, b_3b_1b_6, b_2b_4b_6 are sacred 33-words. On the other hand b1b7b4,b2b2b6b_1b_7b_4, b_2b_2b_6 are not sacred. What is the total number of sacred kk-words? Use your formula to find the answer for n=10n = 10 and k=4k = 4.