GATE Computer ScienceVery hardGATE CS (PYQ pattern)

How many permutations of 7 distinct items have every cycle of length at least 3 (no fixed points and no 2-cycles)?

  1. A. 1854
  2. B. 1200
  3. C. 924
  4. D. 1140

Correct answer: D. 1140

Cycle types of 7 with all parts ≥ 3: (7): 6! = 720; (4,3): C(7,3)·2!·3! = 35·2·6 = 420. Total 1140. 1854 counts all derangements (also allowing 2-cycles).

More Algorithms questions

Exams that ask this topic