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.

A058794 Row 3 of A007754.

Original entry on oeis.org

2, 18, 52, 110, 198, 322, 488, 702, 970, 1298, 1692, 2158, 2702, 3330, 4048, 4862, 5778, 6802, 7940, 9198, 10582, 12098, 13752, 15550, 17498, 19602, 21868, 24302, 26910, 29698, 32672, 35838, 39202, 42770, 46548, 50542, 54758, 59202, 63880
Offset: 0

Views

Author

Christian G. Bower, Dec 02 2000

Keywords

Comments

For n >= 2, a(n) is the number of ways a triangle with side length n-1 can be completely surrounded by diamonds. See illustrations in Links. - Craig Knecht, Oct 08 2024

Crossrefs

Programs

Formula

a(n) = n^3 + 6*n^2 + 9*n + 2.
G.f.: 2*(1 + 5*x - 4*x^2 + x^3)/(1-x)^4. - Colin Barker, Jan 10 2012
a(n) = (n + 2)*(n^2 + 4*n + 1) = 2*A154560(n). - Bruno Berselli, Jan 10 2015
E.g.f.: (2 + 16*x + 9*x^2 + x^3)*exp(x). - G. C. Greubel, Nov 29 2018