GATE Computer ScienceVery hardGATE CS (PYQ pattern)

How many permutations of {1, …, 8} have no cycle of length 1 or 2 (every cycle has length ≥ 3)?

  1. A. 14833
  2. B. 9468
  3. C. 8988
  4. D. 7080

Correct answer: C. 8988

The EGF is e^(−x − x²/2)/(1 − x); extracting the coefficient of x⁸/8! gives 8988. Derangements D₈ = 14833 also allow 2-cycles.

More Discrete Mathematics questions

Exams that ask this topic