login
A037692
Base 8 digits are, in order, the first n terms of the periodic sequence with initial period 1,2,0,3.
1
1, 10, 80, 643, 5145, 41162, 329296, 2634371, 21074969, 168599754, 1348798032, 10790384259, 86323074073, 690584592586, 5524676740688, 44197413925507, 353579311404057, 2828634491232458, 22629075929859664, 181032607438877315
OFFSET
1,2
FORMULA
G.f.: ( x*(1+2*x+3*x^3) ) / ( (x-1)*(8*x-1)*(1+x)*(x^2+1) ). - R. J. Mathar, Oct 11 2015
MATHEMATICA
CoefficientList[Series[(1 + 2*x + 3*x^3)/((x - 1)*(8*x - 1)*(1 + x)*(x^2 + 1)), {x, 0, 20}], x] (* Wesley Ivan Hurt, Feb 02 2017 *)
LinearRecurrence[{8, 0, 0, 1, -8}, {1, 10, 80, 643, 5145}, 20] (* Vincenzo Librandi, Feb 03 2017 *)
PROG
(Magma) I:=[1, 10, 80, 643, 5145]; [n le 5 select I[n] else 8*Self(n-1)+Self(n-4)-8*Self(n-5): n in [1..20]]; // Vincenzo Librandi, Feb 03 2017
CROSSREFS
Sequence in context: A341917 A369474 A037509 * A126531 A200162 A165511
KEYWORD
nonn,base,easy
STATUS
approved