If we defined "Word" as a combination of 3 letters, and any letter could appear one, two or three times in the same word.
Then how many words can we get from English letters ?
words don't have to be meaningful consider Abc as a word and Aaa, Dbd and so on..
there are 26 letter in English.
divide the words into 3 categories so you could calculate their sum easily.