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

A033581 a(n) = 6*n^2.

Original entry on oeis.org

0, 6, 24, 54, 96, 150, 216, 294, 384, 486, 600, 726, 864, 1014, 1176, 1350, 1536, 1734, 1944, 2166, 2400, 2646, 2904, 3174, 3456, 3750, 4056, 4374, 4704, 5046, 5400, 5766, 6144, 6534, 6936, 7350, 7776, 8214, 8664, 9126, 9600, 10086, 10584, 11094, 11616
Offset: 0

Views

Author

Keywords

Comments

Number of edges of a complete 4-partite graph of order 4n, K_n,n,n,n. - Roberto E. Martinez II, Oct 18 2001
Number of edges of the complete bipartite graph of order 7n, K_n, 6n. - Roberto E. Martinez II, Jan 07 2002
Number of edges in the line graph of the product of two cycle graphs, each of order n, L(C_n x C_n). - Roberto E. Martinez II, Jan 07 2002
Total surface area of a cube of edge length n. See A000578 for cube volume. See A070169 and A071399 for surface area and volume of a regular tetrahedron and links for the other Platonic solids. - Rick L. Shepherd, Apr 24 2002
a(n) can represented as n concentric hexagons (see example). - Omar E. Pol, Aug 21 2011
Sequence found by reading the line from 0, in the direction 0, 6, ..., in the square spiral whose vertices are the generalized pentagonal numbers A001318. Opposite numbers to the members of A003154 in the same spiral. - Omar E. Pol, Sep 08 2011
Together with 1, numbers m such that floor(2*m/3) and floor(3*m/2) are both squares. Example: floor(2*150/3) = 100 and floor(3*150/2) = 225 are both squares, so 150 is in the sequence. - Bruno Berselli, Sep 15 2014
a(n+1) gives the number of vertices in a hexagon-like honeycomb built from A003215(n) congruent regular hexagons (see link). Example: a hexagon-like honeycomb consisting of 7 congruent regular hexagons has 1 core hexagon inside a perimeter of six hexagons. The perimeter has 18 vertices. The core hexagon has 6 vertices. a(2) = 18 + 6 = 24 is the total number of vertices. - Ivan N. Ianakiev, Mar 11 2015
a(n) is the area of the Pythagorean triangle whose sides are (3n, 4n, 5n). - Sergey Pavlov, Mar 31 2017
More generally, if k >= 5 we have that the sequence whose formula is a(n) = (2*k - 4)*n^2 is also the sequence found by reading the line from 0, in the direction 0, (2*k - 4), ..., in the square spiral whose vertices are the generalized k-gonal numbers. In this case k = 5. - Omar E. Pol, May 13 2018
The sequence also gives the number of size=1 triangles within a match-made hexagon of size n. - John King, Mar 31 2019
For hexagons, the number of matches required is A045945; thus number of size=1 triangles is A033581; number of larger triangles is A307253 and total number of triangles is A045949. See A045943 for analogs for Triangles; see A045946 for analogs for Stars. - John King, Apr 04 2019

Examples

			From _Omar E. Pol_, Aug 21 2011: (Start)
Illustration of initial terms as concentric hexagons:
.
.                                 o o o o o o
.                                o           o
.              o o o o          o   o o o o   o
.             o       o        o   o       o   o
.   o o      o   o o   o      o   o   o o   o   o
.  o   o    o   o   o   o    o   o   o   o   o   o
.   o o      o   o o   o      o   o   o o   o   o
.             o       o        o   o       o   o
.              o o o o          o   o o o o   o
.                                o           o
.                                 o o o o o o
.
.    6            24                   54
.
(End)
		

Crossrefs

Bisection of A032528. Central column of triangle A001283.
Cf. A017593 (first differences).

Programs

Formula

