Positioning squares on a circle with minimum diameter

Viewed 2384

Given n squares with edge length l, how can I determine the minimum radius r of the circle so that I can distribute all squares evenly along the perimeter of the circle without them overlapping? (Constraint: the first square will always be positioned at 12 o'clock.)

Followup question: how can I place n identical rectangles with height h and width w?

example
(source: n3rd.org)

6 Answers
Related