login
A037598
Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 1,3,0.
0
1, 8, 40, 201, 1008, 5040, 25201, 126008, 630040, 3150201, 15751008, 78755040, 393775201, 1968876008, 9844380040, 49221900201, 246109501008, 1230547505040, 6152737525201, 30763687626008, 153818438130040, 769092190650201
OFFSET
1,2
FORMULA
G.f.: x*(1+3*x) / ( (x-1)*(5*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 27 2015
A007091(a(n)) = A037603(n). - R. J. Mathar, Apr 27 2015
PROG
(PARI) a(n)=([0, 1, 0, 0; 0, 0, 1, 0; 0, 0, 0, 1; -5, 1, 0, 5]^(n-1)*[1; 8; 40; 201])[1, 1] \\ Charles R Greathouse IV, Feb 13 2017
CROSSREFS
Cf. A007091.
Sequence in context: A303391 A270730 A128625 * A037703 A272396 A051199
KEYWORD
nonn,base,easy
STATUS
approved