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.

A226493 Closed walks of length n in K_4 graph.

Original entry on oeis.org

0, 12, 24, 84, 240, 732, 2184, 6564, 19680, 59052, 177144, 531444, 1594320, 4782972, 14348904, 43046724, 129140160, 387420492, 1162261464, 3486784404, 10460353200, 31381059612, 94143178824, 282429536484, 847288609440, 2541865828332, 7625597484984, 22876792454964
Offset: 1

Views

Author

Gustavo Gordillo, Jun 09 2013

Keywords

Comments

Essentially the same as A218034.

References

  • Mike Krebs and Tony Shaheen, Expander Families and Cayley Graphs, Oxford University Press, Inc. 2011

Crossrefs

Column k=4 of A106512.
Cf. A218034.

Programs

  • Mathematica
    Table[3 (-1)^k + 3^k, {k, 30}]
  • PARI
    a(n) = { 3*(-1)^n + 3^n } \\ Andrew Howroyd, Sep 11 2019

Formula

a(n) = 3*(-1)^n + 3^n = 12*A015518(n-1).
G.f.: 12*x^2 / ( (1+x)*(1-3*x) ). - R. J. Mathar, Jun 29 2013