login
A037593
Base 7 digits are, in order, the first n terms of the periodic sequence with initial period 1,0,3.
0
1, 7, 52, 365, 2555, 17888, 125217, 876519, 6135636, 42949453, 300646171, 2104523200, 14731662401, 103121636807, 721851457652, 5052960203565, 35370721424955, 247595049974688, 1733165349822817
OFFSET
1,2
FORMULA
G.f.: x*(1+3*x^2) / ( (x-1)*(7*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 27 2015
a(n) = 7*a(n-1) + a(n-3) - 7*a(n-4). - Wesley Ivan Hurt, Sep 04 2022
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {1, 0, 3}], 7], {n, 20}] (* Harvey P. Dale, Dec 24 2018 *)
CROSSREFS
Sequence in context: A027542 A254946 A258845 * A037684 A246513 A015559
KEYWORD
nonn,base,easy
STATUS
approved