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 1 of 5: Count male and female groups
x+y=17,x≥y,n≥x≥9,1≤y≤8x+y=17,\qquad x\ge y,\qquad n\ge x\ge9,\qquad 1\le y\le8
Detailed analysis

Let xx and yy be the numbers of male and female groups. Both sexes occur, so x,y≥1x,y\ge1; exchange the names if necessary to assume x≥yx\ge y. Since x+y=17x+y=17, we have 9≤x≤169\le x\le16 and 1≤y≤81\le y\le8. Every male group is nonempty, so n≥x≥9n\ge x\ge9.