mental wrote:
letter code
as the alphabets can be repeated, and their odder matters
single alphabet code: 26 ways..................................(code = X)
double alphabet code: 26*26 ways............................(code = XX)
triple alphabet code: 26*26*26 ways.........................(code = XXX)
add all three you get 26 + 26^2 + 26^3 = 18278
..........................................................................
I used the same logic, but I want to add that there was no need to calculate 26 + 26^2 + 26^3 = 18278
look at units digit. if number has units digit 6, any power of this number will have units digit 6
we have 3 numbers with units digit 6. Guess, the summ of these numbers will have what number in units digit? Only 8!!!!!! 6*3 = 18
We have only 1 choise with units digit equal to 8
Hey, we saved 1 minute perhaps!!!!
