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.

A373567 Expansion of x + 1/(-x - 1/(-x - 1/(-x + 1))).

Original entry on oeis.org

1, 4, 6, 14, 31, 70, 157, 353, 793, 1782, 4004, 8997, 20216, 45425, 102069, 229347, 515338, 1157954, 2601899, 5846414, 13136773, 29518061, 66326481, 149034250, 334876920, 752461609, 1690765888, 3799116465, 8536537209, 19181424995, 43100270734, 96845429254
Offset: 0

Views

Author

Peter Luschny, Jun 10 2024

Keywords

Comments

a(n) is the number of up-down words of length n over an alphabet of size 4. - Sela Fried, Apr 08 2025

References

  • L. Carlitz and R. Scoville, Up-down sequences, Duke Math. J. (39) (1972), 583-598.

Crossrefs

Essentially the same as A006356.
Cf. A050446.

Programs

  • Mathematica
    CoefficientList[Series[x + 1/(-x - 1/(-x - 1/(-x + 1))), {x, 0, 31}], x] (* Michael De Vlieger, Jun 10 2024 *)

Formula

a(n) = [x^n] (x^4 - x^3 - 3*x^2 + 2*x + 1) / (x^3 - x^2 - 2*x + 1).