a(n) = A000290(n)*6. - Omar E. Pol, Dec 11 2008
a(n) = A001105(n)*3 = A033428(n)*2. - Omar E. Pol, Dec 13 2008
a(n) = 12*n + a(n-1) - 6, with a(0)=0. - Vincenzo Librandi, Aug 05 2010
G.f.: 6*x*(1+x)/(1-x)^3. - Colin Barker, Feb 14 2012
For n > 0: a(n) = A005897(n) - 2. - Reinhard Zumkeller, Apr 27 2014
a(n) = 3*floor(1/(1-cos(1/n))) = floor(1/(1-n*sin(1/n))) for n > 0. - Clark Kimberling, Oct 08 2014
a(n) = t(4*n) - 4*t(n), where t(i) = i*(i+k)/2 for any k. Special case (k=1): a(n) = A000217(4*n) - 4*A000217(n). - Bruno Berselli, Aug 31 2017
From Amiram Eldar, Feb 03 2021: (Start)
Sum_{n>=1} 1/a(n) = Pi^2/36.
Sum_{n>=1} (-1)^(n+1)/a(n) = Pi^2/72 (A086729).
Product_{n>=1} (1 + 1/a(n)) = sqrt(6)*sinh(Pi/sqrt(6))/Pi.
Product_{n>=1} (1 - 1/a(n)) = sqrt(6)*sin(Pi/sqrt(6))/Pi. (End)
E.g.f.: 6*exp(x)*x*(1 + x). - Stefano Spezia, Aug 19 2022

Extensions

More terms from Larry Reeves (larryr(AT)acm.org), Nov 08 2001

A019557 Coordination sequence for G_2 lattice.

Original entry on oeis.org

1, 12, 30, 48, 66, 84, 102, 120, 138, 156, 174, 192, 210, 228, 246, 264, 282, 300, 318, 336, 354, 372, 390, 408, 426, 444, 462, 480, 498, 516, 534, 552, 570, 588, 606, 624, 642, 660, 678, 696, 714, 732, 750, 768, 786, 804, 822, 840, 858, 876, 894, 912, 930, 948, 966, 984, 1002, 1020, 1038, 1056
Offset: 0

Views

Author

Michael Baake (mbaake(AT)sunelc3.tphys.physik.uni-tuebingen.de)

Keywords

Comments

Also, coordination sequence of Dual(3.12.12) tiling with respect to a 12-valent node. - N. J. A. Sloane, Jan 22 2018
For n > 1, also the number of minimum vertex colorings of the n-Andrásfai graph. - Eric W. Weisstein, Mar 03 2024

Examples

			From _Peter M. Chema_, Mar 20 2016: (Start)
Illustration of initial terms:
                                                       o
                                                      o o
                                    o                o   o
                                   o o        o o o o o o o o o o
                  o           o o o o o o o    o   o       o   o
               o o o o         o o     o o      o o         o o
     o          o   o           o       o        o           o
               o o o o         o o     o o      o o         o o
                  o           o o o o o o o    o   o       o   o
                                   o o        o o o o o o o o o o
                                    o                o   o
                                                      o o
                                                       o
     1           12                30                 48
Compare to A003154, A045946, and A270700. (End)
		

Crossrefs

For partial sums see A082040.
List of coordination sequences for Laves tilings (or duals of uniform planar nets): [3,3,3,3,3.3] = A008486; [3.3.3.3.6] = A298014, A298015, A298016; [3.3.3.4.4] = A298022, A298024; [3.3.4.3.4] = A008574, A296368; [3.6.3.6] = A298026, A298028; [3.4.6.4] = A298029, A298031, A298033; [3.12.12] = A019557, A298035; [4.4.4.4] = A008574; [4.6.12] = A298036, A298038, A298040; [4.8.8] = A022144, A234275; [6.6.6] = A008458.

Programs

  • Mathematica
    CoefficientList[Series[(1 + 10 x + 7 x^2)/(1 - x)^2, {x, 0, 59}], x] (* Michael De Vlieger, Mar 21 2016 *)
  • PARI
    my(x='x+O('x^100)); Vec((1+10*x+7*x^2)/(1-x)^2) \\ Altug Alkan, Mar 20 2016

Formula

a(n) = 18*n - 6, n >= 1.
G.f.: (1 + 10*x + 7*x^2)/(1-x)^2.
From Elmo R. Oliveira, Apr 04 2025: (Start)
E.g.f.: 6*exp(x)*(3*x - 1) + 7.
a(n) = 6*A016789(n-1) for n >= 1.
a(n) = 2*a(n-1) - a(n-2) for n >= 3. (End)

A045945 Hexagonal matchstick numbers: a(n) = 3*n*(3*n+1).

Original entry on oeis.org

0, 12, 42, 90, 156, 240, 342, 462, 600, 756, 930, 1122, 1332, 1560, 1806, 2070, 2352, 2652, 2970, 3306, 3660, 4032, 4422, 4830, 5256, 5700, 6162, 6642, 7140, 7656, 8190, 8742, 9312, 9900, 10506, 11130, 11772, 12432, 13110, 13806, 14520, 15252, 16002, 16770, 17556
Offset: 0

