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!)
A037504 Base-3 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,0. 1
1, 5, 15, 46, 140, 420, 1261, 3785, 11355, 34066, 102200, 306600, 919801, 2759405, 8278215, 24834646, 74503940, 223511820, 670535461, 2011606385, 6034819155, 18104457466, 54313372400, 162940117200, 488820351601 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

LINKS

Harvey P. Dale, Table of n, a(n) for n = 1..1000

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

FORMULA

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

MATHEMATICA

Module[{nn=30, d}, d=PadRight[{}, nn, {1, 2, 0}]; Table[FromDigits[Take[d, n], 3], {n, nn}]] (* or *) LinearRecurrence[{3, 0, 1, -3}, {1, 5, 15, 46}, 30] (* Harvey P. Dale, Apr 25 2015 *)

CROSSREFS

Sequence in context: A001869 A058425 A079798 * A197237 A307242 A296545

Adjacent sequences:  A037501 A037502 A037503 * A037505 A037506 A037507

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 5 10:58 EST 2021. Contains 341823 sequences. (Running on oeis4.)