login
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, 38888225353802378, 311105802830419025, 2488846422643352202, 19910771381146817617, 159286171049174540938
OFFSET
1,1
FORMULA
a(n) = 8*a(n-1) + a(n-2) - 8*a(n-3).
G.f.: x*(2+x) / ( (x-1)*(8*x-1)*(1+x) ). - R. J. Mathar, Apr 26 2015
a(n) = floor(17*8^n/63). - Christian Krause, Jun 04 2026
MATHEMATICA
With[{c=PadRight[{}, 20, {2, 1}]}, Table[FromDigits[Take[c, n], 8], {n, 20}]] (* Harvey P. Dale, Jan 24 2012 *)
(* Alternative: *)
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,changed
EXTENSIONS
a(19)-a(23) from Christian Krause, Jun 04 2026
STATUS
approved