This won an Ignobel Prize.
So the conclusion without much math is:
A rule of thumb for calculating the number of photos to take for groups of less than 20: divide the number of people by three if there’s good light and two if the light’s bad.
Velocity Web Site – Blink-free photos, guaranteed