OFFSET
1,1
LINKS
Andrew Howroyd, Table of n, a(n) for n = 1..200
Eric Weisstein's World of Mathematics, Torus Grid Graph
Index entries for linear recurrences with constant coefficients, signature (15,-77,161,-138,40).
FORMULA
a(n) = 15*a(n-1) - 77*a(n-2) + 161*a(n-3) - 138*a(n-4) + 40*a(n-5).
G.f.: 2*x*(16 - 183*x + 651*x^2 - 812*x^3 + 300*x^4)/((1 - x)*(1 - 2*x)*(1 - 5*x)*(1 - 7*x + 4*x^2)).
MATHEMATICA
LinearRecurrence[{15, -77, 161, -138, 40}, {32, 114, 548, 2970, 16892}, 22] (* Jean-François Alcover, Sep 21 2019 *)
PROG
(PARI) Vec(2*(16 - 183*x + 651*x^2 - 812*x^3 + 300*x^4)/((1 - x)*(1 - 2*x)*(1 - 5*x)*(1 - 7*x + 4*x^2)) + O(x^25))
CROSSREFS
KEYWORD
nonn
AUTHOR
Andrew Howroyd, Jan 14 2018
STATUS
approved