login
A037596
Numbers written in base 4 whose digits are, in order, the first n terms of the periodic sequence with initial period 1,0,3.
0
1, 10, 103, 1031, 10310, 103103, 1031031, 10310310, 103103103, 1031031031, 10310310310, 103103103103, 1031031031031, 10310310310310, 103103103103103, 1031031031031031
OFFSET
1,2
FORMULA
G.f.: x*(1+3*x^2) / ( (x-1)*(10*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 27 2015
MATHEMATICA
With[{c=PadRight[{}, 21, {1, 0, 3}]}, Table[FromDigits[Take[c, n]], {n, 20}]] (* Harvey P. Dale, Dec 29 2011 *)
CROSSREFS
Sequence in context: A331475 A158240 A087393 * A037687 A015588 A370042
KEYWORD
nonn,base,easy
STATUS
approved