0%

Problem 679


Problem 679


FREEFAREA

Let S be the set consisting of the four letters
${\texttt{A'},\texttt{E’},\texttt{F'},\texttt{R’}}.Forn\ge 0,letS^*(n)denotethesetofwordsoflengthnconsistingoflettersbelongingtoS.Wedesignatethewords\texttt{FREE}, \texttt{FARE}, \texttt{AREA}, \texttt{REEF}$ as keywords.

Let f(n) be the number of words in S(n) that contains all four keywords exactly once.

This first happens for n=9, and indeed there is a unique 9 lettered word that contain each of the keywords once: FREEFAREA
So, f(9)=1.

You are also given that f(15)=72863.

Find f(30).


FREEFAREA

S为包含四个字母的集合${\texttt{A'},\texttt{E’},\texttt{F'},\texttt{R’}}n\ge 0S^*(n)Sn\texttt{FREE}, \texttt{FARE}, \texttt{AREA}, \texttt{REEF}$作为关键词

f(n)S(n)中恰好包含四个关键词各一次的字符串数目。

n=9时首次出现满足要求的字符串,且唯一的拥有9个字母的此类字符串是FREEFAREA
因此f(9)=1

已知f(15)=72863

f(30)


Gitalking ...