Consider the set of points with integer co-ordinates in the interior of the circle with radius , centered at the origin, i.e. .
For a radius of , contains the nine points , , , , , , , and . There are eight triangles having all three vertices in which contain the origin in the interior. Two of them are shown below, the others are obtained from these by rotation.
For a radius of , there are triangles containing the origin in the interior and having all vertices in and for the number is .
How many triangles are there containing the origin in the interior and having all three vertices in ?
Write-up coming later
The complete problem is available here. An approach, code, and answer will be added later.