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!)
A037520 Base 3 digits are, in order, the first n terms of the periodic sequence with initial period 2,1,0. 1

%I #15 Jul 21 2021 13:17:43

%S 2,7,21,65,196,588,1766,5299,15897,47693,143080,429240,1287722,

%T 3863167,11589501,34768505,104305516,312916548,938749646,2816248939,

%U 8448746817,25346240453,76038721360,228116164080,684348492242

%N Base 3 digits are, in order, the first n terms of the periodic sequence with initial period 2,1,0.

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

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

%t With[{c=PadRight[{},27,{2,1,0}]},Table[FromDigits[Take[c,n],3], {n,25}]] (* _Harvey P. Dale_, Nov 08 2011 *)

%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 18 06:11 EDT 2024. Contains 371767 sequences. (Running on oeis4.)