cp's OEIS Frontend

This is a front-end for the Online Encyclopedia of Integer Sequences, made by Christian Perfect. The idea is to provide OEIS entries in non-ancient HTML, and then to think about how they're presented visually. The source code is on GitHub.

A357301 a(n) is the number of distinct radii of circles passing through at least three points in a square grid of n X n points.

This page as a plain text file.
%I A357301 #10 Sep 23 2022 11:52:40
%S A357301 0,1,7,19,48,112,212,383,641,988,1523,2250,3103,4364,5831,7696,9985,
%T A357301 12945,16164,20246,24946,30145,36385,43839,51752,61610,72475,84273,
%U A357301 97231,112733
%N A357301 a(n) is the number of distinct radii of circles passing through at least three points in a square grid of n X n points.
%C A357301 Proposed by _Ed Pegg Jr_ in Mathematics StackExchange question 273348, where terms up to 212 were given, see link.
%H A357301 Mathematics StackExchange, <a href="https://math.stackexchange.com/questions/273348/number-of-circles-in-configuration">Number of circles in configuration</a>, comment by Ed Pegg, Jan 09, 2013.
%e A357301 a(2) = 1: only one possible circle with squared radius 1/2;
%e A357301 a(3) = 7: squared radii of possible circles are {1, 2, 1/2, 5/2, 5/4, 25/16, 25/18}.
%o A357301 (PARI) \\ Function r2 determined using Mathematica
%o A357301 \\ (ArcLength [CircleThrough[{{x1, y1}, {x2, y2}, {x3, y3}}]]/(2*Pi))^2
%o A357301 radii(n) = {my (R=List(), r2(x1,y1,x2,y2,x3,y3) = ((x3 + (x2^2*y1 - x3^2*y1 - x1^2*y2 + x3^2*y2 - y1^2*y2 + y1*y2^2 + x1^2*y3 - x2^2*y3 + y1^2*y3 - y2^2*y3 - y1*y3^2 + y2*y3^2)/(2*(-x2*y1 + x3*y1 + x1*y2 - x3*y2 - x1*y3 + x2*y3)))^2 + (y3 - (-2*(x2 - x3)*(x1^2 - x3^2 + y1^2 - y3^2) + 2*(x1 - x3)*(x2^2 - x3^2 + y2^2 - y3^2))/(-4*x2*y1 + 4*x3*y1 + 4*x1*y2 - 4*x3*y2 - 4*x1*y3 + 4*x2*y3))^2)); for(x1=1, n, for(y1=1, n, for(x2=1, x1, for(y2=1, n, for(x3=1, x2, for(y3=1, n,
%o A357301 my (ax2=2*(x2-x1), ay2=2*(y2-y1), ax3=2*(x3-x1), ay3=2*(y3-y1), den=ax2*ay3 -ax3*ay2); if (den==0, next); listput (R, r2(x1,y1,x2,y2,x3,y3)))))))); Set(R)};
%o A357301 for (k=1,15, print1(#radii(k),", "))
%Y A357301 Cf. A192493, A192494, A355884.
%K A357301 nonn,more
%O A357301 1,3
%A A357301 _Hugo Pfoertner_, Sep 23 2022, following a suggestion by _Ed Pegg Jr_, Jan 09 2013