GATE Computer ScienceHardGATE CS (PYQ pattern)

In how many ways can 16 be written as an ordered sum (a composition) of parts each equal to 1, 3 or 4?

  1. A. 1144
  2. B. 1175
  3. C. 1156
  4. D. 987

Correct answer: C. 1156

cₙ = cₙ₋₁ + cₙ₋₃ + cₙ₋₄ with c₀ = 1: iterating gives c₁₆ = 1156.

More Discrete Mathematics questions

Exams that ask this topic