OFFSET
0,3
COMMENTS
a(n+1) equals the number of words of length n over {0,1,2,3,4,5,6} avoiding 01, 02 and 03. - Milan Janjic, Dec 17 2015
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (7,-3).
FORMULA
a(n) = ((7/2 + 1/2*sqrt(37))^n - (7/2 - 1/2*sqrt(37))^n)/sqrt(37). - Giorgio Balzarotti, May 28 2011
G.f.: x/(1 - 7x + 3*x^2). - Philippe Deléham, Oct 12 2011
E.g.f.: (2/sqrt(37))*exp(7*x/2)*sinh(sqrt(37)*x/2). - G. C. Greubel, Dec 18 2015
MATHEMATICA
LinearRecurrence[{7, -3}, {0, 1}, 50]
PROG
(Magma) I:=[0, 1]; [n le 2 select I[n] else 7*Self(n-1)-3*Self(n-2): n in [1..30]]; // Vincenzo Librandi, Dec 17 2015
(PARI) concat(0, Vec(x/(1-7*x+3*x^2) + O(x^100))) \\ Altug Alkan, Dec 18 2015
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Vladimir Joseph Stephan Orlovsky, May 24 2011
STATUS
approved
