login
A037530
Base-5 digits are, in order, the first n terms of the periodic sequence with initial period 1,1,2.
0
1, 6, 32, 161, 806, 4032, 20161, 100806, 504032, 2520161, 12600806, 63004032, 315020161, 1575100806, 7875504032, 39377520161, 196887600806, 984438004032, 4922190020161, 24610950100806, 123054750504032, 615273752520161
OFFSET
1,2
FORMULA
G.f.: x*(1+x+2*x^2) / ( (x-1)*(5*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 27 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {1, 1, 2}], 5], {n, 30}] (* or *) LinearRecurrence[ {5, 0, 1, -5}, {1, 6, 32, 161}, 30] (* Harvey P. Dale, Sep 25 2021 *)
CROSSREFS
Sequence in context: A292044 A006668 A232494 * A083320 A097139 A034942
KEYWORD
nonn,base,easy
STATUS
approved