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

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

A344311 Number of polygons formed outside a regular n-gon when every pair of vertices of the n-gon are joined by an infinite line.

Original entry on oeis.org

0, 0, 0, 0, 5, 18, 49, 96, 198, 320, 550, 708, 1235, 1582, 2415, 2912, 4284, 4518, 7068, 8080, 11025, 12430, 16445, 16992, 23650, 26000, 32994, 35896, 44863, 42090, 59675, 64064, 77880, 83232, 99960, 102132, 126429, 133950, 157833, 166560, 194750, 191310, 237790, 249480, 287595, 301070
Offset: 1

Views

Author

Scott R. Shannon, Jun 01 2021

Keywords

Comments

See A344857 for other examples and images of the polygons.
Only finite polygons are counted. - N. J. A. Sloane, Jun 11 2021

Examples

			a(5) = 5 as the five connected vertices of a regular pentagon form five triangles outside the pentagon, along with sixteen polygons on the inside.
		

Crossrefs

Cf. A344857 (total number of polygons), A007678 (number of polygons inside the n-gon), A345025 (total number of polygons and open regions), A344938, A344857, A344866, A146213 (number of vertices).

Formula

For odd n, a(n) = (2*n^4 - 15*n^3 + 34*n^2 - 21*n)/24 (see A344857).
a(n) = A344857(n) - A007678(n).

Extensions

Edited by N. J. A. Sloane, Sep 12 2021

A211382 Number of intersections of diagonals in the exterior of a regular n-gon.

Original entry on oeis.org

0, 0, 0, 0, 7, 24, 63, 110, 242, 360, 650, 812, 1425, 1680, 2737, 2718, 4788, 5200, 7812, 8272, 12075, 11328, 17875, 18486, 25542, 26264, 35438, 29070, 47957, 48800, 63525, 64362, 82600, 77940, 105672, 106552, 133263, 134200, 165927, 149478, 204250, 205128, 248850, 249596, 300377
Offset: 3

Views

Author

Martin Renner, Feb 07 2013

Keywords

Crossrefs

Programs

  • Sage
    def a(n):
        K = CyclotomicField(n); z = K.gen(); S = set()
        for i in range(n):
            for j in range(i+2, n):
                for k in range(j+1, n):
                    for l in range(k+2, n+i):
                        x = (z^(i-j)-z^(j-i))*(z^l-z^k)-(z^(k-l)-z^(l-k))*(z^j-z^i)
                        y = (z^-j-z^-i)*(z^l-z^k)-(z^-l-z^-k)*(z^j-z^i)
                        if (not y.is_zero()): S.add(x/y)
        return len(S)  # Robin Visser, Jul 29 2024

Formula

a(n) = 1/24*n*(n-3)*(n-5)*(2*n-11) for n odd

Extensions

a(17)-a(29) from Martin Renner, Feb 24 2013
More terms from Robin Visser, Jul 29 2024

A383462 Triangle read by rows: T(n,k) (n >= 3, 2 <= k <= n-1) = number of vertices where k lines cross in the planar graph formed when every pair of vertices of a regular n-gon are joined by an infinite line.

Original entry on oeis.org

3, 1, 4, 10, 0, 5, 30, 1, 0, 6, 84, 0, 0, 0, 7, 120, 16, 1, 0, 0, 8, 324, 0, 0, 0, 0, 0, 9, 420, 40, 0, 1, 0, 0, 0, 10, 880, 0, 0, 0, 0, 0, 0, 0, 11, 708, 156, 24, 0, 1, 0, 0, 0, 0, 12, 1950, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13, 1890, 280, 0, 0, 0, 1, 0, 0, 0, 0, 0, 14
Offset: 3

Views

Author

Keywords

Comments

For other illustrations see A146212, A344857, A292105.

Examples

			Triangle begins:
   3;
   1, 4;
   10, 0, 5;
   30, 1, 0, 6;
   84, 0, 0, 0, 7;
   120, 16, 1, 0, 0, 8;
   324, 0, 0, 0, 0, 0, 9;
   420, 40, 0, 1, 0, 0, 0, 10;
   880, 0, 0, 0, 0, 0, 0, 0, 11;
   708, 156, 24, 0, 1, 0, 0, 0, 0, 12;
   1950, 0, 0, 0, 0, 0, 0, 0, 0, 0, 13;
   1890, 280, 0, 0, 0, 1, 0, 0, 0, 0, 0, 14;
   3780, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 15;
   3408, 544, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 16;
   6664, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 17;
   4572, 756, 108, 108, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 18;
   10944, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 19;
   9840, 1280, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 20;
   .
   .
See the attached table for rows 3 to 100.
For n = 8, we may classify the vertices by degree and according to whether they are outside, on, or inside the octagon:
                V2      V3      V4      V5      V6      V7
----------------------------------------------------------
   outside      80      8
   on           0       0       0       0       0       8
   inside       40      8       1       0       0       0
----------------------------------------------------------
   totals       120     16      1       0       0       8
----------------------------------------------------------
   Grand total: 145 = A146212(8)
In general, for n >= 3, the counts for inside the defining polygon are given by row n of A292105, the total number on or inside the polygon by A007569, and the number outside by A146213.
		

Crossrefs

Row sums are A146212.
Showing 1-4 of 4 results.