QlarIITy

MathematicsJEE Main 2021 · 1 SeptemberInteger

All the arrangements, with or without meaning, of the word FARMERFARMER are written excluding any word that has two RR appearing together. The arrangements are listed serially in the alphabetic order as in the English dictionary. Then the serial number of the word FARMERFARMER in this list is _____ .

Try it before you look.The full solution is on this page, below the answer box, the moment you check. No sign-in needed.

Solution

Core idea. A restricted list is counted by removing the forbidden arrangements from each block.

Concept refresher. Arrangements of nn letters with two alike number n!2!\dfrac{n!}{2!}; those with the two alike letters together number (n−1)!(n - 1)!, so those with them apart number

N=n!2!−(n−1)!N = \dfrac{n!}{2!} - (n - 1)!

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.

  1. Step 1: Blocks before F

    With A or E first, the other five letters have 5!2!=60\dfrac{5!}{2!} = 60 arrangements, of which 4!=244! = 24 have the Rs together. So each block has 36 valid words, 72 in all.

  2. 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.

  3. 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 6!2!−5!=240\dfrac{6!}{2!} - 5! = 240 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: n!2!−(n−1)!\dfrac{n!}{2!} - (n - 1)!

More on Permutations