For example with four vertical and five horizontal lines, evenly spaced, 20 squares are formed: twelve 1x1, six 2x2 and two 3x3.

_____ |_|_|_| |_|_|_| |_|_|_| |_|_|_|

This makes a 5 by 8 array of small squares and the following totals:

1x1: 40 2x2: 28 3x3: 18 4x4: 10 5x5: 4

The grand total is 100 squares.

blackjack

flooble's webmaster puzzle