login
A037787
Base 5 digits are, in order, the first n terms of the periodic sequence with initial period 3,2,0,1.
0
3, 17, 85, 426, 2133, 10667, 53335, 266676, 1333383, 6666917, 33334585, 166672926, 833364633, 4166823167, 20834115835, 104170579176, 520852895883, 2604264479417, 13021322397085, 65106611985426, 325533059927133
OFFSET
1,1
FORMULA
G.f.: x*(3-x+x^2) / ( (x-1)*(5*x-1)*(x^2+1) ). - R. J. Mathar, May 01 2015
a(n) = 6*a(n-1) - 6*a(n-2) + 6*a(n-3) - 5*a(n-4). - Wesley Ivan Hurt, Mar 22 2023
CROSSREFS
Sequence in context: A344228 A216681 A350456 * A037668 A119884 A143549
KEYWORD
nonn,base,easy
STATUS
approved