This problem will have you analyzing circles drawn on the grid, with the gridlines drawn at integer values of \$x\$ and \$y\$.
Let \$\varepsilon\$ be a very small number (think, \$\varepsilon = 0.0001\$). If we paint a filled-in circle of radius \$\varepsilon\$ centered at the origin, it will require paint to be in \$4\$ boxes; painting a circle of radius \$1 + \varepsilon\$ will send the paintbrush to \$12\$ different boxes (second, red circle); painting a circle of radius \$\sqrt 2 + \varepsilon\$ will send the paintbrush to \$16\$ different boxes (third, green circle).
There's no way to draw a circle based at the origin that lives in exactly \$13\$ or \$14\$ or \$15\$ boxes, so the possible number of boxes that a circle can live in is given by [4, 12, 16, ...]
.
Rules
This challenge will give you a point \$(x,y)\$ on the plane consisting of two rational numbers \$x\$ and \$y\$. Your job is to output the first sixteen (or more!) terms of the sequence consisting of all numbers \$b\$ such that there is a way to draw a circle centered at \$(x,y)\$ that contains a part of exactly \$b\$ boxes.
Any reasonable input is allowed: you can take the center point as a pair of floats, a complex number, a list containing numerators and denominators in some order, etc.
This is a code-golf challenge, so the shortest code wins.
Examples
In my example, the inputs are written as pairs of rational numbers. The first entry in the table is illustrated above.
[input] | [output]
(x, y) | sequence
-----------+----------------------------------------------------------------------
(0/1, 0/1) | 4, 12, 16, 24, 32, 36, 44, 52, 60, 68, 76, 80, 88, 104, 112, 120, ...
(5/1, 5/2) | 2, 6, 8, 12, 16, 20, 22, 26, 34, 38, 40, 44, 48, 52, 56, 60, ...
(1/3, 8/1) | 2, 4, 6, 8, 10, 12, 14, 18, 20, 22, 24, 26, 28, 30, 32, 34, ...
(1/2, 3/2) | 1, 5, 9, 13, 21, 25, 29, 37, 45, 49, 61, 69, 77, 81, 89, 97, ...
(1/3,-1/3) | 1, 3, 4, 6, 8, 9, 11, 13, 15, 17, 19, 21, 22, 24, 26, 29, ...
(1/9, 8/7) | 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, ...
(If it helps, the first example is given by \$4\$ times A000592.)
[0,1)
, as it doesn't change anything to the box counting as far as I can tell. \$\endgroup\$