All the arrangements, with or without meaning, of the word are written excluding any word that has two appearing together. The arrangements are listed serially in the alphabetic order as in the English dictionary. Then the serial number of the word in this list is _____ .
Solution
Core idea. A restricted list is counted by removing the forbidden arrangements from each block.
Concept refresher. Arrangements of letters with two alike number ; those with the two alike letters together number , so those with them apart number
Picture the situation. The letters in alphabetical order are A, E, F, M, R, R. Only arrangements with the two Rs separated are listed. So every block of the dictionary shrinks: from all the words with a given start, those with the two Rs side by side are thrown out. The rank is then found as usual, but with these reduced block sizes.
Approach. Count the valid words in the blocks before F, then the valid words inside the F block that come before the given word.
Step 1: Blocks before F
With A or E first, the other five letters have arrangements, of which have the Rs together. So each block has 36 valid words, 72 in all.
Step 2: Inside the F block
Words starting FAE have M, R, R left, and only FAERMR keeps the Rs apart. Words starting FAM have E, R, R left, and only FAMRER is valid. Words starting FARE are FAREMR and FARERM, both valid. That is 4 more.
Step 3: The rank
So 76 valid words come before FARMER, which is the next one, and its serial number is 77.
Answer. 77
Sanity check. The whole list has words: 36 for each of the first letters A, E, F, M and 96 for R. FARMER, in the third block, must lie between 73 and 108.
Common wrong answers
- 76: The value 76 is the number of valid words before FARMER; the word itself is one further on.
Key takeaway
The trap. Words with the two Rs together are not in the list and must not be counted.
How toppers think. They list the few words of the last small blocks instead of using a formula.
Remember. Apart:
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 ›