NEETJEE.guru
MathematicsJEE

Finding the Rank of a Word in Dictionary Order — JEE Notes

By Admin 13 November 2026 Updated 26 November 2026 11 min read 23 views
On this page· 13 sections
Overview

Source & scope. Class 11 Mathematics, Chapter 6 Permutations and Combinations, Example 22 (Miscellaneous Examples section). Builds on: Permutations of Objects Not All Distinct and nPr Formula for Permutations of Distinct Objects. See also: Fixing Particular Objects in Particular Positions, the "fix...

Source & scope. Class 11 Mathematics, Chapter 6 Permutations and Combinations, Example 22 (Miscellaneous Examples section). Builds on: Permutations of Objects Not All Distinct and nPr Formula for Permutations of Distinct Objects. See also: Fixing Particular Objects in Particular Positions, the "fix a letter, count the rest" idea reused repeatedly here.

To find a word's position (rank) when all its letter-arrangements are listed in dictionary (alphabetical) order, fix the letters alphabetically one position at a time, counting how many arrangements fall strictly before the target word at each step, and add these counts together, plus 1 for the word itself. This systematic, letter-by-letter counting avoids having to actually list out every arrangement.

At a glance

  • List the given letters in alphabetical order first.
  • For each position of the target word, left to right, count how many arrangements start with an earlier (alphabetically smaller) letter than the target's letter at that position, while matching all earlier positions exactly.
  • Add up all these "earlier" counts across every position, then add 1 for the word itself to get its rank.
  • NCERT's AGAIN example: with A appearing twice among 5 letters, the word's rank works out by this counting method.
  • This technique only requires careful, systematic counting — not listing every one of the word's arrangements.

Learning objectives

  • Arrange a given set of letters in alphabetical order as the first step of any rank problem.
  • Count, position by position, how many arrangements precede the target word alphabetically.
  • Correctly account for repeated letters when counting arrangements at each step.
  • Compute a word's final dictionary rank by summing the position-by-position counts and adding 1.

Prerequisite knowledge

The reader should already know the formula for permutations of objects not all distinct (n!/(p₁!p₂!...pₖ!)) and the "fix a letter, arrange the rest" technique from fixing-positions problems.

Core explanation

The problem type. Given a word (often with a repeated letter), if all its distinct letter-arrangements are listed as in a dictionary (purely by alphabetical order of the letters used, not by actual meaning), what is the rank — i.e., numbered position — of the original word in that list?

The systematic method. Work through the target word's letters left to right, one position at a time:

  1. At the current position, identify every letter (from the remaining available letters) that is alphabetically smaller than the target word's actual letter at that position.
  2. For each such smaller letter, count how many arrangements would result from placing it at the current position and then freely arranging all the remaining letters (accounting for any repeats) in the remaining positions. Add this to a running total.
  3. "Fix" the target word's actual letter at the current position (removing it from the remaining pool) and move on to the next position, repeating the process.
  4. Once every position has been processed, add 1 (for the word itself) to the running total to get the word's final rank.

Worked derivation — NCERT's AGAIN example. The word AGAIN has 5 letters: A, G, A, I, N — so A repeats twice, and G, I, N are each single. Listing the 5 distinct letters alphabetically: A, A, G, I, N.

The total number of distinct arrangements of all 5 letters is 5!/2! = 60 (since A repeats twice).

Position 1: Letters alphabetically smaller than A: none (A is the smallest available letter). So 0 arrangements precede AGAIN based on this position alone. Fix A as the first letter, remaining letters: G, A, I, N (now all distinct, since only one A is left).

Counting words starting with A. With A fixed first, the remaining 4 distinct letters (G, A, I, N) can be arranged in 4! = 24 ways — so there are 24 words that start with A.

