WOLFRAM|DEMONSTRATIONS PROJECT

Grid Packing at an Angle

​
angle
0.32
left
0.3
right
6.98
bottom
0.62
top
6.37
number of squares is 28
floor(6.68) × floor(5.75) = 30
If a rectangular frame is placed over a grid, what is the maximal number of squares it can contain? Usually, lining up the frame with the grid gives an optimal answer.