Permutations: Arrangements with Distinct and Identical Objects and Restrictions — DPP: Find the rank of the word APPLE among all the distinct arrangements of its letters…
Question
Find the rank of the word APPLE among all the distinct arrangements of its letters written in dictionary order.
Options
- 12
- 11
- 13
- 6
Answer
Correct option: A
Hint
Fix letters one position at a time; at each position count how many available letters are smaller than the actual letter, using each time.
Solution
Sorted distinct letters of APPLE: A, E, L, P, P. Position is A, the smallest letter, so nothing comes before it here: contributes .
Position is P, from remaining . Letters smaller than P are E and L; for each, the other letters arrange in ways, giving .
Position is P, from remaining . Letters smaller than P are E and L; for each, the other letters arrange in ways, giving .
Position is L, from remaining . Only E is smaller, contributing .
Position is E, nothing remains smaller: . Sum , so APPLE is the th word.