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.

Previous Showing 21-22 of 22 results.

A177721 Number of line segments connecting exactly 5 points in an n x n grid of points.

Original entry on oeis.org

0, 0, 0, 0, 12, 32, 60, 96, 160, 240, 336, 448, 632, 848, 1096, 1376, 1760, 2192, 2672, 3200, 3952, 4784, 5696, 6688, 7864, 9136, 10504, 11968, 13888, 15952, 18160, 20512, 23280, 26224, 29344, 32640, 36568, 40720, 45096, 49696, 54856, 60272, 65944
Offset: 1

Views

Author

Seppo Mustonen, May 13 2010

Keywords

Comments

a(n) is also the number of pairs of points visible to each other exactly through 3 points in an n x n grid of points.

Programs

  • Mathematica
    j=4;
    a[n_]:=a[n]=If[n<=j,0,2*a1[n]-a[n-1]+R1[n]]
    a1[n_]:=a1[n]=If[n<=j,0,2*a[n-1]-a1[n-1]+R2[n]]
    R1[n_]:=R1[n]=If[n<=j,0,R1[n-1]+4*S[n]]
    R2[n_]:=(n-1)*S[n]
    S[n_]:=If[Mod[n-1,j]==0,EulerPhi[(n-1)/j],0]
    Table[a[n],{n,1,50}]

Formula

See Mathematica code.

A358297 Bisection of main diagonal of A115009.

Original entry on oeis.org

6, 86, 418, 1282, 3106, 6394, 11822, 20074, 32086, 48934, 71554, 101250, 139350, 187254, 246690, 319346, 407302, 511714, 634726, 779074, 946622, 1140238, 1362082, 1614994, 1901930, 2224654, 2587402, 2992414, 3441754, 3941074, 4493414, 5102618, 5770646, 6501286, 7300578, 8170130, 9117486, 10145578, 11256062, 12454678, 13746910, 15140014, 16634530
Offset: 1

Views

Author

N. J. A. Sloane, Dec 05 2022

Keywords

References

  • D. M. Acketa, J. D. Zunic: On the number of linear partitions of the (m,n)-grid. Inform. Process. Lett., 38 (3) (1991), 163-168. See Table A.1.
  • Jovisa Zunic, Note on the number of two-dimensional threshold functions, SIAM J. Discrete Math. Vol. 25 (2011), No. 3, pp. 1266-1268. See Equation (1.2).

Crossrefs

Cf. A114043, A115009, A141255, 33351.
Previous Showing 21-22 of 22 results.