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 4 of 5: Enumerate the admissible values
9≤n≤16; 18≤n≤24; 27≤n≤32; 36≤n≤40; 45≤n≤48; 54≤n≤56; n∈{63,64,72}9\le n\le16;\ 18\le n\le24;\ 27\le n\le32;\ 36\le n\le40;\ 45\le n\le48;\ 54\le n\le56;\ n\in\{63,64,72\}
Detailed analysis

Substitute y=17−xy=17-x, 9≤x≤169\le x\le16, and q=⌊2n/17⌋q=\lfloor2n/17\rfloor into the four inequalities. Checking the resulting finite ranges gives exactly 99–1616, 1818–2424, 2727–3232, 3636–4040, 4545–4848, 5454–5656, 63,64,7263,64,72 (all are at most 19961996). No other nn satisfies the necessary inequalities.