Problems(1)
Denote by Z2 the set of all points (x,y) in the plane with integer coordinates. For each integer n≥0, let Pn be the subset of Z2 consisting of the point (0,0) together with all points (x,y) such that x2+y2=2k for some integer k≤n. Determine, as a function of n, the number of four-point subsets of Pn whose elements are the vertices of a square. PutnamPutnam 2019