I have n 19:10 rectangles, which I can resize. I want to fit all n into a 8000x8000 square.
What's the largest size the rectangles can have? And how should they be distributed?
For example, n = 2 means the rectangles can be as wide as the box, 8000, as tall as (10/19)*8000 = 4210.5, and should just be placed in a 1x2 tower.
For n = 4 the best arrangement is 2x2, not 1x4.
How can these best arrangements be calculated?