Skip to content

GATE CS Combinatorics: Counting, Recurrence Relations, Generating Functions questions

Practise Combinatorics: Counting, Recurrence Relations, Generating Functions questions for GATE CS. Explore official PYQs and original topic-wise quizzes, check answers and view available solutions. Free, no sign-in.

Subject, topic, year and type filter the full library. Match any choice within a filter, and all selected filter categories. Search, source and sort apply to this page.

20 on this page
Official PYQ2025Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 1 mark
Let S\text{S} be the set of all ternary strings defined over the alphabet {a,b,c}\{a, b, c\}. Consider all strings in S\text{S} that contain at least one occurrence of two consecutive symbols, that is, "aa"\text{"aa"}, "bb"\text{"bb"} or "cc"\text{"cc"}. The number of such strings of length 55 that are possible is __________. (Answer in integer).
Official PYQ2023Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMCQ · 1 mark
The Lucas sequence LnL_{n} is defined by the recurrence relation: Ln=Ln−1+Ln−2, for n≥3,L_{n}=L_{n-1}+L_{n-2}, \quad \text{ for } \quad n \geq 3, with L1=1L_{1}=1 and L2=3L_{2}=3. Which one of the options given is TRUE?
Official PYQ2023Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMCQ · 2 marks
Let U={1,2,…,n},U=\{1,2, \ldots, n\}, where nn is a large positive integer greater than 1000.1000. Let kk be a positive integer less than nn. Let A,BA, B be subsets of UU with ∣A∣=∣B∣=k|A|=|B|=k and A∩B=∅A \cap B=\emptyset. We say that a permutation of UU separates AA from BB if one of the following is true. All members of AA appear in the …
Official PYQ2022Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 1 mark
The number of arrangements of six identical balls in three identical bins is _____________ .
Official PYQ2022Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMCQ · 2 marks
Which one of the following is the closed form for the generating function of the sequence {an}n≥0\{ a_{n} \}_{n \geq 0} defined below? an={n+1,n is odd1,otherwisea_{n} = \left\{\begin{matrix} n + 1, & \text{n is odd} & \\ 1, & \text{otherwise} & \end{matrix}\right.
Official PYQ2022Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMSQ · 2 marks
Consider the following recurrence: f(1)=1;f(2n)=2f(n)–1,  for  n≥1;f(2n+1)=2f(n)+1,  for  n≥1.\begin{array}{} f(1) & = & 1; \\ f(2n) & = & 2f(n) – 1, & \; \text{for}\; n \geq 1; \\ f(2n+1) & = & 2f(n) + 1, & \; \text{for}\; n \geq 1. \end{array} Then, which of the following statements is/are TRUE?\text{TRUE}?
Official PYQ2021Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 1 mark
There are 66 jobs with distinct difficulty levels, and 33 computers with distinct processing speeds. Each job is assigned to a computer such that: The fastest computer gets the toughest job and the slowest computer gets the easiest job. Every computer gets at least one job. The number of ways in which this can be done is ___________.
Official PYQ2021Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 2 marks
Let SS be a set consisting of 1010 elements. The number of tuples of the form (A,B)(A,B) such that AA and BB are subsets of SS, and A⊆BA \subseteq B is ___________
Official PYQ2020Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 2 marks
The number of permutations of the characters in LILAC so that no character appears in its original position, if the two L’s are indistinguishable, is ______.
Official PYQ2019Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMCQ · 1 mark
Let U={1,2,…,n}U = \{1, 2, \dots , n\} Let A={(x,X)∣x∈X,X⊆U}A=\{(x, X) \mid x \in X, X \subseteq U \}. Consider the following two statements on ∣A∣\mid A \mid. ∣A∣=n2n−1\mid A \mid = n2^{n-1} ∣A∣=Σk=1nk(nk)\mid A \mid = \Sigma_{k=1}^{n} k \begin{pmatrix} n \\ k \end{pmatrix} Which of the above statements is/are TRUE?
Official PYQ2019Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 1 mark
The value of 351 mod 53^{51} \text{ mod } 5 is _____
Official PYQ2018Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMCQ · 1 mark
Which one of the following is a closed form expression for the generating function of the sequence {an}\{a_n\}, where an=2n+3 for all n=0,1,2,…a_n = 2n +3 \text{ for all } n=0, 1, 2, \dots?
Official PYQ2017Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 1 mark
If the ordinary generating function of a sequence {an}n=0∞\left \{a_n\right \}_{n=0}^\infty is 1+z(1−z)3\large \frac{1+z}{(1-z)^3}, then a3−a0a_3-a_0 is equal to ___________ .
Official PYQ2016Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 1 mark
Consider the recurrence relation a1=8,an=6n2+2n+an−1a_1 =8 , a_n =6n^2 +2n+a_{n-1}. Let a99=K×104a_{99}=K\times 10^4. The value of KK is __________.
Official PYQ2016Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 1 mark
The coefficient of x12x^{12} in (x3+x4+x5+x6+… )3\left(x^{3}+x^{4}+x^{5}+x^{6}+\dots \right)^{3} is ___________.
Official PYQ2016Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsMCQ · 1 mark
Let ana_n be the number of nn-bit strings that do NOT contain two consecutive 1′s1's. Which one of the following is the recurrence relation for ana_n?
Official PYQ2016Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 1 mark
The value of the expression 1399(mod17)13^{99}\pmod{17} in the range 00 to 1616, is ________.
Official PYQ2015Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 1 mark
∑x=1991x(x+1)\sum\limits_{x=1}^{99}\frac{1}{x(x+1)} = ______.
Official PYQ2015Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 1 mark
The number of 44 digit numbers having their digits in non-decreasing order (from left to right) constructed by using the digits belonging to the set {1,2,3}\{1, 2, 3\} is ________.
Official PYQ2014Engineering MathematicsCombinatorics: Counting, Recurrence Relations, Generating FunctionsNAT · 1 mark
A pennant is a sequence of numbers, each number being 11 or 22. An n−n-pennant is a sequence of numbers with sum equal to nn. For example, (1,1,2)(1,1,2) is a 4−4-pennant. The set of all possible 1−1-pennants is (1){(1)}, the set of all possible 2−2-pennants is (2),(1,1){(2), (1,1)} and the set of all 3−3-pennants is (2,1),(1,1,1),(1,2){(2,1), (1,1,1), (1,2)}. …