login
A037695
Base-4 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,3,0.
0
1, 6, 27, 108, 433, 1734, 6939, 27756, 111025, 444102, 1776411, 7105644, 28422577, 113690310, 454761243, 1819044972, 7276179889, 29104719558, 116418878235, 465675512940, 1862702051761, 7450808207046, 29803232828187
OFFSET
1,2
FORMULA
G.f.: ( x*(1+2*x+3*x^2) ) / ( (x-1)*(4*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, Oct 11 2015
MATHEMATICA
nn=30; With[{dgs=PadRight[{}, nn, {1, 2, 3, 0}]}, Table[FromDigits[ Take[ dgs, n], 4], {n, nn}]] (* Harvey P. Dale, Jun 13 2013 *)
CROSSREFS
Sequence in context: A220529 A027471 A305780 * A318638 A094829 A055145
KEYWORD
nonn,base,easy
STATUS
approved