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

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A037529 Base-4 digits are, in order, the first n terms of the periodic sequence with initial period 1,1,2. 0
1, 5, 22, 89, 357, 1430, 5721, 22885, 91542, 366169, 1464677, 5858710, 23434841, 93739365, 374957462, 1499829849, 5999319397, 23997277590, 95989110361, 383956441445, 1535825765782, 6143303063129, 24573212252517, 98292849010070 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

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

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

Index entries for 2-automatic sequences.

FORMULA

G.f.: x*(1+x+2*x^2) / ( (x-1)*(4*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 27 2015

A007090(a(n)) = A037535(n).

MATHEMATICA

Table[FromDigits[PadRight[{}, n, {1, 1, 2}], 4], {n, 30}] (* or *) LinearRecurrence[ {4, 0, 1, -4}, {1, 5, 22, 89}, 30] (* Harvey P. Dale, Mar 19 2016 *)

PROG

(PARI) a(n)=([0, 1, 0, 0; 0, 0, 1, 0; 0, 0, 0, 1; -4, 1, 0, 4]^(n-1)*[1; 5; 22; 89])[1, 1] \\ Charles R Greathouse IV, Feb 13 2017

CROSSREFS

Sequence in context: A006148 A262293 A086090 * A108072 A081892 A128566

Adjacent sequences:  A037526 A037527 A037528 * A037530 A037531 A037532

KEYWORD

nonn,base,easy

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 March 7 10:14 EST 2021. Contains 341869 sequences. (Running on oeis4.)