GATE / CS ARCHIVE

GATE CSE 2016 SET 1 / QUESTION 26

GATE CSE 2016 Set 1 Q26

Discrete Mathematics · Recurrences & Generating Functions · Full GATE CSE 2016 Set 1 paper

GATE 2016 Set 1, Q26 2 marks · NAT
Report issue

Recurrences & Generating Functions

Question 26, GATE 2016: Find the coefficient of x^12 in (x^3+x^4+x^5+x^6+...)^3.
Tap to enlarge
Answer & solution

Official answer: 10.0 : 10.0

Our answer: 10

Factor the series as x³/(1−x). Its cube is x⁹(1−x)−3, so the coefficient of x¹² equals that of x³ in(1−x)−3, namely C(5, 2)=10. Equivalently distribute three excess units across three exponents, each originally at least 3.

Each of the three factors contributes one exponent at least 3. Write those exponents as 3+i,3+j,3+k with i,j,k≥0. To total 12, their excesses must satisfy i+j+k=3. Stars-and-bars counts C(3+3−1,3−1)=10 solutions. The three factors are distinguishable, so choices such as(3,4,5) and(4,3,5) contribute separately; counting unordered partitions would undercount the coefficient.

Original paper, page 12 · Answer key