The problem in the general case with arbitrary values is likely pretty difficult, so I limit the scope of this question to this specific problem:
Consider a rectangle with width 30 and height 16. Divide it into 12 pieces with equal area, and integer widths and heights. List all possible configurations.
Naturally, the area of each piece is 40. I tried factoring the relevant numbers (12, 16, 30, 40), but wasn't able to see anything interesting. I also tried considering additions of heights along a vertical line, i.e. 16 = 2 + 4 + 10, where each of the terms is a factor of the area 40. I obtained the somewhat useless result:
$$\{(2, 4, 5, 5) , \ (2, 4, 10) , \ (\textrm{tuples containing only 2, 4, 8})\}$$
where all of the values in each tuple adds up to 16. I was hoping this would limit the problem in some way, but that did not happen.
combinatoricsand/ordivisibilityand/orfactoring). – barak manos Nov 30 '16 at 09:46