MathLabs

Problem 4

The National Marriage Council wishes to invite nn couples to form 1717 discussion groups. Each group contains members of only one sex; the sizes of any two groups differ by 00 or 11; every group is nonempty; and every person belongs to exactly one group. Find all n≤1996n\le1996 for which this is possible.
Step 2 of 5: Determine the only possible group sizes
q=⌊2n17⌋,every group has size q or q+1q=\left\lfloor\frac{2n}{17}\right\rfloor,\qquad\text{every group has size }q\text{ or }q+1
Detailed analysis

There are 2n2n people in 1717 groups. If two allowed sizes differ by at most one, their sizes must be the floor and ceiling of the average 2n/172n/17. Thus, with q=⌊2n/17⌋q=\lfloor2n/17\rfloor, every group has size qq or q+1q+1.