QlarIITy

MathematicsJEE Main 2024 · 29 JanuaryInteger

All the letters of the word GTWENTYGTWENTY 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 GTWENTYGTWENTY 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. In dictionary order, the words that begin with a smaller letter come first. If nn letters are left to arrange and one of them occurs twice, each choice of the next letter starts a block of

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

words, or (n−1)!(n - 1)! 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.

  1. 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 6!2!=360\dfrac{6!}{2!} = 360 words.

  2. Step 2: The later letters

    After G, the letters E and N are smaller than T, each with 5!2!=60\dfrac{5!}{2!} = 60 words, giving 120. After GT, the letters E, N and T are smaller than W, each with 4!=244! = 24 words, giving 72. After GTW the letters E, N, T, Y are already in increasing order, so nothing more is added.

  3. Step 3: The rank

    So 360+120+72=552360 + 120 + 72 = 552 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