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!)
A037743 Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 2,1,3,0. 0
2, 21, 213, 2130, 21302, 213021, 2130213, 21302130, 213021302, 2130213021, 21302130213, 213021302130, 2130213021302, 21302130213021, 213021302130213, 2130213021302130, 21302130213021302, 213021302130213021, 2130213021302130213, 21302130213021302130 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,1
LINKS
FORMULA
a(n) = 10*a(n-1) + a(n-4) - 10*a(n-5). G.f.: x*(2+x+3*x^2) / ((x-1)*(10*x-1)*(1+x)*(x^2+1)). - R. J. Mathar, Oct 05 2009
MATHEMATICA
nn=10; With[{c=PadLeft[{}, 4nn, {2, 1, 3, 0}]}, Table[FromDigits[Take[c, n]], {n, 4nn}]] (* Harvey P. Dale, Aug 16 2011 *)
PROG
(PARI) Vec(x*(2+x+3*x^2)/((x-1)*(10*x-1)*(1+x)*(x^2+1)) + O(x^25)) \\ Jinyuan Wang, Apr 14 2020
CROSSREFS
Sequence in context: A037575 A305659 A008351 * A037638 A131698 A163068
KEYWORD
nonn,base,easy
AUTHOR
EXTENSIONS
More terms from Harvey P. Dale, Aug 16 2011
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 24 19:59 EDT 2024. Contains 371963 sequences. (Running on oeis4.)