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.

A101000 Period 3: repeat [0, 1, 3].

Original entry on oeis.org

0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3, 0, 1, 3
Offset: 0

Views

Author

N. J. A. Sloane, Jun 17 2007

Keywords

Programs

Formula

a(n) = floor((n mod 3)*3/2). - Reinhard Zumkeller, Jun 23 2007
a(n) = 4 - a(n-1) - a(n-2) for n > 1. - Reinhard Zumkeller, Apr 13 2008
G.f.: x*(1+3*x)/(1-x^3). - Jaume Oliver Lafont, Mar 24 2009
a(n) = 2^(n mod 3) - 1. - Wesley Ivan Hurt, Apr 16 2014
a(n) = (7*a(n-1) + 2)*(3 - a(n-1))/6 for n > 0. - Nicolas Bělohoubek, Oct 09 2024