Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  A pennant is a sequence of numbers, each numb... Start Learning for Free
A pennant is a sequence of numbers, each number being 1 or 2. An -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 thepennant (2,1). The number of 10-pennants is________
    Correct answer is '89'. Can you explain this answer?
    Verified Answer
    A pennant is a sequence of numbers, each number being 1 or 2. An -penn...
    Let we denote number of n-pennants by f(n), so f(10) is number of 10-pennants.
    So all 10-pennants can be formed by 8-pennants and 9-pennants, and no other pennant (since we can add only 1 or 2 into a sequence)
    So f(10) = f(9) + f(8)
    This is in fact a fibonacci sequence, in which F(1) = 1, f(2) = 2, so this sequence becomes
    1, 2, 3, 5, 8, 13, 21, 34, 55, 89,..
    So f(10) = 89.
    Numbers could be any one of
    (1,1,1,1,1,1,1,1,1,1),(1,1,1,1,1,1,1,1,2),(1,1,1,1,1,1,2,2),(1,1,1,1,2,2,2),(1,1,2,2,2,2),(2,2,2,2,2)
    So, the number of 10 penants =1+  9!/8! + 8!/6!2!  + 7!/4!3! + 6!/2!4! +1 =89
    View all questions of this test
    Explore Courses for Computer Science Engineering (CSE) exam

    Similar Computer Science Engineering (CSE) Doubts

    Top Courses for Computer Science Engineering (CSE)

    A pennant is a sequence of numbers, each number being 1 or 2. An -pennant is a sequence of numbers with sum equal to nFor 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 thepennant (2,1).The number of 10-pennants is________Correct answer is '89'. Can you explain this answer?
    Question Description
    A pennant is a sequence of numbers, each number being 1 or 2. An -pennant is a sequence of numbers with sum equal to nFor 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 thepennant (2,1).The number of 10-pennants is________Correct answer is '89'. Can you explain this answer? for Computer Science Engineering (CSE) 2025 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about A pennant is a sequence of numbers, each number being 1 or 2. An -pennant is a sequence of numbers with sum equal to nFor 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 thepennant (2,1).The number of 10-pennants is________Correct answer is '89'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2025 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for A pennant is a sequence of numbers, each number being 1 or 2. An -pennant is a sequence of numbers with sum equal to nFor 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 thepennant (2,1).The number of 10-pennants is________Correct answer is '89'. Can you explain this answer?.
    Solutions for A pennant is a sequence of numbers, each number being 1 or 2. An -pennant is a sequence of numbers with sum equal to nFor 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 thepennant (2,1).The number of 10-pennants is________Correct answer is '89'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
    Here you can find the meaning of A pennant is a sequence of numbers, each number being 1 or 2. An -pennant is a sequence of numbers with sum equal to nFor 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 thepennant (2,1).The number of 10-pennants is________Correct answer is '89'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of A pennant is a sequence of numbers, each number being 1 or 2. An -pennant is a sequence of numbers with sum equal to nFor 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 thepennant (2,1).The number of 10-pennants is________Correct answer is '89'. Can you explain this answer?, a detailed solution for A pennant is a sequence of numbers, each number being 1 or 2. An -pennant is a sequence of numbers with sum equal to nFor 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 thepennant (2,1).The number of 10-pennants is________Correct answer is '89'. Can you explain this answer? has been provided alongside types of A pennant is a sequence of numbers, each number being 1 or 2. An -pennant is a sequence of numbers with sum equal to nFor 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 thepennant (2,1).The number of 10-pennants is________Correct answer is '89'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice A pennant is a sequence of numbers, each number being 1 or 2. An -pennant is a sequence of numbers with sum equal to nFor 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 thepennant (2,1).The number of 10-pennants is________Correct answer is '89'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
    Explore Courses for Computer Science Engineering (CSE) exam

    Top Courses for Computer Science Engineering (CSE)

    Explore Courses
    Signup for Free!
    Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
    10M+ students study on EduRev