OFFSET
0,2
REFERENCES
J. Labelle, Paths in the Cartesian, triangular and hexagonal lattices, Bulletin of the ICA, 17, 1996, 47-61.
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..1000
Index entries for linear recurrences with constant coefficients, signature (0,0,0,2).
FORMULA
G.f.: (1+3*z+4*z^2+4*z^3+4*z^4+4*z^5+2*z^6) / (1-2*z^4).
a(0)=1, a(1)=3, a(2)=4, a(4*n+3)=4*2^n, a(4*n+4)=6*2^n, a(4*n+5)=a(4*n+6)=10*2^n. - Ralf Stephan, May 16 2007
MAPLE
g:=series((1+3*z+4*z^2+4*z^3+4*z^4+4*z^5+2*z^6)/(1-2*z^4), z=0, 64): 1, seq(coeff(g, z^n), n=1..60);
MATHEMATICA
CoefficientList[Series[(1 +3*x +4*x^2 +4*x^3 +4*x^4 +4*x^5 +2*x^6)/(1 - 2*x^4), {x, 0, 60}], x] (* G. C. Greubel, May 21 2019 *)
PROG
(PARI) my(x='x+O('x^60)); Vec( (1 +3*x +4*x^2 +4*x^3 +4*x^4 +4*x^5 +2*x^6)/(1-2*x^4) ) \\ G. C. Greubel, May 21 2019
(Magma) R<x>:=PowerSeriesRing(Integers(), 60); Coefficients(R!( (1 +3*x +4*x^2 +4*x^3 +4*x^4 +4*x^5 +2*x^6)/(1-2*x^4) )); // G. C. Greubel, May 21 2019
(Sage) ((1 +3*x +4*x^2 +4*x^3 +4*x^4 +4*x^5 +2*x^6)/(1-2*x^4)).series(x, 60).coefficients(x, sparse=False) # G. C. Greubel, May 21 2019
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Emeric Deutsch, Dec 07 2004
STATUS
approved