login
A037663
Base 7 digits are, in order, the first n terms of the periodic sequence with initial period 3,1,0.
0
3, 22, 154, 1081, 7568, 52976, 370835, 2595846, 18170922, 127196457, 890375200, 6232626400, 43628384803, 305398693622, 2137790855354, 14964535987481, 104751751912368, 733262263386576, 5132835843706035
OFFSET
1,1
FORMULA
G.f.: x*(3+x) / ( (x-1)*(7*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 30 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {3, 1, 0}], 7], {n, 20}] (* or *) LinearRecurrence[{7, 0, 1, -7}, {3, 22, 154, 1081}, 20] (* Harvey P. Dale, Sep 08 2015 *)
CROSSREFS
Sequence in context: A121723 A372199 A037775 * A091167 A037782 A041661
KEYWORD
nonn,base,easy
STATUS
approved