Dog dictionary
Source: Rioplatense Olympiad L3 2019
December 10, 2019
combinatorics
Problem Statement
In the dog dictionary the words are any sequence of letters and for example , and . For each word, your "profundity" will be the quantity of subwords we can obtain by the removal of some letters.
For each positive integer , determine the largest "profundity" of word, in dog dictionary, can have with letters.
Note: The word has "profundity" because your subwords are .