GATE / CS ARCHIVE

GATE CSE 2002 / QUESTION 13(b)

Ordered sums of three positive integers

Discrete Mathematics · Combinatorics & Counting · Full GATE CSE 2002 paper

GATE 2002, Q13(b) Descriptive
Report issue

Combinatorics & Counting

Question 13(b), GATE 2002: Original13(b): For integer n≥3, count ordered expressions of n as a sum of three positive integers, allowing repeats. For n=4 the three expressions are 1+1+2, 1+2+1, 2+1+1. Give only the answer without explanation.
Question 13(b), GATE 2002: Original13(b): For integer n≥3, count ordered expressions of n as a sum of three positive integers, allowing repeats. For n=4 the three expressions are 1+1+2, 1+2+1, 2+1+1. Give only the answer without explanation.
Tap to enlarge
Answer & solution

Answer: C(n−1,2) = (n−1)(n−2)/2 (no official key was published)

Place two separators in distinct gaps among n unit objects. There are n−1 gaps, and choosing two gives C(n−1,2)=(n−1)(n−2)/2 ordered positive triples. For n=4 these are (1,1,2), (1,2,1), and (2,1,1).

Original paper, page 8