Exercise 1.30

With definitions as in the previous problem, find the probability that a random n-letter word is a palindrome for n = 7 and for n = 8.

Answers

Suppose the word consists of 7 letters. Once we choose the first letter, the seventh one has to be the same. Once we choose the second letter, the sixth one has to be the same. In general, we are free to choose 4 letters. Hence, the probability that a 7 letter word is a palindrome is

244 247 = 1 243

If the word consists of 8 letters, then there are 248 possible words, but for a palindrome, the number of letters we are free to choose is still 4. Hence, the probability is

244 248 = 1 244

User profile picture
2021-12-05 00:00
Comments