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!)
A037575 Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 2,1,2. 2

%I #24 Dec 14 2023 05:34:17

%S 2,21,212,2122,21221,212212,2122122,21221221,212212212,2122122122,

%T 21221221221,212212212212,2122122122122,21221221221221,

%U 212212212212212,2122122122122122

%N Decimal expansion of a(n) is given by the first n terms of the periodic sequence with initial period 2,1,2.

%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (10,0,1,-10).

%F G.f.: x*(2+x+2*x^2) / ( (x-1)*(10*x-1)*(1+x+x^2) ). - _R. J. Mathar_, Nov 21 2011

%t 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 *)

%o (PARI) Vec(x*(2+x+2*x^2)/((x-1)*(10*x-1)*(1+x+x^2)) + O(x^25)) \\ _Jinyuan Wang_, Apr 14 2020

%K nonn,base,easy

%O 1,1

%A _Clark Kimberling_

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 17 23:23 EDT 2024. Contains 371767 sequences. (Running on oeis4.)