words that contain some palindrome
Source: 2024 Girls in Mathematics Tournament, Level A, Problem 1
October 26, 2024
combinatorics
Problem Statement
A word is a sequence of capital letters of our alphabet (that is, there are 26 possible letters). A word is called palindrome if has at least two letters and is spelled the same forward and backward. For example, the words "ARARA" e "NOON" are palindromes, but the words "ESMERALDA" and "A" are not palindromes. We say that a word contains a word if there are consecutive letters of that together form the word . For example, the word "ARARA" contains the word "RARA" and also the word "ARARA", but doesn't contain the word "ARRA".
Compute the number of words of 14-letter that contain some palindrome.