OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..400
FORMULA
G.f.: -(72*x^7+128*x^6-42*x^5-108*x^4-3*x^3+21*x^2+x-1) / (96*x^8 -16*x^7 -276*x^6 -42*x^5 +162*x^4 +29*x^3 -27*x^2 -3*x+1). - Alois P. Heinz, Jun 26 2012
MAPLE
b:= proc(n, i, j) option remember;
`if`(n<0 or i<0 or i>7 or j<0 or j>7, 0, `if`(n=0,
1, add(b(n-1, i+r[1], j+r[2]), r=[[1, 2], [1, -2], [-1, 2],
[-1, -2], [2, 1], [2, -1], [-2, 1], [-2, -1]])))
end:
a:= n-> b(n, 7, 7):
seq(a(n), n=0..30); # Alois P. Heinz, Jun 26 2012
MATHEMATICA
b[n_, i_, j_] := b[n, i, j] = If[n<0 || i<0 || i>7 || j<0 || j>7, 0, If[n == 0, 1, Sum [b[n-1, i+r[[1]], j+r[[2]]], {r, {{1, 2}, {1, -2}, {-1, 2}, {-1, -2}, {2, 1}, {2, -1}, {-2, 1}, {-2, -1}}}]]]; a[n_] := b[n, 7, 7]; Table[a[n], {n, 0, 30}] (* Jean-François Alcover, May 28 2015, after Alois P. Heinz *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved