login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo

Thanks to everyone who made a donation during our annual appeal!
To see the list of donors, or make a donation, see the OEIS Foundation home page.

Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A037575 Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 2,1,2. 2
2, 21, 212, 2122, 21221, 212212, 2122122, 21221221, 212212212, 2122122122, 21221221221, 212212212212, 2122122122122, 21221221221221, 212212212212212, 2122122122122122 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,1

LINKS

Table of n, a(n) for n=1..16.

Index entries for linear recurrences with constant coefficients, signature (10,0,1,-10).

FORMULA

a(n)=10*a(n-1)+(1/9)*{2*(n mod 3)+8*[(n+1) mod 3]+5*[(n+2) mod 3]}, with a(0)=0 [From Paolo P. Lava, Jul 30 2009]

G.f. x*(2+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, 21, 212, 2122}, 30] (* or *) Table[ FromDigits[ PadRight[{}, n, {2, 1, 2}]], {n, 30}] (* Harvey P. Dale, Dec 12 2014 *)

CROSSREFS

Sequence in context: A037495 A024763 A304272 * A305659 A008351 A037743

Adjacent sequences:  A037572 A037573 A037574 * A037576 A037577 A037578

KEYWORD

nonn,base

AUTHOR

Clark Kimberling

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified January 18 16:27 EST 2020. Contains 331011 sequences. (Running on oeis4.)