Skip to content

Mathematics · Ch 4 — Combinatorics and Mathematical Induction

No two things are together (Gap method)

4.4.4

No two things are together (Gap method)

No two of a group of objects may be adjacent — the 'gap' method.

To permute nn distinct objects so that no two of a specified set of kk objects are ever adjacent, with the remaining m=n−km=n-k objects unrestricted:

  1. First arrange the mm unrestricted objects in a row: mPm=m!^mP_m=m! ways.
  2. This creates m+1m+1 gaps — one before the first object, one between each consecutive pair, and one after the last (so m−1m-1 internal gaps plus the 2 end gaps =m+1=m+1).
  3. Place the kk restricted objects into these m+1m+1 gaps, at most one per gap (so no two land in the same gap and hence never sit next to each other): m+1Pk^{m+1}P_k ways.
  4. By the rule of product, the total is m!×m+1Pk.m!\times{}^{m+1}P_k. …