|
|
A037609
|
|
Base 9 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,3.
|
|
0
|
|
|
1, 11, 102, 919, 8273, 74460, 670141, 6031271, 54281442, 488532979, 4396796813, 39571171320, 356140541881, 3205264876931, 28847383892382, 259626455031439, 2336638095282953
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(1+2*x+3*x^2) / ( (x-1)*(9*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 27 2015
|
|
PROG
|
(PARI) a(n)=([0, 1, 0, 0; 0, 0, 1, 0; 0, 0, 0, 1; -9, 1, 0, 9]^(n-1)*[1; 11; 102; 919])[1, 1] \\ Charles R Greathouse IV, Feb 13 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|