Break into cases based on the length of
Case .
Once we choose the first letter, the last is chosen for us, but we are still free to choose the middle letter. So there are palindromes of length
Case .
Once we choose the first two letters, the last two are chosen for us. So there are also palindromes of length
Case .
Once we choose the first two letters, the last two are chosen for us, but we are still free to choose the middle letter. So there are palindromes of length
Case .
Once we choose the first three letters, the last three are chosen for us. So there are also palindromes of length
Total.
Applying the
Addition Rule to these non-overlapping cases, we obtain
as the number of palindromes length to