How many (possibly overlapping) squares are in an mxn grid? Assume that all the squares have their edges parallel to the edges of the grid.

Grid Dissection Solution

lib/DbaDatabase.php:134: Warning: dba_replace() [<a href='function.dba-replace'>function.dba-replace</a>]: You cannot perform a modification to a database without proper access