QlarIITy

MathematicsJEE Main 2022 · 25 JulyInteger

The letters of the word 'MANKIND' are written in all possible orders and arranged in serial order as in an English dictionary. Then the serial number of the word 'MANKIND' 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. The rank of a word is one more than the number of words before it.

Concept refresher. With repeated letters a block is smaller: if nn letters remain of which two are alike, each different choice of the next letter starts a block of the arrangements of the other n−1n - 1 letters,

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

when both alike letters are still among them.

Picture the situation. In alphabetical order the letters are A, D, I, K, M, N, N. 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 MANKIND are counted one letter at a time.

Approach. Count the words that come before the given word, letter by letter, and add one.

  1. Step 1: Before the first letter

    In alphabetical order the letters are A, D, I, K, M, N, N. Each of A, D, I, K as first letter leaves six letters with two Ns, giving 6!2!=360\dfrac{6!}{2!} = 360 words each, 1440 in all.

  2. Step 2: The later letters

    After M, nothing is smaller than A. After MA, the letters D, I, K are smaller than N, each leaving four letters with two Ns: 3×4!2!=363 \times \dfrac{4!}{2!} = 36. After MAN, D and I are smaller than K: 2×3!=122 \times 3! = 12. After MANK, D is smaller than I: 2!=22! = 2. After MANKI, D is smaller than N: 1.

  3. Step 3: The rank

    So 1440+36+12+2+1=14911440 + 36 + 12 + 2 + 1 = 1491 words come before MANKIND, and its serial number is 1492.

Answer. 1492

Sanity check. There are 7!2!=2520\dfrac{7!}{2!} = 2520 words in all. The words starting with MA number 5!2!=60\dfrac{5!}{2!} = 60 and run from 1441 to 1500, so MANKIND lies in that range.

Common wrong answers

  • 1491: The value 1491 is the number of words before MANKIND; the word itself is one further on.
  • 2968: Ignoring the repeated N makes the blocks 6!=7206! = 720 and 4!=244! = 24 and gives 2968.

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