---
title: "Dictionary Rank of SYLLABUS with Repeated Letters"
organization: "NityaDhi Digital Mathematics Lab (Asa Edtech Private Limited)"
url: "https://www.nityadhi.com/problems/hard-c11-w1-18-dictionary-rank-word-syllabus"
board: "JEE Foundation"
grade: "Class 11"
published_at: "2026-11-30T09:45:00+05:30"
---

# Dictionary Rank of SYLLABUS with Repeated Letters

If all distinct $8$-letter words formed by permuting the letters of the word $\text{SYLLABUS}$ are arranged in alphabetical (dictionary) order, find the exact rank of the word $\text{SYLLABUS}$.

## Textbook Solution

First, tally the letters of $\text{SYLLABUS}$ in alphabetical order:
$$\text{A (1),\ B (1),\ L (2),\ S (2),\ U (1),\ Y (1)} \quad (\text{Total} = 8)$$
Count all words appearing strictly before $\text{SYLLABUS}$ prefix by prefix:
1. **First letter before $\text{S}$** ($\text{A}, \text{B}, \text{L}$):
   - Starts with $\text{A}$: remaining $\{\text{B}, \text{L}^2, \text{S}^2, \text{U}, \text{Y}\} \implies \frac{7!}{2!2!} = \frac{5040}{4} = 1260$.
   - Starts with $\text{B}$: remaining $\{\text{A}, \text{L}^2, \text{S}^2, \text{U}, \text{Y}\} \implies \frac{7!}{2!2!} = 1260$.
   - Starts with $\text{L}$: remaining $\{\text{A}, \text{B}, \text{L}, \text{S}^2, \text{U}, \text{Y}\} \implies \frac{7!}{2!} = 2520$.
   Subtotal $= 5040$.

2. **Prefix $\text{S}$, second letter before $\text{Y}$** ($\text{A}, \text{B}, \text{L}, \text{S}, \text{U}$):
   - $\text{SA}$: $\frac{6!}{2!} = 360$ (two $\text{L}$'s remain)
   - $\text{SB}$: $\frac{6!}{2!} = 360$
   - $\text{SL}$: $6! = 720$ (all remaining letters distinct)
   - $\text{SS}$: $\frac{6!}{2!} = 360$
   - $\text{SU}$: $\frac{6!}{2!} = 360$
   Subtotal $= 2160$.

3. **Prefix $\text{SY}$, third letter before $\text{L}$** ($\text{A}, \text{B}$):
   - $\text{SYA}$: $\frac{5!}{2!} = 60$
   - $\text{SYB}$: $\frac{5!}{2!} = 60$
   Subtotal $= 120$.

4. **Prefix $\text{SYL}$, fourth letter before $\text{L}$** ($\text{A}, \text{B}$):
   - $\text{SYLA}$: $4! = 24$
   - $\text{SYLB}$: $4! = 24$
   Subtotal $= 48$.

5. **Prefix $\text{SYLL}$:** Next letters in $\text{SYLLABUS}$ are $\text{A}$, then $\text{B}$ (each is already the smallest remaining letter, contributing $0$).
6. **Prefix $\text{SYLLAB}$, seventh letter before $\text{U}$** ($\text{S}$):
   - $\text{SYLLABS}$: $1! = 1$.

Total words strictly before $\text{SYLLABUS}$ $= 5040 + 2160 + 120 + 48 + 1 = 7369$.
Hence, the rank of $\text{SYLLABUS}$ is $7369 + 1 = 7370$.

## Vedic Shortcut

**NityaDhi Bottom-Up Verification Shortcut:** Since $\text{S}$ and $\text{Y}$ are near the end of the alphabet, counting words *after* $\text{SYLLABUS}$ is much faster!
- Starts with $\text{U}$ or $\text{Y}$: $2 \times \frac{7!}{2!2!} = 2520$
- $\text{SYS}, \text{SYU}$: $2 \times \frac{5!}{2!} = 120$
- $\text{SYLS}, \text{SYLU}$: $2 \times 4! = 48$
- $\text{SYLLB}, \text{SYLLS}, \text{SYLLU}$: $3 \times 3! = 18$
- $\text{SYLLAS}, \text{SYLLAU}$: $2 \times 2! = 4$
Total words after $= 2520 + 120 + 48 + 18 + 4 = 2710$. Since total permutations $= \frac{8!}{2!2!} = 10080$, the rank is $10080 - 2710 = 7370$!

## Common Mistakes

1. **Forgetting to add $+1$ at the end:** The sum $7369$ counts the words strictly *preceding* $\text{SYLLABUS}$; its own rank is $7369 + 1 = 7370$.
2. **Dividing by $2!2!$ for $\text{SL}$:** Once one $\text{L}$ and one $\text{S}$ are used in the prefix $\text{SL}$, all $6$ remaining letters are distinct, so the count is $6! = 720$, not $360$.