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

A006600 Total number of triangles visible in regular n-gon with all diagonals drawn.

Original entry on oeis.org

1, 8, 35, 110, 287, 632, 1302, 2400, 4257, 6956, 11297, 17234, 25935, 37424, 53516, 73404, 101745, 136200, 181279, 236258, 306383, 389264, 495650, 620048, 772785, 951384, 1167453, 1410350, 1716191, 2058848, 2463384, 2924000, 3462305, 4067028, 4776219, 5568786, 6479551
Offset: 3

Views

Author

Keywords

Comments

Place n equally-spaced points on a circle, join them in all possible ways; how many triangles can be seen?

Examples

			a(4) = 8 because in a quadrilateral the diagonals cross to make four triangles, which pair up to make four more.
		

References

  • N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).

Crossrefs

Often confused with A005732.
Row sums of A363174.
Sequences related to chords in a circle: A001006, A054726, A006533, A006561, A006600, A007569, A007678. See also entries for chord diagrams in Index file.

Programs

  • Mathematica
    del[m_,n_]:=If[Mod[n,m]==0,1,0]; Tri[n_]:=n(n-1)(n-2)(n^3+18n^2-43n+60)/720 - del[2,n](n-2)(n-7)n/8 - del[4,n](3n/4) - del[6,n](18n-106)n/3 + del[12,n]*33n + del[18,n]*36n + del[24,n]*24n - del[30,n]*96n - del[42,n]*72n - del[60,n]*264n - del[84,n]*96n - del[90,n]*48n - del[120,n]*96n - del[210,n]*48n; Table[Tri[n], {n,3,1000}] (* T. D. Noe, Dec 21 2006 *)

Formula

a(2n-1) = A005732(2n-1) for n > 1; a(2n) = A005732(2n) - A260417(n) for n > 1. - Jonathan Sondow, Jul 25 2015

Extensions

a(3)-a(8) computed by Victor Meally (personal communication to N. J. A. Sloane, circa 1975); later terms and recurrence from S. Sommars and T. Sommars.

A260417 Number of triple-crossings of diagonals in the regular 2n-gon.

Original entry on oeis.org

0, 1, 12, 30, 128, 147, 264, 1056, 600, 825, 2380, 1482, 1932, 9635, 3024, 3672, 8484, 5301, 6300, 19474, 8580, 9867, 20744, 12900, 14664, 30141, 18564, 20706, 62200, 25575, 28320, 54956, 34272, 37485, 62868, 44622, 48564, 86359, 57000, 61500, 117068, 71337
Offset: 2

Views

Author

Jonathan Sondow, Jul 25 2015

Keywords

Comments

Same as (total number of triangles visible in convex 2n-gon with all diagonals drawn in general position) - (total number of triangles visible in regular 2n-gon with all diagonals drawn).
Number of triple-crossings of diagonals in the regular 2n+1-gon is 0.
See Sillke 1998 (where a(n) is called "T(2n)") for explanations and extensive annotated references.
See A005732 and A006600 for more comments, references, links, formulas, examples, programs, and lists from which to compute a(n) = A005732(2n) - A006600(2n) up to n = 500.

Examples

			With only 2 diagonals in a 4-gon, there can be no triple-crossings, so a(2) = 0.
		

Crossrefs

Sequences related to chords in a circle: A001006, A054726, A006533, A006561, A006600, A007569, A007678. See also entries for chord diagrams in Index file.

Formula

a(n) = A005732(2n) - A006600(2n).

A341441 Total number of triangles visible in a regular (2n+1)-gon with all diagonals drawn.

Original entry on oeis.org

1, 35, 287, 1302, 4257, 11297, 25935, 53516, 101745, 181279, 306383, 495650, 772785, 1167453, 1716191, 2463384, 3462305, 4776219, 6479551, 8659118, 11415425, 14864025, 19136943, 24384164, 30775185, 38500631, 47773935, 58833082, 71942417, 87394517, 105512127
Offset: 1

Views

Author

Edward Porcella, Feb 11 2021

Keywords

Comments

For n=1, an equilateral triangle, there is no diagonal, and thus the polygon itself is the only triangle.

Crossrefs

Bisection (odd part) of A005732 and of A006600.

Formula

a(n) = n*(2*n+1)*(2*n-1)*(2*n^3+21*n^2-2*n+9)/90.
G.f.: x*(x^5+20*x^4+7*x^3-63*x^2-28*x-1)/(x-1)^7. - Alois P. Heinz, Feb 11 2021
E.g.f.: exp(x)*x*(90 + 1485*x + 2775*x^2 + 1350*x^3 + 204*x^4 + 8*x^5)/90. - Stefano Spezia, Feb 12 2021
Showing 1-3 of 3 results.