1. squares in the Plane

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?

2. Originally Posted by spred
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?
Do you know about the sum of squares?

3. No. I do not know the sum.