OFFSET
1,2
COMMENTS
Number of (undirected) paths in the (2n-1)-triangular snake graph.
LINKS
Eric Weisstein's World of Mathematics, Graph Path.
Eric Weisstein's World of Mathematics, Triangular Snake Graph.
Index entries for linear recurrences with constant coefficients, signature (4,-5,2).
FORMULA
a(n) = 2^(n + 3) - 10*n - 6.
a(n) = 4*a(n-1) - 5*a(n-2) + 2*a(n-3).
G.f.: -2*x^2*(3 + 2*x)/((-1 + x)^2*(-1 + 2*x)).
E.g.f.: 2*(4*exp(2*x) - (3 + 5*x)*exp(x) - 1). - Elmo R. Oliveira, Nov 14 2025
MATHEMATICA
Table[2^(3 + n) - 10 n - 6, {n, 20}]
LinearRecurrence[{4, -5, 2}, {0, 6, 28}, 20]
CoefficientList[Series[-2 x (3 + 2 x)/((-1 + x)^2 (-1 + 2 x)), {x, 0, 20}], x]
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric W. Weisstein, Jun 08 2019
STATUS
approved
