I put the question to mathematician Skip Garibaldi, who did what anyone would do in this situation: He wrote a computer program to figure out all possible combinations for flags of any number of stars. To do this, he looked at all the flags we've flown throughout American history, found the most common patterns, and figured out which of those patterns worked for a given number of stars.
\n
Then Slate used Garibaldi's code to build an interactive flag calculator, which is really quite fun. The analysis that follows—on various types of symmetry—is pretty awesome, too. If you're into that sort of thing.