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.

A021031 Decimal expansion of 1/27.

Original entry on oeis.org

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

Views

Author

Keywords

Examples

			0.037037037037037037037037037037037037037...
		

Programs

  • Mathematica
    RealDigits[1/27, 10, 108][[1]] (* Alonso del Arte, Feb 26 2015 *)

Formula

From Bruno Berselli, Sep 24 2010: (Start)
G.f.: x*(3+7*x)/(1-x^3).
a(n) - a(n-3) = 0 for n > 2.
a(n) = A175833(n) - 4 = 4*(n-3*floor(n/3)) - (1 - (-1)^(n-3*floor((n+1)/3)))/2.
(End)