QlarIITy

MathematicsJEE Main 2026 · 24 JanuarySingle correct

The letters of the word "UDAYPUR" are written in all possible ways with or without meaning and these words are arranged as in a dictionary. The rank of the word "UDAYPUR" is

  1. Option A: 15791579
  2. Option B: 15781578
  3. Option C: 15801580
  4. Option D: 15811581
Try it before you look.The full solution is on this page, below the options, the moment you check. No sign-in needed.

Solution

Core idea. The rank is the number of words before the given word, plus one.

Concept refresher. The number of arrangements of nn letters in which one letter occurs pp times and the rest are different is

N=n!p!N = \frac{n!}{p!}

Here NN counts the distinct arrangements, and the formula holds when the other n−pn - p letters are all different. The rank of a word in dictionary order is one more than the number of arrangements that come before it. These are counted position by position: for each position, count the arrangements that agree with the word so far and have a smaller letter in that position.

Approach. Arrange the letters alphabetically, then go through UDAYPUR position by position, counting the words with a smaller letter at that position, and add 1 at the end.

  1. Step 1: Order the letters

    The letters of UDAYPUR are U,D,A,Y,P,U,RU, D, A, Y, P, U, R, with UU twice. In alphabetical order:

    A,D,P,R,U,U,YA, D, P, R, U, U, Y
  2. Step 2: First letter U

    Words starting with AA, DD, PP or RR come first. For each, the other six letters include both UU's:

    4×6!2!=4×360=14404 \times \frac{6!}{2!} = 4 \times 360 = 1440
  3. Step 3: Second letter D

    After UU, the letters left are A,D,P,R,U,YA, D, P, R, U, Y, all different. Only AA is smaller than DD:

    1×5!=1201 \times 5! = 120
  4. Step 4: Third and fourth letters

    After UDUD, the letters left are A,P,R,U,YA, P, R, U, Y; the third letter AA is the smallest, so nothing is added. After UDAUDA, the letters left are P,R,U,YP, R, U, Y; three of them are smaller than YY:

    3×3!=183 \times 3! = 18
  5. Step 5: Last letters and the rank

    After UDAYUDAY, the letters left are P,R,UP, R, U; the fifth letter PP is the smallest. After UDAYPUDAYP, the letters left are R,UR, U; RR is smaller than UU, giving the one word UDAYPRU. The words before UDAYPUR number

    1440+120+0+18+0+1=15791440 + 120 + 0 + 18 + 0 + 1 = 1579

    so the rank of UDAYPUR is 1579+1=15801579 + 1 = 1580.

Answer. (C) 15801580

Sanity check. The total number of words is 7!2!=2520\frac{7!}{2!} = 2520, and words starting with UU occupy ranks 14411441 to 1440+6!=21601440 + 6! = 2160; the rank 15801580 falls inside this block, as it must.

Why the other options are wrong

  • (A) There are 1440+120+18+1=15791440 + 120 + 18 + 1 = 1579 words before UDAYPUR; the word itself comes next, so its rank is 1579+1=15801579 + 1 = 1580.
  • (B) Missing the single word UDAYPRU, which comes before UDAYPUR because R<UR < U in the sixth place, gives 15781578 words before it; the correct count is 15791579, and the rank is 15801580.
  • (D) A rank of 15811581 would need 15801580 words before UDAYPUR; the count by first letters is 1440+120+18+1=15791440 + 120 + 18 + 1 = 1579, so 15811581 counts one word too many.

Key takeaway

The trap. Stopping at 15791579, the count of earlier words, without adding the word itself.

How toppers think. They write the alphabetical order once and cross letters out as they fix each position.

Remember. With one letter repeated pp times among nn letters, there are n!p!\frac{n!}{p!} arrangements.

More on Permutations