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?
- A. 57
- B. 132
- C. 42
- 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
- In how many ways can 15 be written as a sum of exactly 4 DISTINCT positive integers (order does not matter)?
- Binary strings of length 10 are written around a circle, and two are considered the same if one is a rotation of the other. How many such…
- How many permutations π of {1, …, 7} with π(7) = 7 have exactly 2 descents (positions i with πᵢ > πᵢ₊₁)?
- In how many ways can 6 non-attacking rooks be placed on a 6 × 6 board so that none stands on either main diagonal?
- In how many ways can a 2 × 6 board of unit squares be coloured with 3 colours so that squares sharing an edge get different colours?
- How many integer triples (x, y, z) with x, y, z all non-zero satisfy |x| + |y| + |z| = 10?