The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A025603 Number of n-move queen paths on 8x8 board from given corner to any square. 1
1, 21, 465, 10565, 241697, 5539893, 127041105, 2913686981, 66827609633, 1532754884725, 35155272163473, 806321934125125, 18493816732267425, 424174583966543669, 9728877611505065297, 223141752041771533125, 5117984163043834408865, 117386198048567829057141 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,2
LINKS
FORMULA
G.f.: -(3*x-1) *(16*x^3-4*x^2-5*x+1) *(112*x^4-124*x^3-8*x^2+11*x-1) / (112896*x^9 -170880*x^8 +29184*x^7 +55636*x^6 -26128*x^5 +79*x^4 +2120*x^3 -482*x^2 +40*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(add(b(n-1, i+t*r[1], j+t*r[2]), r=[[1, 1],
[1, -1], [-1, 1], [-1, -1], [0, 1], [0, -1], [1, 0],
[-1, 0]]), t=1..7)))
end:
a:= n-> b(n, 7, 7):
seq(a(n), n=0..20); # 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[Sum[b[n-1, i+t*r[[1]], j+t*r[[2]]], {r, {{1, 1}, {1, -1}, {-1, 1}, {-1, -1}, {0, 1}, {0, -1}, {1, 0}, {-1, 0}}}], {t, 1, 7}]]]; a[n_] := b[n, 7, 7]; Table[a[n], {n, 0, 30}] (* Jean-François Alcover, May 28 2015, after Alois P. Heinz *)
CROSSREFS
Sequence in context: A126996 A158603 A307600 * A296586 A269922 A006298
KEYWORD
nonn,easy
AUTHOR
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified May 13 01:02 EDT 2024. Contains 372497 sequences. (Running on oeis4.)