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.
%I A331400 #31 Feb 16 2025 08:33:59 %S A331400 2,3,4,5,6,7,8,9,10,12,14,16,18,20,22,24,26,27,29,30,32,33,35,36,38, %T A331400 39,41,42,44,45,47,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,80, %U A331400 82,83,84,85,87,88,89,90,92,93,94,95,97,98,99,100,102,103,104,105,107,108,109,110,112,113,114,115 %N A331400 The grid points visible from the central point of an infinite 2D square lattice where all grid points are numbered as in the Ulam spiral. %C A331400 Any grid point with relative coordinates (x,y) from the central grid point, which is numbered 1, and where the greatest common divisor (gcd) of |x| and |y| equals 1 will be visible from the central point. Grid points where gcd(|x|,|y|) > 1 will have another point directly between it and the central point and will thus not be visible. %C A331400 In an infinite 2D square lattice the ratio of visible grid points to all points is 6/pi^2, the same as the probability of two random numbers being relative prime. %H A331400 Scott R. Shannon, <a href="/A331400/b331400.txt">Table of n, a(n) for n = 1..20000</a>. %H A331400 Scott R. Shannon, <a href="/A331400/a331400.png">Image showing the grid points visible from point 1 for the first 100000 grid points</a>. Each point is surrounded by a 1 X 1 square which is colored according to the visibility of the point is contains - yellow indicates those points visible from point 1, gray are those not visible. All squares are labeled with their corresponding point number in the Ulam spiral numbering. The spiral path tracing out the number ordering is also shown. %H A331400 Eric Weisstein's World of Mathematics, <a href="https://mathworld.wolfram.com/VisiblePoint.html">Visible Point</a>. %H A331400 Wikipedia, <a href="https://en.wikipedia.org/wiki/Ulam_spiral">Ulam Spiral</a>. %e A331400 a(1) = 2 to a(8) = 9 are the eight adjacent grid points to point 1, thus all are visible from that point. %e A331400 a(9) = 10 is the first non-adjacent point to square 1, but as it is located at relative coordinates (2,-1) it is visible as gcd(|-2|,|1|) = 1. %e A331400 The point numbered 11 is the first point not visible from point 1 as it has relative coordinates (2,0) and gcd(|2|,|0|) = 2. %Y A331400 Cf. A063826, A157426, A157428, A325604, A325606. %K A331400 nonn %O A331400 1,1 %A A331400 _Scott R. Shannon_, Jan 16 2020