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-10 of 27 results. Next

A092867 Number of regions in an equilateral triangular figure formed by the straight line segments connecting all vertices and all points that divide the sides into n equal parts.

Original entry on oeis.org

1, 12, 75, 252, 715, 1572, 3109, 5676, 9291, 14556, 22081, 32502, 44935, 62868, 83286, 108384, 140152, 181710, 225565, 282978, 342792, 415614, 502318, 606642, 708505, 839874, 983007, 1141416, 1315102, 1529526, 1733476, 1994550, 2259420, 2559990, 2878053, 3237414, 3593521, 4047906, 4510590, 5002350, 5506918, 6128100, 6704800, 7414518, 8113992, 8858622, 9682927, 10626774, 11478142, 12519492
Offset: 1

Views

Author

Hugo Pfoertner, Mar 15 2004

Keywords

Examples

			a(2)=12 because the 6 line segments mutually connecting the vertices and the mid-side nodes form 12 congruent right triangles of two different sizes.
a(3)=75: 48 triangles, 24 quadrilaterals and 3 pentagons are formed. See pictures at Pfoertner link.
		

Crossrefs

Cf. A092866 (number of intersections), A274585 (number of points both inside and on the triangle sides), A274586 (number of edges), A331911 (number of n-gons).
Cf. A092098 (regions in triangle cut by line segments connecting vertices with subdivision points on opposite side), A006533 (regions formed by all diagonals in regular n-gon), A002717 (triangles in triangular matchstick arrangement).
If the boundary points are in general position, we get A367117, A213827, A367118, A367119. - N. J. A. Sloane, Nov 09 2023

Formula

By the Euler characteristic, a(n) = A274586(n) - A274585(n) + 1 = A274586(n) - A092866(n) - 3n - 1.

Extensions

a(1)=1 prepended by Max Alekseyev, Jun 29 2016
a(6)-a(50) from Cynthia Miaina Rasamimanananivo, Jun 28 2016, Jul 01 2016, Aug 05 2016, Aug 15 2016
Definition edited by N. J. A. Sloane, May 13 2020

A092866 Number of intersections inside an equilateral triangular figure formed by the straight line segments mutually connecting all vertices and all points that divide the sides into n equal parts. If three or more lines meet at an interior point this intersection is counted only once.

Original entry on oeis.org

0, 4, 49, 166, 543, 1237, 2511, 4762, 7777, 12262, 18933, 28504, 39078, 56065, 73879, 95962, 124653, 164761, 203259, 258646, 311233, 377932, 458793, 560755, 648936, 775258, 908893, 1056520, 1215087, 1428193, 1607871, 1866007, 2111488, 2399545, 2694010, 3040201, 3356433, 3811387, 4253074, 4720102, 5180466, 5806687, 6324906, 7035949, 7690900, 8392036, 9180330, 10136287, 10894551, 11930833
Offset: 1

Views

Author

Hugo Pfoertner, Mar 10 2004

Keywords

Comments

A detailed example for n=5 is given at the Pfoertner link.

Examples

			a(2)=4 because there are 3 intersection points between the triangle medians and the line segments connecting the midpoints of the sides plus the intersection of the 3 medians at the centroid.
		

Crossrefs

Cf. A092867 (regions formed by the diagonals), A274585 (points both inside and on the triangle sides), A274586 (edges).
Cf. A006561 (number of intersections of diagonals of regular n-gon), A091908 (intersections between line segments connecting vertices with subdivision points on opposite side).
If the boundary points are in general position, we get A367117, A213827, A367118, A367119. - N. J. A. Sloane, Nov 09 2023

