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.

A269914 Number of ternary strings of length n with maximal run length two containing 112.

Original entry on oeis.org

1, 5, 20, 71, 237, 761, 2377, 7278, 21945, 65375, 192861, 564387, 1640496, 4741103, 13634501, 39042437, 111379025, 316687006, 897796581, 2538530615, 7160768785, 20156241155, 56626360256, 158804376883, 444638710925, 1243115597929, 3470779612521, 9678320566654
Offset: 3

Views

Author

Marko Riedel, Mar 07 2016

Keywords

Crossrefs

Programs

  • Mathematica
    Drop[CoefficientList[Series[x^3 (x + 1) (x^2 + x + 1)/((2 x^2 + 2 x - 1) (x^4 + 3 x^3 + 3 x^2 + x - 1)), {x, 0, 30}], x], 3] (* Michael De Vlieger, Mar 08 2016 *)

Formula

G.f.: x^3*(x+1)*(x^2+x+1)/((2*x^2+2*x-1)*(x^4+3*x^3+3*x^2+x-1)).