My goal is to get the most square-like rectagle. For instance, there are several cases as below where the area of rectagle is 24. And the most square-like case is the 4 by 6 (or 6 by 4). Given area, is there a simple formula to get it?(not algorithem)
width height
------ ------
1 24
2 12
3 8
4 6 <- this
6 4 <- or this
8 3
12 2
24 1