login
A037703
Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 1,3,0,2.
1
1, 8, 40, 202, 1011, 5058, 25290, 126452, 632261, 3161308, 15806540, 79032702, 395163511, 1975817558, 9879087790, 49395438952, 246977194761, 1234885973808, 6174429869040, 30872149345202, 154360746726011, 771803733630058
OFFSET
1,2
FORMULA
G.f.: ( x*(1+3*x+2*x^3) ) / ( (x-1)*(5*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, Oct 13 2015
a(n) = 5*a(n-1) + a(n-4) - 5*a(n-5). - Wesley Ivan Hurt, Jun 26 2022
MATHEMATICA
nn=30; With[{c=PadRight[{}, nn, {1, 3, 0, 2}]}, Table[FromDigits[Take[c, n], 5], {n, nn}]] (* Harvey P. Dale, Feb 16 2013 *)
CROSSREFS
Sequence in context: A270730 A128625 A037598 * A272396 A051199 A228679
KEYWORD
nonn,base
STATUS
approved