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.

A010674 Period 2: repeat (0,3).

Original entry on oeis.org

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

Views

Author

Keywords

Comments

Also decimal expansion of 1/33 = .030303030...

Crossrefs

Cf. A010680 (1/11), A010695 (2^(1 - (-1)^n) + 1).

Programs

Formula

a(n) = (3/2)*(1 - (-1)^n) = 3*(n mod 2). - Paolo P. Lava, Oct 20 2006
a(n) = A010698(n)/2 - 1. - Martin Ettl, Nov 11 2012
a(n) = 2^(1 - (-1)^n) - 1. - Bruno Berselli, Dec 29 2015
From Chai Wah Wu, Jun 04 2016: (Start)
a(n) = a(n-2) for n >= 2.
G.f.: 3*x/(1 - x^2). (End)
E.g.f.: 3*sinh(x). - Ilya Gutkovskiy, Jun 04 2016

Extensions

More terms from Paolo P. Lava, Oct 20 2006