The Antarctican language has an alphabet of just 16 letters. Interestingly, every word in the language has exactly 3 letters, and it is known that no word's first letter equals any word's last letter (for instance, if the alphabet were then and could not both be words in the language because is the first letter of a word and the last letter of a word; in fact, just alone couldn't be in the language). Given this, determine the maximum possible number of words in the language.
Problem 1236
Official solution
Solution:
1024
Every letter can be the first letter of a word, or the last letter of a word, or possibly neither, but not both. If there are different first letters and different last letters, then we can form different words (and the desired conditions will be met). Given the constraints , this product is maximized when , giving the answer.