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-5 of 5 results.

A222268 Number of points defined by the lines described in A222267.

Original entry on oeis.org

15, 649, 13307, 107201, 719981, 2912939
Offset: 2

Views

Author

Clive Tooth, Feb 13 2013

Keywords

Comments

Given a cubic n X n X n grid of points, a collection of lines is produced by constructing a line through every pair of points. A222267 gives the count of such lines. a(n) is the total number of points of intersection of these lines, including the original n^3 points.

Examples

			A 2 X 2 X 2 grid of points defines 28 distinct lines which intersect in a total of 15 points (including the original 8 points).
		

Crossrefs

A222267 is the number of lines produced from the grid of points.

Extensions

a(6) and a(7) from Clive Tooth, Feb 28 2016

A018808 Number of lines through at least 2 points of an n X n grid of points.

Original entry on oeis.org

0, 0, 6, 20, 62, 140, 306, 536, 938, 1492, 2306, 3296, 4722, 6460, 8830, 11568, 14946, 18900, 23926, 29544, 36510, 44388, 53586, 63648, 75674, 88948, 104374, 121032, 139966, 160636, 184466, 209944, 239050, 270588, 305478, 342480, 383370, 427020
Offset: 0

Views

Author

Keywords

Crossrefs

Cf. A222267 (lines defined by n X n X n grid of points).
A288187 is the main entry for these graphs.
Cf. A331780.

Programs

  • Mathematica
    L[0]=0; L1[1]=0; R1[1]=0;
    L[n_]:=L[n]=2*L1[n]-L[n-1]+R1[n]
    L1[n_]:=L1[n]=2*L[n-1]-L1[n-1]+R2[n]
    R1[n_]:=R1[n]=R1[n-1]+4*(EulerPhi[n-1]-e[n])
    e[n_]:=If[Mod[n,2]==0,0,EulerPhi[(n-1)/2]]
    R2[n_]:= If[Mod[n,2]==0,(n-1)*EulerPhi[n-1], If[Mod[n,4]==1,(n-1)*EulerPhi[n-1]/2,0]]
    Table[L[n],{n,0,37}] (* Seppo Mustonen, Apr 25 2009 *)

Formula

(1/2) * (f(n, 1) - f(n, 2)) where f(n, k) = Sum ((n - |x|)(n - |y|)); -n < x < n, -n < y < n, (x, y)=k.
(1/2) * (f(n, 1) - f(n, 2)) where f(n, k) = Sum ((n - |kx|)(n - |ky|)); -n < kx < n, -n < ky < n, (x, y)=1. - Seppo Mustonen, Apr 18 2009
a(0) = L(0,1) = R1(0) = 0, a(n) = L(n,n) = 2L(n-1,n) - L(n-1,n-1) + R1(n), L(n-1,n) = 2L(n-1,n-1) - L(n-2,n-1) + R2(n), R1(n) = R1(n-1) + 4(phi(n-1) - e(n)), e(n)=0, n even, e(n) = phi((n-1)/2), n odd, R2(n) = (n-1)phi(n-1), n even, R2(n)=(n-1)phi(n-1)/2, n=1 mod 4, R2(n)=0, n=3 mod 4. - Seppo Mustonen, Apr 25 2009
a(n) = 2 * A331780(n). - Alois P. Heinz, Jun 05 2023

A270578 The number of distinct planes defined by an n X n X n grid of points.

Original entry on oeis.org

20, 491, 7502, 52013, 297464, 1119791, 3900890, 11135201, 29329232
Offset: 2

Views

Author

Clive Tooth, Mar 19 2016

Keywords

Examples

			The 8 points of the 2 X 2 X 2 grid define 20 planes: the 6 faces of the cube, 6 planes formed by an edge and its opposite edge, and 8 planes defined by the three vertices surrounding a given vertex. So, a(2)=20.
		

Crossrefs

A270579 The number of sets of parallel planes into which the planes defined in A270578 fall.

Original entry on oeis.org

13, 145, 1237, 4813, 19225, 42901, 119725, 233065, 475609
Offset: 2

Views

Author

Clive Tooth, Mar 19 2016

Keywords

Examples

			The 20 planes defined by the points of the 2 X 2 X 2 grid fall into 13 families of parallel planes: 3 parallel to the faces, 4 perpendicular to the space diagonals and 6 which are the planes defined by an edge and its opposite edge. So a(2)=13.
		

Crossrefs

A268020 The number of spheres on which the points defined by A222268 lie.

Original entry on oeis.org

3, 29, 299, 2177, 10482, 41348
Offset: 2

Views

Author

Clive Tooth, Feb 28 2016

Keywords

Comments

Given a cubic n X n X n grid of points, a collection of lines is produced by constructing a line through every pair of points. A222267 gives the count of such lines. A collection of points is produced by taking the points of intersection of those lines. A222268 gives the count of such points. Each point in such a collection will lie on a particular sphere centered at the center of the cubic grid. a(n) is the total number of such spheres, including the radius-zero sphere.

Examples

			A 2 X 2 X 2 grid of points defines 28 distinct lines which intersect in a total of 15 points (including the original 8 points). One of these points is the center of the grid, 8 of them are the vertices of the cube and 6 are the face-centers of the cube. So, a(2) = 3.
		

Crossrefs

Showing 1-5 of 5 results.