A circle centered at the origin is given by
It turns out that it is possible to determine how many points are on the circumference of the circle that have both integer and coordinates, depending on the radius .
In this problem we want to determine the sum of the smallest and the largest radius that are less than 1000, such that the circles with these radii intersect the grid (i.e. the intersection point has both integer and coordinates) at exactly 36 distinct points.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Is this supposed to be solved without computer aid?
As the problem is highly symmetrical, we can consider just single octant. We are looking for 3 6 integer points in total. Thus, after removing four trivial points laying on axes we can count number of points inside each octant: ( 3 6 − 4 ) / 8 = 4 . That means we are looking for exactly 4 right triangles in single octant. It can be easily checked by Pythagorean theorem for integer x values corresponding to single octant (e.g. for x ∈ ( 1 , R / 2 ) ) with following code: