|
|
A037601
|
|
Base 8 digits are, in order, the first n terms of the periodic sequence with initial period 1,3,0.
|
|
0
|
|
|
1, 11, 88, 705, 5643, 45144, 361153, 2889227, 23113816, 184910529, 1479284235, 11834273880, 94674191041, 757393528331, 6059148226648, 48473185813185, 387785486505483, 3102283892043864
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(1+3*x) / ( (x-1)*(8*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 27 2015
|
|
MATHEMATICA
|
Table[FromDigits[PadRight[{}, n, {1, 3, 0}], 8], {n, 20}] (* Harvey P. Dale, Apr 18 2020 *)
|
|
PROG
|
(PARI) a(n)=([0, 1, 0, 0; 0, 0, 1, 0; 0, 0, 0, 1; -8, 1, 0, 8]^(n-1)*[1; 11; 88; 705])[1, 1] \\ Charles R Greathouse IV, Feb 13 2017
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|