OFFSET
0,5
REFERENCES
N. J. A. Sloane, A Handbook of Integer Sequences, Academic Press, 1973 (includes this sequence).
N. J. A. Sloane and Simon Plouffe, The Encyclopedia of Integer Sequences, Academic Press, 1995 (includes this sequence).
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
D. N. Lehmer, On ternary continued fractions, Tohoku Math. J., 37 (1933), 436-445.
D. N. Lehmer, On ternary continued fractions (Annotated scanned copy)
Index entries for linear recurrences with constant coefficients, signature (0, 7, 0, -3, 0, 1).
FORMULA
G.f.: (x^5 - 3x^4 + x^3 + x^2)/(-x^6 + 3x^4 - 7x^2 + 1).
a(n) = 7*a(n-2) - 3*a(n-4) + a(n-6); a(0)=0, a(1)=0, a(2)=1, a(3)=1, a(4)=4, a(5)=8. - Harvey P. Dale, Jun 29 2011
MAPLE
G:=(x^5-3*x^4+x^3+x^2)/(-x^6+3*x^4-7*x^2+1): Gser:=series(G, x=0, 35): seq(coeff(Gser, x, n), n=0..32); # Emeric Deutsch, Apr 22 2006
MATHEMATICA
LinearRecurrence[{0, 7, 0, -3, 0, 1}, {0, 0, 1, 1, 4, 8}, 31] (* Harvey P. Dale, Jun 29 2011 *)
CoefficientList[Series[(x^5-3x^4+x^3+x^2)/(-x^6+3x^4-7x^2+1), {x, 0, 40}], x] (* Vincenzo Librandi, Apr 11 2012 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
More terms from Emeric Deutsch, Apr 22 2006
STATUS
approved