Related Formula
Permutations with repetition: (n!)/(p₁! p₂! )$$\text{Permutations with repetition: } \frac{n!}{p_1! p_2! \dots}$$
Core Logic
Alphabetical order of letters in "UDAYPUR": A, D, I (Wait, no I. A, D, P, R, U, U, Y). Let's list properly: A, D, P, R, U, U, Y.
Step 1: Words Starting with Previous Letters
Start fixing the first letter from the sorted array:
Words starting with A arrow (6!)/(2!) = (720)/(2) = 360$A \rightarrow \frac{6!}{2!} = \frac{720}{2} = 360$
Words starting with D arrow (6!)/(2!) = 360$D \rightarrow \frac{6!}{2!} = 360$
Words starting with P arrow (6!)/(2!) = 360$P \rightarrow \frac{6!}{2!} = 360$
Words starting with R arrow (6!)/(2!) = 360$R \rightarrow \frac{6!}{2!} = 360$
Step 2: Words starting with U
Now we reach U$U$. Fix U$U$ and move to the second letter.
Available letters: A, D, P, R, U, Y.
Words starting with UA arrow 5! = 120$UA \rightarrow 5! = 120$ (Since one U is fixed, no repetition left)
Next prefix is UD$UD$. Fix UD$UD$, move to the third letter.
Available: A, P, R, U, Y. A$A$ is the target, so fix A$A$.
We are at UDA$UDA$. Move to fourth letter.
Available: P, R, U, Y. Y$Y$ is target.
Words starting with UDAP arrow 3! = 6$UDAP \rightarrow 3! = 6$
Words starting with UDAR arrow 3! = 6$UDAR \rightarrow 3! = 6$
Words starting with UDAU arrow 3! = 6$UDAU \rightarrow 3! = 6$
Next is UDAY$UDAY$. Fix UDAY$UDAY$.
Available: P, R, U.
Step 3: Final Count
Alphabetical order for remaining three letters is P, R, U.
The target word is UDAYPUR.
Words starting with UDAYPRU arrow 1$UDAYPRU \rightarrow 1$ (since U is after R)
Next word is UDAYPUR arrow 1$UDAYPUR \rightarrow 1$
Total Rank = 360 + 360 + 360 + 360 + 120 + 6 + 6 + 6 + 1 + 1 = 1580$360 + 360 + 360 + 360 + 120 + 6 + 6 + 6 + 1 + 1 = 1580$.
Pattern Recognition
When repeating letters exist (like U in UDAYPUR), dividing by the factorial of repeated characters is critical for preceding branches. Once one of the repeating letters is consumed in the fixed prefix (e.g. at UA), the remaining pool has unique letters, dropping the denominator.
Chapter Mix
Class 11 Maths: Permutations and Combinations