login
A037786
Base 4 digits are, in order, the first n terms of the periodic sequence with initial period 3,2,0,1.
1
3, 14, 56, 225, 903, 3614, 14456, 57825, 231303, 925214, 3700856, 14803425, 59213703, 236854814, 947419256, 3789677025, 15158708103, 60634832414, 242539329656, 970157318625, 3880629274503, 15522517098014, 62090068392056
OFFSET
1,1
FORMULA
G.f.: x*(3-x+x^2) / ( (x-1)*(4*x-1)*(x^2+1) ). - R. J. Mathar, May 01 2015
MATHEMATICA
nn=30; With[{c=PadRight[{}, nn, {3, 2, 0, 1}]}, Table[FromDigits[Take[c, n], 4], {n, nn}]] (* Harvey P. Dale, Dec 14 2012 *)
CROSSREFS
Sequence in context: A322938 A026544 A026527 * A037667 A111468 A052412
KEYWORD
nonn,base,easy
STATUS
approved