Views

Author

Keywords

Comments

This may also be construed as the number of line segments illustrating the isometric projection of a cube of side length n. Moreover, a(n) equals the number of rods making a cube of side length n+1 minus the number of rods making a cube of side length n. See the illustration in the links and formula below.

Crossrefs

The hexagon matchstick sequences are: Number of matchsticks: this sequence; size=1 triangles: A033581; larger triangles: A307253; total triangles: A045949. Analog for triangles: A045943; analog for stars: A045946. - John King, Apr 05 2019

Programs

Formula

a(n) = a(n-1) + 6*(3*n-1) (with a(0)=0). - Vincenzo Librandi, Nov 18 2010
G.f.: 6*x*(2+x)/(1-x)^3. - Colin Barker, Feb 12 2012
a(n) = 6*A005449(n). - R. J. Mathar, Feb 13 2016
a(n) = A059986(n) - A059986(n-1). - Peter M. Chema, Feb 26 2017
a(n) = 6*(A000217(n) + A000290(n)). - Peter M. Chema, Mar 26 2017
From Amiram Eldar, Jan 14 2021: (Start)
Sum_{n>=1} 1/a(n) = 1 - Pi/(6*sqrt(3)) - log(3)/2.
Sum_{n>=1} (-1)^(n+1)/a(n) = -1 + Pi/(3*sqrt(3)) + 2*log(2)/3. (End)
From Elmo R. Oliveira, Dec 12 2024: (Start)
E.g.f.: 3*exp(x)*x*(4 + 3*x).
a(n) = 3*a(n-1) - 3*a(n-2) + a(n-3) for n >= 3. (End)

A045949 Number of equilateral triangles formed out of matches that can be found in a hexagonal chunk of side length n in hexagonal array of matchsticks.

Original entry on oeis.org

0, 6, 38, 116, 262, 496, 840, 1314, 1940, 2738, 3730, 4936, 6378, 8076, 10052, 12326, 14920, 17854, 21150, 24828, 28910, 33416, 38368, 43786, 49692, 56106, 63050, 70544, 78610, 87268, 96540, 106446, 117008, 128246, 140182, 152836, 166230, 180384, 195320, 211058
Offset: 0

Views

Author

Keywords

Crossrefs

See A008893 for a related sequence.
For hexagons, the number of matches required is A045945, the number of size=1 triangles is A033581, the larger triangles is A307253 and the total number is A045949. For the analogs for triangles see A045943 and for stars see A045946. - John King, Apr 05 2019

Programs

  • GAP
    List([0..40], n-> (28*n^3 +18*n^2 +4*n -1 +(-1)^n)/8); # G. C. Greubel, Apr 05 2019
  • Magma
    [(28*n^3 +18*n^2 +4*n -1 +(-1)^n)/8: n in [0..40]]; // G. C. Greubel, Apr 05 2019
    
  • Mathematica
    LinearRecurrence[{3,-2,-2,3,-1},{0,6,38,116,262},40] (* or *) CoefficientList[Series[(2*x*(x*(x+2)*(x+5)+3))/((x-1)^4*(x+1)),{x,0,40}],x] (* Harvey P. Dale, Jun 11 2011 *)
  • Maxima
    A045949(n):=floor(n*(14*n^2+9*n+2)/4)$
    makelist(A045949(n),n,0,30); /* Martin Ettl, Nov 03 2012 */
    
  • PARI
    {a(n) = (28*n^3 +18*n^2 +4*n -1 +(-1)^n)/8}; \\ G. C. Greubel, Apr 05 2019
    
  • R
    floor(1:25*(14*(1:25)^2+9*(1:25)+2)/4) # Christian N. K. Anderson, Apr 27 2013
    
  • Sage
    [(28*n^3 +18*n^2 +4*n -1 +(-1)^n)/8 for n in (0..40)] # G. C. Greubel, Apr 05 2019
    

Formula

