login
A037517
Base 8 digits are, in order, the first n terms of the periodic sequence with initial period 2,0,1.
1
2, 16, 129, 1034, 8272, 66177, 529418, 4235344, 33882753, 271062026, 2168496208, 17347969665, 138783757322, 1110270058576, 8882160468609, 71057283748874, 568458269990992, 4547666159927937
OFFSET
1,1
FORMULA
G.f.: x*(2+x^2) / ( (x-1)*(8*x-1)*(1+x+x^2) ). - R. J. Mathar, Nov 21 2011
a(1)=2, a(2)=16, a(3)=129, a(4)=1034, a(n)=8*a(n-1)+a(n-3)-8*a(n-4). - Harvey P. Dale, May 09 2015
MATHEMATICA
Module[{nn=20, d8}, d8=PadRight[{}, nn, {2, 0, 1}]; Table[FromDigits[Take[ d8, n], 8], {n, nn}]] (* or *) LinearRecurrence[{8, 0, 1, -8}, {2, 16, 129, 1034}, 20] (* Harvey P. Dale, May 09 2015 *)
CROSSREFS
Sequence in context: A171451 A012459 A012463 * A037720 A022018 A067684
KEYWORD
nonn,base
STATUS
approved