CombinatoricsResolved
Counting words modulo a huge power of 3 without an enormous recurrence
co_op_cactus·(edited)
I can write . Can we compare that with directly, without evaluating either sum?
Problem:
Let be a non-negative integer and let be a nonempty finite set. We define a word from the alphabet of length as a sequence of elements of of length . (Notice that by definition the empty sequence is a word of length .)
* Let be the set of all words from the nine-element alphabet , whose lengths are at most .
* Moreover, let be the set of all words from the four-element alphabet , whose lengths are at most and which contain the element exactly twice.
(For example, , because it has length and contains the letter twice, but , because it contains the letter only once.)
Prove that the difference is divisible by .
Source: Baltic Way 2023 Shortlist · MNET-01J2
Open MNET-01J2 in the question bank →