a(n) = floor(n*(14*n^2 + 9*n + 2)/4).
From R. J. Mathar, Sep 03 2010: (Start)
a(n) = +3*a(n-1) -2*a(n-2) -2*a(n-3) +3*a(n-4) -a(n-5).
G.f.: 2*x*(3+10*x+7*x^2+x^3) / ( (1+x)*(1-x)^4 ).
a(n) = (28*n^3 + 18*n^2 + 4*n - 1 + (-1)^n)/8. (End)
a(n) = A033581(n) + A307253(n). - John King, Apr 04 2019
E.g.f.: (x*(25 + 51*x + 14*x^2)*exp(x) - sinh(x))/4. - G. C. Greubel, Apr 05 2019

Extensions

Edited by N. J. A. Sloane, May 29 2012

A307253 Number of triangles larger than size=1 in a matchstick-made hexagon with side length n.

Original entry on oeis.org

0, 0, 14, 62, 166, 346, 624, 1020, 1556, 2252, 3130, 4210, 5514, 7062, 8876, 10976, 13384, 16120, 19206, 22662, 26510, 30770, 35464, 40612, 46236, 52356, 58994, 66170, 73906, 82222, 91140, 100680, 110864, 121712, 133246, 145486, 158454, 172170, 186656, 201932
Offset: 0

Views

Author

John King, Mar 31 2019

Keywords

Crossrefs

Cf. A033581 (number of size=1 triangles), A045949 (total number of triangles).
The hexagon matchstick sequences are as follows: number of matchsticks: A045945; for T1 triangles: A033581; for larger triangles: this sequence and for total triangles: A045949. There are analogs for triangles (see A045943) and stars (see A045946).

Programs

  • Mathematica
    LinearRecurrence[{3,-2,-2,3,-1},{0, 0, 14, 62, 166},166] (* Metin Sariyar, Oct 27 2019 *)
  • PARI
    concat([0,0], Vec(2*x^2*(7 + 10*x + 4*x^2) / ((1 - x)^4*(1 + x)) + O(x^40))) \\ Colin Barker, Apr 02 2019

Formula

a(n) = floor(n*(14*n^2+9*n+2)/4)-6*n^2.
G.f.: 2*x^2*(4*x^2+10*x+7)/((x+1)*(x-1)^4).
a(n) = A045949(n) - A033581(n).
a(n) = 3*a(n-1) - 2*a(n-2) - 2*a(n-3) + 3*a(n-4) - a(n-5) for n>4. - Colin Barker, Apr 02 2019

A198392 a(n) = (6*n*(3*n+7)+(2*n+13)*(-1)^n+3)/16 + 1.

Original entry on oeis.org

2, 4, 12, 18, 31, 41, 59, 73, 96, 114, 142, 164, 197, 223, 261, 291, 334, 368, 416, 454, 507, 549, 607, 653, 716, 766, 834, 888, 961, 1019, 1097, 1159, 1242, 1308, 1396, 1466, 1559, 1633, 1731, 1809, 1912, 1994, 2102, 2188, 2301, 2391, 2509, 2603, 2726, 2824, 2952
Offset: 0

Views

Author

Bruno Berselli, Oct 25 2011

Keywords

Comments

For an origin of this sequence, see the triangular spiral illustrated in the Links section.
First bisection gives A117625 (without the initial term).

Crossrefs

Cf. A152832 (by Superseeker).
Cf. sequences related to the triangular spiral: A022266, A022267, A027468, A038764, A045946, A051682, A062708, A062725, A062728, A062741, A064225, A064226, A081266-A081268, A081270-A081272, A081275 [incomplete list].

Programs

  • Magma
    [(6*n*(3*n+7)+(2*n+13)*(-1)^n+3)/16+1: n in [0..50]];
  • Mathematica
    LinearRecurrence[{1,2,-2,-1,1},{2,4,12,18,31},60] (* Harvey P. Dale, Jun 15 2022 *)
  • PARI
    for(n=0, 50, print1((6*n*(3*n+7)+(2*n+13)*(-1)^n+3)/16+1", "));
    

Formula

G.f.: (2+2*x+4*x^2+2*x^3-x^4)/((1+x)^2*(1-x)^3).
a(n) = a(n-1)+2*a(n-2)-2*a(n-3)-a(n-4)+a(n-5).
a(n)-a(-n-1) = A168329(n+1).
a(n)+a(n-1) = A102214(n).
a(2n)-a(2n-1) = A016885(n).
a(2n+1)-a(2n) = A016825(n).

A270700 Triangular Star of David numbers (the figurate number of triangles framing a hexagram: a(0) = 12; thereafter a(n) = 36*n + 6).

