login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A037779
Base 4 digits are, in order, the first n terms of the periodic sequence with initial period 3,1,2,0.
0
3, 13, 54, 216, 867, 3469, 13878, 55512, 222051, 888205, 3552822, 14211288, 56845155, 227380621, 909522486, 3638089944, 14552359779, 58209439117, 232837756470, 931351025880, 3725404103523, 14901616414093, 59606465656374
OFFSET
1,1
FORMULA
G.f.: x*(3+x+2*x^2) / ( (x-1)*(4*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, May 01 2015
MATHEMATICA
With[{c=PadRight[{}, 32, {3, 1, 2, 0}]}, Table[FromDigits[Take[c, n], 4], {n, 30}]] (* Harvey P. Dale, Feb 25 2012 *)
CROSSREFS
Sequence in context: A377082 A180933 A048514 * A323264 A362495 A305655
KEYWORD
nonn,base,easy
STATUS
approved