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.

A193399 Wiener index of a benzenoid consisting of a chain of n hexagons characterized by the encoding s = 1133 (see the Gutman et al. reference, Sec. 5).

Original entry on oeis.org

27, 109, 271, 545, 931, 1493, 2199, 3145, 4267, 5693, 7327, 9329, 11571, 14245, 17191, 20633, 24379, 28685, 33327, 38593, 44227, 50549, 57271, 64745, 72651, 81373, 90559, 100625, 111187, 122693, 134727
Offset: 1

Views

Author

Emeric Deutsch, Jul 25 2011

Keywords

Crossrefs

Programs

  • Magma
    [4*n^3 + 16*n^2 + 8*n + 2*(-1)^n*(n - 2) - 3: n in [1..40]]; // Vincenzo Librandi, Jul 26 2011
    
  • Maple
    a := proc (n) options operator, arrow: 4*n^3+16*n^2+8*n+2*(-1)^n*(n-2)-3 end proc: seq(a(n), n = 1 .. 40);
  • PARI
    a(n)=4*n^3+16*n^2+8*n+2*(-1)^n*(n-2)-3 \\ Charles R Greathouse IV, Jul 28 2011

Formula

a(n) = 4*n^3 + 16*n^2 + 8*n + 2*(-1)^n*(n - 2) - 3.
G.f.: x*(27 + 55*x + 26*x^2 + 2*x^3 - 21*x^4 + 7*x^5)/((1+x)^2*(1-x)^4). - Bruno Berselli, Jul 27 2011