OFFSET
0,2
REFERENCES
J. Labelle, Paths in the Cartesian, triangular and hexagonal lattices, Bulletin of the ICA, 17, 1996, 47-61.
FORMULA
G.f.: (1+2z+3z^2+5z^3+4z^4+3z^5+3z^6+4z^7+2z^8+4z^10+2z^11)/(1-2z^4).
For n>=2: a(4n) = a(4n+1) = 7*2^(n-1), a(4n+2) = 11*2^(n-1), a(4n+3) = 15*2^(n-1).
MAPLE
g:=series((1+2*z+3*z^2+5*z^3+4*z^4+3*z^5+3*z^6+4*z^7+2*z^8+4*z^10+2*z^11)/(1-2*z^4), z=0, 64): 1, seq(coeff(g, z^n), n=1..60);
MATHEMATICA
a[n_] := If[n <= 7, {1, 2, 3, 5, 6, 7, 9, 14}[[n+1]], Switch[Mod[n, 4], 0, 7*2^(n/4-1), 1, 7*2^((n-5)/4), 2, 11*2^((n-6)/4), 3, 15*2^((n-7)/4)]]; Table[a[n], {n, 0, 51}] (* Jean-François Alcover, Jul 09 2017 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Emeric Deutsch, Dec 07 2004
STATUS
approved