|
|
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
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,1
|
|
LINKS
|
|
|
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
|
|
|
KEYWORD
|
nonn,base,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|