OFFSET
0,3
LINKS
Vincenzo Librandi, Table of n, a(n) for n = 0..1000
K. L. Collins and L. B. Krompart, The number of Hamiltonian paths in a rectangular grid, Discrete Math. 169 (1997), 29-38.
Index entries for linear recurrences with constant coefficients, signature (7,-9,7,-1).
FORMULA
From Colin Barker, May 20 2013: (Start)
a(n) = 7*a(n-1)-9*a(n-2)+7*a(n-3)-a(n-4).
G.f.: x*(x+1)/(x^4-7*x^3+9*x^2-7*x+1). (End)
EXAMPLE
Illustration of a(1)=1:
.__.__.__.
.__.__.__|
Illustration of a few of the 8 solutions to a(2):
.__.__.__. . .__.__. . .__.__. .__.__.__.
.__.__. | | | .__| |__| .__| .__.__.__|
|__ | | |__| |__. .__. |__. |__.__.__.
.__| |__| .__.__.__| | |__.__| .__.__.__|
MATHEMATICA
CoefficientList[Series[x (x + 1)/(x^4 - 7 x^3 + 9 x^2 - 7 x + 1), {x, 0, 50}], x] (* Vincenzo Librandi, Oct 15 2013 *)
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
EXTENSIONS
Name clarified by Andrew Howroyd, Apr 10 2016
STATUS
approved