Clear Notion Academy

Permutations and Combinations (Warm Up) Practice: The number of ways to choose positive integers a<b<c with a+b+c=21 is

Question

The number of ways to choose positive integers a<b<ca<b<c with a+b+c=21a+b+c=21 is

Answer

Answer: 27

Hint

Separate the strict inequalities with differences: put a=pa=p, b=p+qb=p+q, c=p+q+rc=p+q+r with p,q,r≥1p,q,r\ge1.

Solution

With a=pa=p, b=p+qb=p+q, c=p+q+rc=p+q+r and p,q,r≥1p,q,r\ge1, the strict inequalities a<b<ca<b<c are automatic. Then a+b+c=3p+2q+r=21a+b+c=3p+2q+r=21. For each pp, the number of positive (q,r)(q,r) with 2q+r=21−3p2q+r=21-3p is ⌊(20−3p)/2⌋\lfloor(20-3p)/2\rfloor: p=1,…,6p=1,\dots,6 give 8,7,5,4,2,18,7,5,4,2,1 solutions. Total =8+7+5+4+2+1=27=8+7+5+4+2+1=27. Counting all positive solutions of a+b+c=21a+b+c=21 (20C2=190^{20}C_2=190) and dividing by 3!3! is wrong since that ignores solutions with equal values.

More questions from Permutations and Combinations (Warm Up) Practice

Practise the full set: Permutations and Combinations — Warm Up