login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A037519 Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 2,0,1. 1
2, 20, 201, 2012, 20120, 201201, 2012012, 20120120, 201201201, 2012012012, 20120120120, 201201201201, 2012012012012, 20120120120120, 201201201201201, 2012012012012012 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
G.f.: (x*(2+x^2)) / ((x-1)*(10*x-1)*(1+x+x^2)). - R. J. Mathar, Nov 21 2011
MATHEMATICA
LinearRecurrence[{10, 0, 1, -10}, {2, 20, 201, 2012}, 40] (* Vincenzo Librandi, Nov 23 2011 *)
Table[FromDigits[PadRight[{}, n, {2, 0, 1}]], {n, 20}] (* Harvey P. Dale, Sep 18 2018 *)
PROG
(Magma) I:=[2, 20, 201, 2012]; [n le 4 select I[n] else 10*Self(n-1)+Self(n-3)-10*Self(n-4): n in [1..20]]; // Vincenzo Librandi, Nov 23 2011
CROSSREFS
Sequence in context: A136902 A136884 A093136 * A037722 A109107 A037729
KEYWORD
nonn,base,easy
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 25 01:35 EDT 2024. Contains 371964 sequences. (Running on oeis4.)