OFFSET
0,3
COMMENTS
For n>0, a(n) equals the number of words of length n-1 over {0,1,...,9} in which 0 and 1 avoid runs of odd lengths. - Milan Janjic, Jan 08 2017
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (8,2).
FORMULA
G.f.: x/(1 - 8*x - 2*x^2). - R. J. Mathar, Nov 20 2011
MATHEMATICA
LinearRecurrence[{8, 2}, {0, 1}, 50]
PROG
(PARI) x='x+O('x^30); concat([0], Vec(x/(1-8*x-2*x^2))) \\ G. C. Greubel, Jan 24 2018
(Magma) I:=[0, 1]; [n le 2 select I[n] else 8*Self(n-1) + 2*Self(n-2): n in [1..30]]; // G. C. Greubel, Jan 24 2018
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, May 24 2011
STATUS
approved