Programs

  • Maple
    Inter:= proc(p1x,p1y,p2x,p2y,q1x,q1y,q2x,q2y)
      local det,x,y;
      det:= p1x*q1y-p1x*q2y-p1y*q1x+p1y*q2x-p2x*q1y+p2x*q2y+p2y*q1x-p2y*q2x;
      if det = 0 then return NULL fi;
      x:= (p1x*p2y*q1x-p1x*p2y*q2x-p1x*q1x*q2y+p1x*q1y*q2x-p1y*p2x*q1x+p1y*p2x*q2x+p2x*q1x*q2y-p2x*q1y*q2x)/det;
      y:= (p1x*p2y*q1y-p1x*p2y*q2y-p1y*p2x*q1y+p1y*p2x*q2y-p1y*q1x*q2y+p1y*q1y*q2x+p2y*q1x*q2y-p2y*q1y*q2x)/det;
      if x >0 and y > 0 and x + y < 1 then [x,y]
      else NULL
      fi
    end proc:
    F:= proc(n) local A,B,C,Pairs,Pts;
         A:= [seq([j/n,0],j=0..n)];
         B:= [seq([0,j/n],j=0..n)];
         C:= [seq([j/n,1-j/n],j=0..n)];
         Pairs:= [seq(seq([A[i],B[j]],i=2..n+1),j=2..n+1),
                  seq(seq([A[i],C[j]],i=1..n),j=1..n),
                  seq(seq([B[i],C[j]],i=1..n),j=2..n+1)];
         Pts:= {seq(seq(Inter(op(Pairs[i][1]),op(Pairs[i][2]),op(Pairs[j][1]),op(Pairs[j][2])),j=1..i-1),i=2..nops(Pairs))};
         nops(Pts);
    end proc:
    map(F, [$1..20]); # Robert Israel, Jun 30 2016
  • Mathematica
    Inter[{p1x_, p1y_}, {p2x_, p2y_}, {q1x_, q1y_}, {q2x_, q2y_}] := Module[ {det, x, y}, det = p1x q1y - p1x q2y - p1y q1x + p1y q2x - p2x q1y + p2x q2y + p2y q1x - p2y q2x; If[det == 0, Return[Nothing]]; x = (p1x p2y q1x - p1x p2y q2x - p1x q1x q2y + p1x q1y q2x - p1y p2x q1x + p1y p2x q2x + p2x q1x q2y - p2x q1y q2x)/det; y = (p1x p2y q1y - p1x p2y q2y - p1y p2x q1y + p1y p2x q2y - p1y q1x q2y + p1y q1y q2x + p2y q1x q2y - p2y q1y q2x)/det; If[x > 0 && y > 0 && x + y < 1, {x, y}, Nothing]];
    F[n_] := F[n] = Module[{A, B, K, Pairs, Pts}, A = Table[{j/n, 0}, {j, 0, n}]; B = Table[{0, j/n}, {j, 0, n}]; K = Table[{j/n, 1 - j/n}, {j, 0, n}]; Pairs = {Table[Table[{A[[i]], B[[j]]}, {i, 2, n+1}], {j, 2, n+1}], Table[Table[{A[[i]], K[[j]]}, {i, 1, n}], {j, 1, n}], Table[Table[ {B[[i]], K[[j]]}, {i, 1, n}], {j, 2, n+1}]} // Flatten[#, 2]&; Pts = Table[Table[Inter[Pairs[[i, 1]], Pairs[[i, 2]], Pairs[[j, 1]], Pairs[[j, 2]]], {j, 1, i-1}], {i, 2, Length[Pairs]}]; Flatten[Pts, 1] // Union // Length];
    Table[Print[n, " ", F[n]]; F[n], {n, 1, 20}] (* Jean-François Alcover, Apr 11 2019, after Robert Israel *)

Formula

a(n) = A274585(n) - 3n.

Extensions

a(1) = 0 prepended by Max Alekseyev, Jun 29 2016
a(4) corrected and a(6)-a(20) added by Cynthia Miaina Rasamimanananivo, Jun 28 2016
a(20) corrected by Robert Israel, Jun 30 2016
a(21)-a(50) from Cynthia Miaina Rasamimanananivo, Jun 30 - Aug 23, 2016
"Equilateral" added to definition by N. J. A. Sloane, May 13 2020

A274585 Total number of vertices formed by intersections among sides and straight "chords" in a right triangle when each side is divided by vertices into n equal segments.

Original entry on oeis.org

1, 3, 10, 58, 178, 558, 1255, 2532, 4786, 7804, 12292, 18966, 28540, 39117, 56107, 73924, 96010, 124704, 164815, 203316, 258706, 311296, 377998, 458862, 560827, 649011, 775336, 908974, 1056604, 1215174, 1428283, 1607964, 1866103, 2111587, 2399647, 2694115, 3040309, 3356544, 3811501, 4253191, 4720222, 5180589, 5806813, 6325035, 7036081, 7691035, 8392174, 9180471, 10136431, 10894698, 11930983
Offset: 0

Views

Author

Cynthia Miaina Rasamimanananivo and Max Alekseyev, Jun 29 2016, Sep 02 2016

Keywords

Comments

Total number of points at intersections of sides/"chords" for the triangle in A092866(n).

Crossrefs

Formula

a(n) = A092866(n) + 3n.
By the Euler characteristic, a(n) = A274586(n) - A092867(n) + 1.

Extensions

a(0) = 1 added by N. J. A. Sloane, Jan 22 2022

A330845 The number of edges inside a hexagon formed by the straight line segments mutually connecting all vertices and all points that divide the sides into n equal parts.

Original entry on oeis.org

42, 708, 4020, 15120, 38544, 83136, 169686, 294678, 475500, 746340, 1140624, 1581612, 2296986, 3055734, 3980526, 5391264, 7003662, 8516346, 11094810, 13280970, 16180932, 19971282, 24277212, 28090218, 33683862, 39656604, 45901494, 53121744, 62678268, 69382632
Offset: 1

Views

Author

Keywords

Comments

See the links in A331931 for images of the hexagons.

Crossrefs

Cf. A331931 (regions), A331932 (n-gons), A330846 (vertices), A274586 , A332600, A331765.

Extensions

a(9)-a(30) from Lars Blomberg, May 12 2020

A331911 Triangle read by rows: Take an equilateral triangle with all diagonals drawn, as in A092867. Then T(n,k) = number of k-sided polygons in that figure for k = 3, 4, ..., n+2 and where n is the number of equal parts each side is divided into.

Original entry on oeis.org

1, 12, 0, 48, 24, 3, 162, 90, 0, 0, 378, 306, 15, 16, 0, 774, 696, 84, 18, 0, 0, 1470, 1383, 219, 37, 0, 0, 0, 2604, 2382, 600, 78, 6, 6, 0, 0, 4224, 4089, 771, 177, 24, 6, 0, 0, 0, 6624, 6186, 1470, 234, 42, 0, 0, 0, 0, 0, 9738, 9486, 2307, 498, 48, 0, 0, 3, 0, 1, 0, 14010, 13548, 3984, 816, 144, 0, 0, 0, 0, 0, 0, 0
Offset: 1

Views

Author

Keywords

Examples

			An equilateral triangle with no other point along its edges, n = 1, contains 1 triangle so the first row is [1]. An equilateral triangle with 1 point dividing its edges, n = 2, contains 12 triangles and no other n-gons, so the second row is [12,0]. An equilateral triangle with 2 points dividing its edges, n = 3, contains 48 triangles, 24 quadrilaterals and 3 pentagons, so the third row is [48,24,3].
Triangle begins:
1
12,0
48,24,3
162,90,0,0
378,306,15,16,0
774,696,84,18,0,0
1470,1383,219,37,0,0,0
2604,2382,600,78,6,6,0,0
4224,4089,771,177,24,6,0,0,0
6624,6186,1470,234,42,0,0,0,0,0
9738,9486,2307,498,48,0,0,3,0,1,0
14010,13548,3984,816,144,0,0,0,0,0,0,0
19248,19224,5007,1102,156,18,0,0,0,0,0,0,0
26208,26142,8634,1668,192,24,0,0,0,0,0,0,0,0
The row sums are A092867.
		

Crossrefs

A367117 Place n points in general position on each side of an equilateral triangle, and join every pair of the 3*n+3 boundary points by a chord; sequence gives number of vertices in the resulting planar graph.

Original entry on oeis.org

3, 12, 72, 282, 795, 1818, 3612, 6492, 10827, 17040, 25608, 37062, 51987, 71022, 94860, 124248, 159987, 202932, 253992, 314130, 384363, 465762, 559452, 666612, 788475, 926328, 1081512, 1255422, 1449507, 1665270, 1904268, 2168112, 2458467, 2777052, 3125640, 3506058, 3920187, 4369962
Offset: 0

Views

Author

Keywords

Comments

"In general position" implies that the internal lines (or chords) only have simple intersections. There is no interior point where three or more chords meet.
Note that although the number of k-gons in the graph will vary as the edge points change position, the total number of regions will stay constant as long as all internal vertices remain simple.

Crossrefs

Cf. A367118 (regions), A367119 (edges).
If the boundary points are equally spaced, we get A274585, A092866, A274586, A092867. - N. J. A. Sloane, Nov 09 2023

Programs

Formula

Theorem: a(n) = (3/4)*(n+1)*(3*n^3+n^2+4).
a(n) = A367119(n) - A367118(n) + 1 by Euler's formula.

A367118 Place n points in general position on each side of an equilateral triangle, and join every pair of the 3*n+3 boundary points by a chord; sequence gives number of regions in the resulting planar graph.

Original entry on oeis.org

1, 13, 82, 307, 841, 1891, 3718, 6637, 11017, 17281, 25906, 37423, 52417, 71527, 95446, 124921, 160753, 203797, 254962, 315211, 385561, 467083, 560902, 668197, 790201, 928201, 1083538, 1257607, 1451857, 1667791, 1906966, 2170993, 2461537, 2780317, 3129106, 3509731, 3924073, 4374067
Offset: 0

Views

Author

Keywords

Comments

"In general position" implies that the internal lines (or chords) only have simple intersections. There is no interior point where three or more chords meet.

Crossrefs

Cf. A367117 (vertices), A367119 (edges), A091908, A092098, A331782, A367015.
If the boundary points are equally spaced, we get A274585, A092866, A274586, A092867. - N. J. A. Sloane, Nov 09 2023

Formula

Conjecture: a(n) = (1/4)*(9*n^4 + 12*n^3 + 15*n^2 + 12*n + 4).
a(n) = A367119(n) - A367117(n) + 1 by Euler's formula.

A367119 Place n points in general position on each side of an equilateral triangle, and join every pair of the 3*n+3 boundary points by a chord; sequence gives number of edges in the resulting planar graph.

Original entry on oeis.org

3, 24, 153, 588, 1635, 3708, 7329, 13128, 21843, 34320, 51513, 74484, 104403, 142548, 190305, 249168, 320739, 406728, 508953, 629340, 769923, 932844, 1120353, 1334808, 1578675, 1854528, 2165049, 2513028, 2901363, 3333060, 3811233, 4339104, 4920003, 5557368, 6254745, 7015788
Offset: 0

Views

Author

Keywords

Comments

"In general position" implies that the internal lines (or chords) only have simple intersections. There is no interior point where three or more chords meet.
See A367117 and A367118 for images of the triangle.

Crossrefs

Cf. A367117 (vertices), A367118 (regions), A091908, A092098, A331782, A366932.
If the boundary points are equally spaced, we get A274585, A092866, A274586, A092867. - N. J. A. Sloane, Nov 09 2023

Formula

Conjecture: a(n) = (3/2)*(3*n^4 + 4*n^3 + 3*n^2 + 4*n + 2).
a(n) = A367117 (n) + A367118 (n) - 1 by Euler's formula.

A329710 The number of edges inside a pentagon formed by the straight line segments mutually connecting all vertices and all points that divide the sides into n equal parts.

Original entry on oeis.org

20, 290, 2215, 7405, 21150, 43490, 88230, 151135, 250825, 384360, 578840, 814180, 1151525, 1550530, 2063225, 2676925, 3452460, 4333340, 5436210, 6668320, 8154980, 9837690, 11822175, 13993360, 16569650, 19401865, 22636495, 26182350, 30253225, 34608450, 39628050
Offset: 1

Views

Author

Keywords

Comments

See the links in A331929 for images of the pentagons.

Crossrefs

Cf. A331929 (regions), A331939 (n-gons), A330847 (vertices), A330845, A274586, A332600, A331765.

Extensions

a(9) and beyond from Lars Blomberg, May 11 2020

A332419 The number of edges on a decagon formed by the straight line segments mutually connecting all vertices and all points that divide the sides into n equal parts.

Original entry on oeis.org

390, 7800, 48870, 164470, 430840, 900890, 1735800, 2982660, 4849740, 7438490, 11017860, 15596420, 21713060, 29254830, 38714410, 50238450, 64311090, 80839300, 100786890, 123786030, 150835530
Offset: 1

Views

Author

Keywords

Comments

See the links in A333139 for images of the decagons.

Crossrefs

Cf. A333139 (regions), A332417 (n-gons), A332418 (vertices), A330845, A274586, A332600, A331765.

Extensions

a(6)-a(21) from Lars Blomberg, May 18 2020
Showing 1-10 of 27 results. Next