Hi,

There is a problem. I have some idea about it but not sure if it is correct.

Problem:

In the cartesian plane, consider the set of points

A={(i,j)|0<or=i,j<or=40, with i and j integers}

How many squares can be formed so that all corners of all squares belong to A, with sides parallel to the x and y axes?