login
A037661
Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 3,1,0.
0
3, 16, 80, 403, 2016, 10080, 50403, 252016, 1260080, 6300403, 31502016, 157510080, 787550403, 3937752016, 19688760080, 98443800403, 492219002016, 2461095010080, 12305475050403, 61527375252016, 307636876260080
OFFSET
1,1
FORMULA
G.f.: x*(3+x) / ( (x-1)*(5*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 30 2015
a(n) = 5*a(n-1) + a(n-3) - 5*a(n-4). - Wesley Ivan Hurt, Sep 05 2022
MATHEMATICA
Module[{nn=30, c}, c=PadRight[{}, nn, {3, 1, 0}]; Table[FromDigits[Take[c, n], 5], {n, nn}]] (* Harvey P. Dale, Feb 19 2013 *)
CROSSREFS
Sequence in context: A343117 A055842 A037773 * A372324 A290587 A072615
KEYWORD
nonn,base,easy
STATUS
approved