login

Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).

A037493
Base 8 digits are, in order, the first n terms of the periodic sequence with initial period 2,1.
0
2, 17, 138, 1105, 8842, 70737, 565898, 4527185, 36217482, 289739857, 2317918858, 18543350865, 148346806922, 1186774455377, 9494195643018, 75953565144145, 607628521153162, 4861028169225297
OFFSET
1,1
FORMULA
a(n) = 8a(n-1) + a(n-2) - 8a(n-3).
G.f.: x*(2+x) / ( (x-1)*(8*x-1)*(1+x) ). - R. J. Mathar, Apr 26 2015
MATHEMATICA
With[{c=PadRight[{}, 20, {2, 1}]}, Table[FromDigits[Take[c, n], 8], {n, 20}]] (* or *) LinearRecurrence[{8, 1, -8}, {2, 17, 138}, 20] (* Harvey P. Dale, Jan 24 2012 *)
CROSSREFS
Sequence in context: A132433 A037557 A026941 * A037573 A037741 A037636
KEYWORD
nonn,base,easy
STATUS
approved