login
A037763
Base 9 digits are, in order, the first n terms of the periodic sequence with initial period 3,0,1,2.
0
3, 27, 244, 2198, 19785, 178065, 1602586, 14423276, 129809487, 1168285383, 10514568448, 94631116034, 851680044309, 7665120398781, 68986083589030, 620874752301272, 5587872770711451
OFFSET
1,1
FORMULA
G.f.: x*(3+x^2+2*x^3) / ( (x-1)*(9*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, May 02 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {3, 0, 1, 2}], 9], {n, 20}] (* or *) LinearRecurrence[{9, 0, 0, 1, -9}, {3, 27, 244, 2198, 19785}, 20] (* Harvey P. Dale, Jul 03 2021 *)
CROSSREFS
Sequence in context: A102518 A361842 A168495 * A037651 A037770 A037658
KEYWORD
nonn,base,easy
STATUS
approved