What happens to the number of stars on Old Glory when a new state joins the union? Well, a federal law requires that the number of stars must equal the number of states. But the greater question remains: where would we put the new star?

Fear not, for mathematician Skip Garibaldi has created a computer program to figure out the most geometric — and aesthetically pleasing — layouts for the stars should this happen:

Enter the number of states, from one to a hundred, to see the best star patterns according to Garibaldi’s program.

Now we know what the new flag would look like if Puerto Rico becomes a state!

Via Slate.