Original entry on oeis.org

12, 42, 78, 114, 150, 186, 222, 258, 294, 330, 366, 402, 438, 474, 510, 546, 582, 618, 654, 690, 726, 762, 798, 834, 870, 906, 942, 978, 1014, 1050, 1086, 1122, 1158, 1194, 1230, 1266, 1302, 1338, 1374, 1410, 1446, 1482, 1518, 1554, 1590, 1626, 1662, 1698, 1734
Offset: 0

Views

Author

Peter M. Chema, Mar 21 2016

Keywords

Comments

Also known as unitary triangular hexagram numbers, according to the author.
After a(0), the sum of inner and outer perimeters of triangle edges forming each hexagram is [36n - 6], always 12 less than the number of triangles framing the hexagram. Where a(0)=12, the perimeter is also 12.
Compare with A270545, the number of equilateral triangle units forming perimeters of equilateral triangle, which follows the same application.

Examples

			Illustration of initial terms are found in the three above links.
		

Crossrefs

Programs

  • Magma
    [12] cat [36*n + 6: n in [1..50]]; // Vincenzo Librandi, Mar 28 2016
  • Mathematica
    CoefficientList[Series[6 (1 + x) (2 + x)/(1 - x)^2, {x, 0, 40}], x] (* Michael De Vlieger, Mar 23 2016 *)
    Join[{12},36*Range[50]+6] (* or *) LinearRecurrence[{2,-1},{12,42,78},50] (* Harvey P. Dale, Nov 03 2016 *)
  • PARI
    a(n) = if (!n, 12, 36*n + 6); \\ Michel Marcus, Mar 22 2016
    
  • PARI
    Vec(6*(1+x)*(2+x)/(1-x)^2 + O(x^50)) \\ Colin Barker, Mar 22 2016
    

Formula

a(0) = 12; thereafter, a(n) = 36*n + 6.
From Colin Barker, Mar 22 2016: (Start)
a(n) = 2*a(n-1) - a(n-2) for n > 2.
G.f.: 6*(1+x)*(2+x)/(1-x)^2. (End)
From Elmo R. Oliveira, Apr 04 2025: (Start)
E.g.f.: 6*(exp(x)*(6*x + 1) + 1).
a(n) = 6*A271114(n). (End)

Extensions

More terms from Vincenzo Librandi, Mar 28 2016

A299965 Number of triangles in a Star of David of size n.

Original entry on oeis.org

0, 20, 118, 354, 788, 1480, 2490, 3878, 5704, 8028, 10910, 14410, 18588, 23504, 29218, 35790, 43280, 51748, 61254, 71858, 83620, 96600, 110858, 126454, 143448, 161900, 181870, 203418, 226604, 251488, 278130, 306590, 336928, 369204, 403478, 439810, 478260, 518888
Offset: 0

Views

Author

John King, Feb 22 2018

Keywords

Comments

In a Star of David of size n, there are A135453(n) "size=1" triangles.
The number of matchstick units is A045946.

Examples

			For n=1, there are 12 (size=1) + 6 (size=4) + 2 (size=9) = 20 triangles.
		

Crossrefs

For the total number of triangles in a different arrangement, see A002717 (for triangular matchstick), A045949 (for hexagonal matchstick).

Programs

  • Mathematica
    A299965[n_] := n*(n*(10*n + 9) + 1); Array[A299965, 50, 0] (* or *)
    LinearRecurrence[{4, -6, 4, -1}, {0, 20, 118, 354}, 50] (* Paolo Xausa, Sep 18 2024 *)
  • PARI
    concat(0, Vec(2*x*(10 + 19*x + x^2) / (1 - x)^4 + O(x^40))) \\ Colin Barker, Apr 04 2019

Formula

a(n) = n*(10*n^2+9*n+1) = 2*A045950(n).
From Colin Barker, Apr 04 2019: (Start)
G.f.: 2*x*(10 + 19*x + x^2) / (1 - x)^4.
a(n) = 4*a(n-1) - 6*a(n-2) + 4*a(n-3) - a(n-4) for n>3. (End)
E.g.f.: exp(x)*x*(20 + 39*x + 10*x^2). - Stefano Spezia, Sep 20 2024

Extensions

Corrected by John King, Stefano Spezia, and Paolo Xausa, Sep 20 2024
Showing 1-8 of 8 results.