NAT · 2 marks · Discrete Mathematics

GATE CS 2014 CS-1 — Q49

A pennant is a sequence of numbers, each number being 1 or 2. An n-pennant is a sequence of numbers with sum equal to n. For example, (1,1,2)(1,1,2) is a 4-pennant. The set of all possible 1-pennants is {(1)}\{(1)\}, the set of all possible 2-pennants is {(2),(1,1)}\{(2), (1,1)\} and the set of all 3-pennants is {(2,1),(1,1,1),(1,2)}\{(2,1), (1,1,1), (1,2)\}. Note that the pennant (1,2)(1,2) is not the same as the pennant (2,1)(2,1). The number of 10-pennants is ______________.