Grouping by starting letter (NCERT's own approach for this example). Rather than working strictly position-by-position within the "starts with A" group, NCERT's worked solution groups the count directly by each possible starting letter: words starting with A = 4! = 24 (remaining letters G, A, I, N are now all distinct, since the second A was used up); words starting with G = 4!/2! = 12 (remaining letters A, A, I, N still have A repeated twice); words starting with I = 4!/2! = 12 (remaining letters A, A, G, N still have A repeated twice). Running total after exhausting A, G, I as starting letters = 24 + 12 + 12 = 48 words.

Pinpointing a specific word beyond this point. Since 48 words have been counted so far, the 49th word must be the very first word that starts with N — and continuing to sort the remaining letters (A, A, G, I) alphabetically within that "starts with N" group pinpoints the exact words that follow it, letter by letter, exactly as this section's worked example below shows in full.

Key terms

  • Dictionary (alphabetical) order — listing all distinct arrangements of a word's letters purely by alphabetical comparison, exactly as a dictionary would order unrelated letter-strings.
  • Rank of a word — the position (1st, 2nd, 3rd, ...) of a specific target arrangement within the full alphabetically-sorted list of all its distinct letter arrangements.
  • Position-by-position counting — the systematic technique of counting, at each letter position of the target word, how many arrangements use an alphabetically smaller letter there while matching all earlier positions exactly.
  • Fixing and continuing — after counting the "smaller letter" arrangements at one position, fixing the target's actual letter there and moving to the next position, repeating the process.

Diagram / figure guidance

Draw a vertical list of the alphabetically sorted letters (A, A, G, I, N for AGAIN). Next to each letter, draw a branch showing "words starting with this letter: [count]," with a running cumulative total written beside each branch (24, then 24+12=36, then 36+12=48, and so on), visually building up the rank calculation level by level.

Worked example

Find the number of permutations of the letters of the word AGAIN. If these words are written as in a dictionary, what is the 50th word?

Step 1 — count the total distinct arrangements. AGAIN has 5 letters with A repeated twice: 5!/2! = 60 total distinct arrangements.

Step 2 — sort the letters alphabetically. The distinct letters, sorted, are: A, A, G, I, N.

Step 3 — count words starting with A. Fixing one A first, the remaining 4 letters (G, A, I, N — now all distinct, since the second A is used up) can be arranged in 4! = 24 ways.

Step 4 — count words starting with G. Fixing G first, the remaining 4 letters (A, A, I, N) still have A repeated twice, so they arrange in 4!/2! = 12 ways.

Step 5 — count words starting with I. By identical reasoning (fixing I, remaining letters A, A, G, N with A repeated twice): 4!/2! = 12 ways.

Step 6 — running total before reaching words starting with N. 24 (starting with A) + 12 (starting with G) + 12 (starting with I) = 48 words appear before any word starting with N. So the 49th word is the first word starting with N, and the 50th word is the second.

Step 7 — pinpoint the 49th and 50th words. Fixing N first, the remaining letters to arrange are A, A, G, I — sorted alphabetically, these give the smallest possible continuation as A, A, G, I. So:

  • 49th word = NAAGI (N, then the alphabetically smallest arrangement of A, A, G, I).
  • 50th word is the very next arrangement of A, A, G, I after "AAGI" in alphabetical order. Keeping the first two letters "AA" fixed, the next letter after G (the smallest remaining choice) is I, giving "AAIG." So the 50th word = NAAIG.

So, among AGAIN's 60 distinct letter-arrangements listed in dictionary order, the 50th word is NAAIG.

Common misconceptions

  • "You can find a word's rank by just listing out every arrangement until you reach it." This defeats the purpose of the technique and is impractical for any word with more than a handful of arrangements — the position-by-position counting method avoids listing entirely.
  • "At each position, you count all remaining letters smaller than the target's letter, without worrying about repeats." You must use the correct formula (plain factorial or n!/(p!) for any still-repeated letters) when counting the "remaining letters" arrangements at each step — forgetting a repeat inflates the count.
  • "Once you fix the first letter correctly, the problem is basically done." Each subsequent position requires its own separate counting step, since the pool of "smaller letters available" and the repeat-structure of the remaining letters can both change at every position.
  • "Dictionary order here means the same as real English dictionary word order." It means pure letter-by-letter alphabetical comparison of the arrangement strings themselves, exactly as non-words would still be sorted in a dictionary-style list — it has nothing to do with whether the arrangement is an actual English word.

Exam application (JEE)

Rank-of-a-word problems are a recurring, instantly recognisable JEE question type, almost always solved by the same position-by-position counting method shown here. The most common scoring error is mishandling repeated letters partway through the counting (forgetting that a repeat's multiplicity can change once one occurrence has already been used in an earlier position) or forgetting to add the final "+1 for the word itself" at the very end.

Frequently asked questions

  • How do you find the rank of a word among its own dictionary-ordered letter arrangements? Sort the letters alphabetically, then for each position of the target word (left to right), count the arrangements that use an alphabetically smaller letter there while matching all earlier positions, sum these counts, and add 1 for the word itself.
  • Do you need to list every arrangement to find a word's rank? No — the position-by-position counting method computes the rank directly, without listing any arrangements.
  • How many distinct arrangements does the word AGAIN have? 60, computed as 5!/2!, since A repeats twice among its 5 letters.
  • How many words precede the first word starting with N, among AGAIN's letter-arrangements? 48 — 24 starting with A, 12 starting with G, and 12 starting with I.

Practice questions (original practice questions)

  1. How many distinct arrangements does the word RACE have (4 distinct letters)?
    • (a) 12
    • (b) 24
    • (c) 6
    • (d) 4
    • Answer: (b) — 4! = 24, since all 4 letters are distinct.
  2. In the alphabetically sorted arrangements of RACE's letters (A, C, E, R), how many words start with A?
    • (a) 3! = 6
    • (b) 4! = 24
    • (c) 2! = 2
    • (d) 1
    • Answer: (a) — Fixing A leaves 3 distinct letters: 3! = 6.
  3. For the word LATE (4 distinct letters: A, E, L, T sorted alphabetically), how many words appear before the first word starting with T?
    • (a) 6
    • (b) 12
    • (c) 18
    • (d) 24
    • Answer: (c) — Words starting with A, E, L each: 3! = 6; total before T = 6+6+6 = 18.
  4. In a word with a repeated letter, why can the "words starting with letter X" count change from one starting letter to another?
    • (a) It never changes
    • (b) Because fixing different letters can leave different repeat-structures among the remaining letters
    • (c) Because the alphabet order changes
    • (d) Because only the first letter matters
    • Answer: (b) — Fixing a repeated letter first leaves a different remaining repeat-count than fixing a non-repeated letter.
  5. For the word AGAIN (A×2, G, I, N), how many total distinct arrangements are there, and how many start with A?
    • (a) 60 total, 24 starting with A
    • (b) 120 total, 24 starting with A
    • (c) 60 total, 12 starting with A
    • (d) 30 total, 24 starting with A
    • Answer: (a) — Total = 5!/2! = 60; starting with A, remaining 4 letters are all distinct: 4! = 24.

Quick revision

  • Sort the word's letters alphabetically before doing anything else.
  • At each position, count arrangements with an alphabetically smaller letter there (matching earlier positions), using the correct repeated/non-repeated formula.
  • Fix the target's actual letter at each position and move to the next, accumulating the running total.
  • Add 1 for the word itself at the very end to get its final rank.
  • Watch for changing repeat-structure among remaining letters as different letters get fixed.

Related articles

NCERTMathematicsClass 11
Rate this article
No ratings yetSign in to rate

0 Comments

Sign in to join the discussion.

Rank of a Word in Dictionary Order — JEE Notes | NEETJEE.guru