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.

Showing 1-4 of 4 results.

A141224 Maximum number of points visible from some point in a square n X n lattice.

Original entry on oeis.org

1, 4, 9, 13, 19, 25, 35, 43, 55, 65, 81, 91, 111, 125, 147, 163, 187, 203, 233, 251, 283, 305, 337, 359, 399, 422, 465, 491, 531, 553, 609, 636, 691, 721, 769, 799, 863, 896, 961, 993, 1051, 1085, 1159, 1199, 1267, 1313, 1377, 1416, 1501, 1547, 1627, 1679
Offset: 1

Views

Author

T. D. Noe, Jun 15 2008

Keywords

Comments

Two points (a,b) and (c,d) are visible to each other when gcd(c-a,d-b)=1. Sequence A141225 gives the number of lattice points that have maximal visibility.

Programs

  • Mathematica
    Table[mx=0; Do[cnt=0; Do[If[GCD[c-a,d-b]<2, cnt++ ], {a,n}, {b,n}]; If[cnt>mx, mx=cnt], {c,n}, {d,n}]; mx, {n,20}]

Formula

The maximum number of visible points is slightly more than c*n^2, with c = 6/Pi^2.

A141226 Numbers n such that the central point of the square n x n lattice sees the maximal number of points.

Original entry on oeis.org

1, 3, 11, 23, 27, 35, 39, 47, 59, 95, 147, 167, 179, 207, 219, 227, 279, 347, 363, 399, 543, 567, 587, 627, 767, 779, 935
Offset: 1

Views

Author

T. D. Noe, Jun 15 2008, Jun 17 2008

Keywords

Comments

These n are the numbers for which A141225(n) is odd. Note that n must be odd. When A141225(n)=1, the central point is the only point seeing the maximal number of points. Except for 1, these numbers are 3 or 11 (mod 12).
These numbers also seem to produce cubic n x n x n lattices in which the central point has maximal visibility; see A141228. Note that for n>3, n-1 is twice a prime in A141246.

A141228 Number of points having maximal visibility in a cubic n x n x n lattice.

Original entry on oeis.org

1, 8, 1, 8, 20, 64, 20, 32, 64, 216, 13, 432, 64, 64, 20, 32, 8, 32, 32, 216, 64, 64, 27, 8, 64, 216, 7, 32, 64, 352, 32, 216, 8, 8, 125, 64, 8, 24, 1, 8, 64, 8, 32, 24, 8, 8, 27, 8, 8, 8
Offset: 1

Views

Author

T. D. Noe, Jun 15 2008

Keywords

Comments

Sequence A141227 gives the maximum number of points visible from some point. By symmetry, when a(n) is odd, the central point in the lattice can see the maximal number of points. When a(n)=1, the central point is the only such point. Apparently the numbers n in A141226 produce both the n x n and n x n x n lattices having central points with maximum visibility.

Crossrefs

Cf. A141225.

Programs

  • Mathematica
    Table[mx=0; pts=0; Do[cnt=0; Do[If[GCD[d-a,e-b,f-c]<2, cnt++ ], {a,n}, {b,n}, {c,n}]; If[cnt>mx, mx=cnt; pts=1, If[cnt==mx, pts++ ]], {d,n}, {e,n}, {f,n}]; pts, {n,10}]

A141248 Number of points having minimal visibility in a square n X n lattice of points.

Original entry on oeis.org

1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 36, 1, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 5, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 9, 4, 4, 52, 4, 4, 8, 4, 4, 44, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 12, 4, 4, 4, 4, 1, 4, 4, 4, 4, 4, 4, 4, 1, 4, 4, 4, 20, 4, 4, 4, 4, 8, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4
Offset: 1

Views

Author

T. D. Noe, Jun 17 2008

Keywords

Comments

Sequence A141247 gives the minimum number of points visible from a point. By symmetry, when a(n) is odd, the central point in the lattice can see only the minimal number of points. When a(n)=1, the central point is the only such point. See A141249 for the n X n lattices that have such a central point.

Crossrefs

Cf. A141225.

Programs

  • Mathematica
    Table[mn=n^2+1; pts=0; Do[cnt=0; Do[If[GCD[c-a,d-b]<2, cnt++ ], {a,n}, {b,n}]; If[cnt
    				
Showing 1-4 of 4 results.