%I #15 Jul 20 2021 16:54:38
%S 2,16,129,1034,8272,66177,529418,4235344,33882753,271062026,
%T 2168496208,17347969665,138783757322,1110270058576,8882160468609,
%U 71057283748874,568458269990992,4547666159927937
%N Base 8 digits are, in order, the first n terms of the periodic sequence with initial period 2,0,1.
%H Harvey P. Dale, <a href="/A037517/b037517.txt">Table of n, a(n) for n = 1..1000</a>
%H <a href="/index/Rec#order_04">Index entries for linear recurrences with constant coefficients</a>, signature (8,0,1,-8).
%F G.f.: x*(2+x^2) / ( (x-1)*(8*x-1)*(1+x+x^2) ). - _R. J. Mathar_, Nov 21 2011
%F 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
%t 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 *)
%K nonn,base
%O 1,1
%A _Clark Kimberling_