Problem:
Let be a positive integer. A square of side length is divided by lines parallel to each side into squares of side length . Find the number of parallelograms which have vertices among the vertices of the squares of side length , with both sides smaller or equal to , and which have the area equal to .
Solution
Solution:
We can divide all these parallelograms into 7 classes (types I-VII), according to Figure.

Type 1: There are ways to choose the strip for the horizontal (shorter) side of the parallelogram, and ways to choose the strip (of the width ) for the vertical (longer) side. So there are parallelograms of the type I.
Type II: There are ways to choose the strip (of the width ) for the horizontal (longer) side, and ways to choose the strip for the vertical (shorter) side. So the number of the parallelogram of this type is also .
Type III: Each parallelogram of this type is a square inscribed in a unique square of our grid. The number of such squares is . So there are parallelograms of type III.
For each of the types IV, V, VI, VII, the strip of the width in which the parallelogram is located can be chosen in ways and for each such choice there are parallelograms located in the chosen strip.
Summing we obtain that the total number of parallelograms is: