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 3 of 5: Translate feasibility into four inequalities
xq≤n≤x(q+1),yq≤n≤y(q+1)xq\le n\le x(q+1),\qquad yq\le n\le y(q+1)
Detailed analysis

The xx male groups can partition nn men into sizes q,q+1q,q+1 exactly when xq≤n≤x(q+1)xq\le n\le x(q+1); the same reasoning for the yy female groups gives yq≤n≤y(q+1)yq\le n\le y(q+1). These inequalities are necessary for every valid arrangement.