login
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
OFFSET
1,1
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
Sequence in context: A037557 A026941 A037493 * A037741 A037636 A163066
KEYWORD
nonn,base,easy
STATUS
approved