Clear Notion Academy

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

  1. 12
  2. 11
  3. 13
  4. 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 (remaining)!repeats!\frac{(\text{remaining})!}{\text{repeats}!} each time.

Solution

Sorted distinct letters of APPLE: A, E, L, P, P. Position 11 is A, the smallest letter, so nothing comes before it here: contributes 00. Position 22 is P, from remaining {E,L,P,P}\{E,L,P,P\}. Letters smaller than P are E and L; for each, the other 33 letters arrange in 3!2!=3\frac{3!}{2!}=3 ways, giving 2×3=62 \times 3 = 6. Position 33 is P, from remaining {E,L,P}\{E,L,P\}. Letters smaller than P are E and L; for each, the other 22 letters arrange in 2!=22! = 2 ways, giving 2×2=42 \times 2 = 4. Position 44 is L, from remaining {E,L}\{E,L\}. Only E is smaller, contributing 1!=11! = 1. Position 55 is E, nothing remains smaller: 00. Sum =0+6+4+1+0=11= 0+6+4+1+0 = 11, so APPLE is the (11+1)=12(11+1) = 12th word.

More questions from Permutations: Arrangements with Distinct and Identical Objects and Restrictions — DPP

Practise the full set: Permutations: Arrangements with Distinct and Identical Objects and Restrictions — DPP