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.

A300075 Period 6: repeat [0, 1, 1, 2, 2, 2].

Original entry on oeis.org

0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2, 0, 1, 1, 2, 2, 2
Offset: 0

Views

Author

Wolfdieter Lang, Mar 03 2018

Keywords

Comments

Underlying A300076.

Crossrefs

Formula

a(n) = floor(((n+1) (mod 6))/2) + 2*floor((n (mod 6))/5), n >= 0.
G.f.: x*(1 + x + 2*x^2*(1 + x + x^2))/(1 - x^6).
a(n) = (4 - 2*cos(n*Pi/3) - cos(2*n*Pi/3) - cos(n*Pi) - sqrt(3)*sin(n*Pi/3))/3. - Wesley Ivan Hurt, Oct 04 2018