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.

A094159 3 times hexagonal numbers: a(n) = 3*n*(2*n-1).

Original entry on oeis.org

0, 3, 18, 45, 84, 135, 198, 273, 360, 459, 570, 693, 828, 975, 1134, 1305, 1488, 1683, 1890, 2109, 2340, 2583, 2838, 3105, 3384, 3675, 3978, 4293, 4620, 4959, 5310, 5673, 6048, 6435, 6834, 7245, 7668, 8103, 8550, 9009, 9480, 9963, 10458, 10965, 11484
Offset: 0

Views

Author

N. J. A. Sloane, May 05 2004

Keywords

Comments

Column 3 of A048790.
Sequence found by reading the line from 0, in the direction 0, 3, ..., in the square spiral whose vertices are the generalized pentagonal numbers A001318. - Omar E. Pol, Sep 08 2011
a(n) is the sum of all perimeters of triangles having two sides of length n. For n=4 one has seven triangles with two sides of length 4 and the other of lengths 1..7. - J. M. Bergot, Mar 26 2014
a(n) is the Wiener index of the complete tripartite graph K_{n,n,n}. - Eric W. Weisstein, Sep 07 2017
Sequence found by reading the line from 0, in the direction 0, 3, ..., in a spiral on an equilateral triangular lattice. - Hans G. Oberlack, Dec 08 2018

References

  • Dan Hoey, Bill Gosper and Richard C. Schroeppel, Discussions in Math-Fun Mailing list, circa Jul 13 1999.

Crossrefs

Essentially a bisection of A045943. - Omar E. Pol, Sep 17 2011
Cf. numbers of the form n*(n*k-k+6)/2, this sequence is the case k=12: see Comments lines of A226492.

Programs

Formula

a(n) = 6*n^2 - 3*n = 3*n*(2*n-1) = 3*A000384(n). - Omar E. Pol, Dec 11 2008
a(n) = 12*n + a(n-1) - 9 with n > 0, a(0)=0. - Vincenzo Librandi, Nov 16 2010
G.f.: 3*x*(1+3*x)/(1-x)^3. - Bruno Berselli, Jan 21 2011
Sum_{n>0} 1/a(n) = (2/3)*log(2). - Enrique Pérez Herrero, Jun 04 2015
E.g.f.: 3*x*(1+2*x)*exp(x). - G. C. Greubel, Dec 07 2018
Sum_{n>=1} (-1)^(n+1)/a(n) = Pi/6 - log(2)/3. - Amiram Eldar, Jan 10 2022

Extensions

More terms from Vladimir Joseph Stephan Orlovsky, Nov 16 2008
Definition improved, offset corrected and edited by Omar E. Pol, Dec 11 2008