login
A037766
Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 3,0,2,1.
0
3, 15, 77, 386, 1933, 9665, 48327, 241636, 1208183, 6040915, 30204577, 151022886, 755114433, 3775572165, 18877860827, 94389304136, 471946520683, 2359732603415, 11798663017077, 58993315085386, 294966575426933
OFFSET
1,1
FORMULA
G.f.: x*(3+2*x^2+x^3) / ( (x-1)*(5*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, May 02 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {3, 0, 2, 1}], 5], {n, 30}] (* or *) LinearRecurrence[ {5, 0, 0, 1, -5}, {3, 15, 77, 386, 1933}, 30] (* Harvey P. Dale, May 28 2018 *)
CROSSREFS
Sequence in context: A019477 A019478 A151327 * A037654 A074561 A026115
KEYWORD
nonn,base,easy
STATUS
approved