login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 


A018812
Number of lines through exactly 5 points of an n X n grid of points.
2
0, 0, 0, 0, 0, 12, 4, 4, 4, 24, 52, 40, 20, 76, 148, 236, 204, 228, 252, 356, 476, 612, 764, 932, 1116, 1524, 1548, 1556, 1548, 1884, 2252, 2652, 3084, 3820, 4620, 5484, 5524, 6140, 6788, 7468, 8180, 8588, 8996, 9932, 10916, 12868, 13820, 14804, 15820, 17668
OFFSET
0,6
FORMULA
a(n) = 1/2 (f(n, 6) - 2 f(n, 5) + f(n, 4)) where f(n, k) = Sum ((n - |kx|)(n - |ky|)); -n<kx<n, -n<ky<n, (x, y)=1. [From Seppo Mustonen, Apr 18 2009]
CROSSREFS
Cf. A119437.
Sequence in context: A010202 A079792 A079791 * A306375 A139358 A004477
KEYWORD
nonn
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 22 03:58 EDT 2024. Contains 376093 sequences. (Running on oeis4.)