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.

A037624 Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 2,0,3.

Original entry on oeis.org

2, 20, 203, 2032, 20320, 203203, 2032032, 20320320, 203203203, 2032032032, 20320320320, 203203203203, 2032032032032, 20320320320320, 203203203203203, 2032032032032032, 20320320320320320, 203203203203203203, 2032032032032032032, 20320320320320320320
Offset: 1

Views

Author

Keywords

Programs

  • Magma
    I:=[2,20,203,2032]; [n le 4 select I[n] else 10*Self(n-1)+Self(n-3)-10*Self(n-4): n in [1..30]]; // Vincenzo Librandi, Feb 16 2018
  • Mathematica
    CoefficientList[Series[(2 + 3 x^2) / ((x - 1) (10 x - 1) (1 + x + x^2)), {x, 0, 20}], x] (* Vincenzo Librandi, Feb 16 2018 *)
    Table[FromDigits[PadRight[{},n,{2,0,3}]],{n,20}] (* Harvey P. Dale, Jul 29 2024 *)

Formula

G.f.: x*(2+3*x^2) / ( (x-1)*(10*x-1)*(1+x+x^2) ). - R. J. Mathar, Nov 21 2011