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.

A021499 Decimal expansion of 1/495.

Original entry on oeis.org

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

Views

Author

Keywords

Comments

0, then repeat 0, 2. [Arkadiusz Wesolowski, Jul 22 2011]

Crossrefs

A010673 shifted right.

Programs

  • Mathematica
    Join[{0,0},RealDigits[1/495,10,120][[1]]] (* or *) PadRight[{0},120,{2,0}] (* Harvey P. Dale, Dec 13 2020 *)

Formula

a(n) = 1 + (-1)^n - 2*0^n = (-1 - A033999(n))*A062157(n). [Arkadiusz Wesolowski, Jul 22 2011]
G.f.: 2*x^2/(1-x^2). - Bruno Berselli, Jul 22 2011