OFFSET
1,4
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..200
Eric Weisstein's World of Mathematics, Cyclic Edge Cut.
Eric Weisstein's World of Mathematics, Triangular Snake Graph.
Index entries for linear recurrences with constant coefficients, signature (27,-271,1197,-1960).
FORMULA
G.f.: 3*x^4/((1 - 5*x)*(1 - 7*x)^2*(1 - 8*x)). - Andrew Howroyd, Jan 01 2025
a(n) = (8^n - 6*(2*n+5)*7^(n-2) - 2*5^(n-1))/8. - Vincenzo Librandi, Jan 08 2025, after Andrew Howroyd
MATHEMATICA
Table[(8^n - 6 (2 n + 5) 7^(n - 2) - 2 5^(n - 1))/8, {n, 40}] (* Vincenzo Librandi, Jan 08 2025 *)
LinearRecurrence[{27, -271, 1197, -1960}, {0, 0, 0, 3}, 39] (* Vincenzo Librandi, Jan 08 2025 *)
CoefficientList[Series[3 x^3/((-1 + 5 x) (-1 + 7 x)^2 (-1 + 8 x)), {x, 0, 20}], x] (* Eric W. Weisstein, Feb 11 2025 *)
PROG
(PARI) my(N=25); 3*Vec(1/((1 - 5*x)*(1 - 7*x)^2*(1 - 8*x)) + O(x^(N-3)), -N) \\ Andrew Howroyd, Jan 01 2025
(Magma)[(8^n - 6*(2*n+5)*7^(n-2) - 2*5^(n-1))/8: n in [1..25]]; // Vincenzo Librandi, Jan 08 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
Eric W. Weisstein, Dec 31 2024
EXTENSIONS
a(9) onwards from Andrew Howroyd, Jan 01 2025
STATUS
approved