Calvary Baptist · VBS

Team Splitter

Count the kids. Get ranked ways to split into teams with the fewest adult volunteers forced by leftovers.

How the math works

Rank rule: fewest adult volunteers first.

  1. Fixed size (example: teams of 2) — full teams = floor(kids ÷ size), leftover = kids % size, adults = leftover (one adult buddy per leftover kid so nobody sits out).
  2. Even split (example: 4 & 3) — divide kids across T teams as evenly as possible. Adults to balance = T × maxTeamSize − kids (fill smaller teams so game headcounts match).

Example for 7 kids: 3×2 needs 1 adult (1 leftover); 2×3 needs 1 adult; 2 teams of 4&3 needs 1 adult to balance to 4&4. Clean multiples (8 → 4×2 or 2×4) need 0 adults and rank first.