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) is a 4-pennant. The set of all possible 1-pennants is \(1)\, the set of all possible 2-pennants is \(2), (1,1)\and the set of all 3-pennants is \(2,1), (1,1,1), (1,2)\. Note that the pennant (1,2) is not the same as the pennant (2,1). The number of 10-pennants is …
Topic-wise GATE CS PYQs with verified steps
