Take a test Sign in 中文
← Exercise 440 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Basic Counting (147)
Balls in Boxes (6)
Probability (142)

Exercises and their solutions

Exercise 440
How many rearrangements of $abcde$ are there in which no two adjacent letters are also adjacent letters in the alphabet?
← Back to Problem 440
Solution
  1. Use inclusion–exclusion on the forbidden adjacent pairs $ab,bc,cd,de$ (in either order). One pair glued: $2\cdot4!=48$, for $4$ pairs: $192$.
  2. Two pairs: overlapping pairs ($ab,bc$ etc., $3$ cases) form a block of $3$ letters: $2\cdot3!=12$ each; disjoint pairs ($3$ cases) give $2\cdot2\cdot3!=24$ each. Total $36+72=108$.
  3. Three pairs: $abcd$ or $bcde$ as one block: $2\cdot2!=4$ each; $abc$ with $de$, or $ab$ with $cde$: $2\cdot2\cdot2!=8$ each. Total $24$. All four pairs: $2$.
  4. So the count is $120-192+108-24+2=\boxed{14}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year