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.

A018810 Number of lines through exactly 3 points of an n X n grid of points.

Original entry on oeis.org

0, 0, 0, 8, 4, 16, 36, 64, 100, 204, 252, 396, 572, 780, 1020, 1484, 1756, 2260, 2828, 3540, 4332, 5556, 6372, 7716, 9188, 10684, 12292, 14684, 16588, 19324, 22268, 25420, 28780, 33164, 36452, 41036, 45892, 51324, 57060, 64540, 70500, 77724, 85300, 93228
Offset: 0

Views

Author

Keywords

References

  • Lucien Pianaro, Jouer Jeux Mathematiques, 9(juillet 1993). [From Philippe DelĂ©ham, Apr 10 2009]

Crossrefs

Cf. A119437.

Formula

a(n) = 1/2 (f(n, 4) - 2 f(n, 3) + f(n, 2)) where f(n, k) = Sum ((n - |kx|)(n - |ky|)); -nSeppo Mustonen, Apr 18 2009]