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.

A328943 a(n) = 2 + (n mod 4).

Original entry on oeis.org

2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3, 4, 5, 2, 3
Offset: 0

Views

Author

David Nacin, Oct 31 2019

Keywords

Comments

Terms of the simple continued fraction of (36+sqrt(1806))/34.
2345/9999=0.234523452345...
Partial sums are given by A130482(n) + 2*n + 2.
Example of a sequence where the largest of any four consecutive terms equals the sum of the two smallest.

Crossrefs

Programs

  • Mathematica
    PadRight[{}, 120, {2, 3, 4, 5}]
  • Python
    def a(n):
       return n%4+2

Formula

a(n) = 2 + (n mod 4).
G.f.: (5x^3 + 4x^2 + 3x + 2)/(1 - x^4).
a(n) = A010873(n) + 2 = A010883(n) + 1.
a(n) = 14 - a(n-1) - a(n-2) - a(n-3) for n > 2.