2023 SSMO Speed Round Problems/Problem 3
Problem
Pigs like to eat carrots. Suppose a pig randomly chooses 6 letters from the set Then, the pig randomly arranges the 6 letters to form a "word". If the 6 letters don't spell carrot, the pig gets frustrated and tries to spell it again (by rechoosing the 6 letters and respelling them). What is the expected number of tries it takes for the pig to spell "carrot"?
Solution
We first find the chance of the pig spelling "carrot" correctly in one try.
Solution 1a
First, out of the ways to choose the letters, only of them have the same letters as the word carrot. Then, given that the pig has chosen the words correctly, only out of the ways to spell the word correctly.
The probability is thus
Solution 1b
Considering each letter position individually, it is equally likely to be any of the possible letters. Thus, for each letter in carrot there is a chance the pig spells the letter in that position correctly. The answer is thus .
Now let be the expected number of turns required for the pig to guess correctly.
We have that which implies that