OFFSET
1,1
LINKS
Harvey P. Dale, Table of n, a(n) for n = 1..1000
Index entries for linear recurrences with constant coefficients, signature (8,0,1,-8).
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
KEYWORD
nonn,base
AUTHOR
STATUS
approved