Given $g \ge 2$, $k \ge 1$ and a population of $p = kg$ workers, I'm trying to figure out the longest series of work shifts such that:
- during each shift, all workers work in $k$ teams of g people;
- any two workers work together at most once.
In more formal terms: I'd like to build the largest set of partitions of $1,\dots,p$ in sets of $g$ items so that any two sets taken from any two distinct partitions have at most one element in common.
I have a simple enough solution for $g = 2$, that achieves the theoretical maximum of $\lfloor {p - 1 \over g - 1} \rfloor$ shifts (obtained by considering that worker #1, for instance, must be associated with $g - 1$ unique other workers during each shift). That raw upper bound cannot apparently be reached for $g > 2$ in general. Even with $g = 2$, I don't know how to enumerate all solutions efficiently.
Has this problem been studied before? Any pointers would be much appreciated.