how to calculate the number of certain size picture/paper into one larger paper...
for example 2"x4" size paper/picture wanted to fit into to 8"x10"
how many size of 2"x4" can fit into a 8"x10"
is there a solution that will work for all different sizes?
Any help is highly appreciated... Thanks
Correct me if I'm wrong, but even though the area of 10 pictures might fit into the area of the paper, that might mean having to cut up the pictures. In this particular case, since you can turn the pictures side-ways and print two columns of five pictures (since 2 divides 10 evenly by 5, and 4 divides 8 evenly by 2), then the answer comes out right: 10 pictures. But in other situations this might fail.
So, the only simple formulas you can get are for non-optimal solutions. For example, a non-optimal formula is: . This could be used as a lower bound.
Edit: Perhaps non-orthogonal arrangements are only optimal when side lengths are non-integer.