GATE / CS ARCHIVE

GATE CSE 2002 / QUESTION 13(a)

Ordered sums of two positive integers

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

GATE 2002, Q13(a) Descriptive
Report issue

Combinatorics & Counting

Question 13(a), GATE 2002: Original13(a): For integer n≥2, count ordered expressions of n as a sum of two positive integers, not necessarily distinct. For n = 3, 1+2 and 2+1 are different expressions. Give only the answer without explanation.
Question 13(a), GATE 2002: Original13(a): For integer n≥2, count ordered expressions of n as a sum of two positive integers, not necessarily distinct. For n = 3, 1+2 and 2+1 are different expressions. Give only the answer without explanation.
Question 13(a), GATE 2002: Original13(a): For integer n≥2, count ordered expressions of n as a sum of two positive integers, not necessarily distinct. For n = 3, 1+2 and 2+1 are different expressions. Give only the answer without explanation.
Tap to enlarge
Answer & solution

Answer: n−1 (no official key was published)

There are n−1 ordered pairs: choose the first summand from 1 through n−1, after which the second is n minus that choice. Equivalently, choose one of the n−1 gaps between n unit objects as a separator. The example counts 1+2 and 2+1 separately, so these are ordered compositions, not unordered partitions.

Original paper, page 8