|
|
A037573
|
|
Base 8 digits are, in order, the first n terms of the periodic sequence with initial period 2,1,2.
|
|
0
|
|
|
2, 17, 138, 1106, 8849, 70794, 566354, 4530833, 36246666, 289973330, 2319786641, 18558293130, 148466345042, 1187730760337, 9501846082698, 76014768661586, 608118149292689, 4864945194341514
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
FORMULA
|
G.f.: x*(2+x+2*x^2) / ( (x-1)*(8*x-1)*(1+x+x^2) ). - R. J. Mathar, Apr 26 2015
|
|
MATHEMATICA
|
Table[FromDigits[PadRight[{}, n, {2, 1, 2}], 8], {n, 20}] (* or *) LinearRecurrence[ {8, 0, 1, -8}, {2, 17, 138, 1106}, 20] (* Harvey P. Dale, Jun 22 2017 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|