All the letters of the word are written in all possible ways with or without meaning and these words are written as in a dictionary. The serial number of the word is
Solution
Core idea. The rank of a word is one more than the number of words before it.
Concept refresher. In dictionary order, the words that begin with a smaller letter come first. If letters are left to arrange and one of them occurs twice, each choice of the next letter starts a block of
words, or once the repeated letter has been used.
Picture the situation. In alphabetical order the letters are E, G, N, T, T, W, Y. A dictionary lists first every word that starts with a smaller letter than the given word, then, among words with the same first letter, those with a smaller second letter, and so on. So the words before GTWENTY are counted one letter at a time.
Approach. Count the words that come before the given word, letter by letter, and add one.
Step 1: Before the first letter
In alphabetical order the letters are E, G, N, T, T, W, Y. Only E comes before G, and the six letters left, with T twice, give words.
Step 2: The later letters
After G, the letters E and N are smaller than T, each with words, giving 120. After GT, the letters E, N and T are smaller than W, each with words, giving 72. After GTW the letters E, N, T, Y are already in increasing order, so nothing more is added.
Step 3: The rank
So words come before GTWENTY, and its serial number is 553.
Answer. 553
Sanity check. GTWENTY is the first word starting with GTW, since its last four letters are in increasing order; the words before it are exactly those starting with E, GE, GN, GTE, GTN and GTT.
Common wrong answers
- 552: Counting the 552 words before it and not adding 1 for the word itself.
- 913: Ignoring the repeated T in the first block gives 720 instead of 360, and a serial number 913.
Key takeaway
The trap. The word itself is not among the words counted before it.
How toppers think. They write the letters in alphabetical order before counting anything.
Remember. Rank: words before, plus one.
More on Permutations
- The number of 4 -letter words, with or without meaning, each consisting of two vowels and two consonants…
- The number of ways, of forming a queue of 4 boys and 3 girls such that all the girls are not together, is:
- Three persons enter in a lift at the ground floor. The lift will go up to 10^th floor. The number of ways…
- All 55 on Permutations ›