Follow

random math-y thought: clearly, the first circle that hits any integer points at all is the one with radius 1, which hits the points (1,0), (-1,0), (0,1), and (0,-1). Four points total. A little later on, with radius sqrt(5), you hit eight points: (1,2), (2,1), (-1,2), (2,-1), (1,-2), (-2,1), (-1,-2), and (-2,-1)

What is the sequence of radii rn such that the circle at the origin with radius rn hits more integer points than any origin-centered circle with radius r < rn?

hm, I suppose technically this should include the radius-zero circle as the first of the sequence

@Felthry
Interesting... I would need to plot out one more pattern to see the sequence

@Felthry hmm

if r is an integer, then the four points (r,0), (0,r), (-r,0), (0,-r) will be included

and if r is an integer multiple s of the square root of two, then the four points (s,s), (s,-s), (-s,-s), (-s,s) will be included - call these (±s,±s)

otherwise, if there are integers a and b such that a>b>0 and a²+b²=r², then the eight points (±a,±b) and (±b,±a) will be included

I think Pythagorean triples are going to be important here

@packbat Yeah, exactly. But not only pythagorean triples, since r is not restricted to being an integer--though it must be the square root of an integer, because otherwise the circle won't hit any integer points

@Felthry *nods*

...oh - it's going to relate to numbers which are the sum of two squares multiple ways, isn't it?

so, like, *does some quick checking* 65 = 1²+8² = 4²+7², so radius √65 is going to have sixteen points because it hits both the (1,8) and (4,7) points plus their eight symmetries.

there's weirdness because if the points fall on the diagonal (e.g. 50=1²+7²=5²+5²), then the intersection that falls on the diagonal will only have four symmetries, and additional weirdness because if the initial number is a square then you get an integer radius and an extra four points on the axes...

@packbat Exactly! You see why this is a more interesting problem than it initially seems.

@Felthry Oh, it's exactly as interesting as it initially seems! 😄

...wait, is it this function? mathworld.wolfram.com/SumofSqu

I was going hunting for lists of numbers that are sums of more squares, and it seems like SquaresR[2, r²] is going to be the function that returns how many intersections there are for the circle of radius r

...doesn't tell us the sequence but connects this to a bunch of other number theory I guess?

Sign in to participate in the conversation
Awoo Space

Awoo.space is a Mastodon instance where members can rely on a team of moderators to help resolve conflict, and limits federation with other instances using a specific access list to minimize abuse.

While mature content is allowed here, we strongly believe in being able to choose to engage with content on your own terms, so please make sure to put mature and potentially sensitive content behind the CW feature with enough description that people know what it's about.

Before signing up, please read our community guidelines. While it's a very broad swath of topics it covers, please do your best! We believe that as long as you're putting forth genuine effort to limit harm you might cause – even if you haven't read the document – you'll be okay!