login
A037741
Base 8 digits are, in order, the first n terms of the periodic sequence with initial period 2,1,3,0.
0
2, 17, 139, 1112, 8898, 71185, 569483, 4555864, 36446914, 291575313, 2332602507, 18660820056, 149286560450, 1194292483601, 9554339868811, 76434718950488, 611477751603906, 4891822012831249
OFFSET
1,1
FORMULA
G.f.: ( x*(2+x+3*x^2) ) / ( (x-1)*(8*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, Oct 14 2015
MATHEMATICA
Table[FromDigits[PadRight[{}, n, {2, 1, 3, 0}], 8], {n, 20}] (* or *) LinearRecurrence[{8, 0, 0, 1, -8}, {2, 17, 139, 1112, 8898}, 20] (* Harvey P. Dale, Mar 16 2016 *)
CROSSREFS
Sequence in context: A026941 A037493 A037573 * A037636 A163066 A110815
KEYWORD
nonn,base
STATUS
approved