GATE Computer ScienceVery hardGATE CS (PYQ pattern)

A Dyck path of semilength 6 has 6 up-steps and 6 down-steps and never goes below the axis. How many such paths have no peak at height 1?

  1. A. 57
  2. B. 132
  3. C. 42
  4. D. 75

Correct answer: A. 57

These are counted by the Fine numbers Fₙ, related to Catalan by Cₙ = 2Fₙ + Fₙ₋₁. With F₀…F₅ = 1, 0, 1, 2, 6, 18: F₆ = (C₆ − F₅)/2 = (132 − 18)/2 = 57.

More Discrete Mathematics questions

Exams that ask this topic