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.

A146212 Number of intersection points of all lines through pairs of vertices of a regular n-gon.

Original entry on oeis.org

3, 5, 15, 37, 91, 145, 333, 471, 891, 901, 1963, 2185, 3795, 3969, 6681, 5563, 10963, 11141, 17031, 17293, 25323, 21913, 36325, 36479, 50571, 50485, 68643, 51661, 91171, 90753, 118833, 118355, 152355, 139861, 192511, 191445, 240123, 238481
Offset: 3

Views

Author

T. D. Noe, Oct 28 2008

Keywords

Comments

This includes intersection points outside of the n-gon. Note that for odd n, n divides a(n); for even n, n divides a(n)-1. For odd n, it appears that a(n)=n*(n^3-7*n^2+15*n-1)/8.
That formula for odd n is correct: see the Sidorenko link. - N. J. A. Sloane, Sep 12 2021

Examples

			a(5)=15 because there are 5 points inside the pentagon, 5 points on the pentagon and five points outside of the pentagon.
		

Crossrefs

Bisection: A347319, A347321.

Formula

There is a formula for odd n: see Comment section and the Sidorenko link. - N. J. A. Sloane, Sep 12 2021

Extensions

More terms from Jon E. Schoenfield, Nov 10 2008
Definition clarified by N. J. A. Sloane, Jun 06 2025