|
|
A141582
|
|
a(n) = number of ways to dispose two pawns on a chessboard of size n X n (two dispositions are equivalent if one can be rotated or reflected to give the other one).
|
|
1
|
|
|
0, 0, 2, 8, 21, 48, 93, 168, 278, 440, 660, 960, 1347, 1848, 2471, 3248, 4188, 5328, 6678, 8280, 10145, 12320, 14817, 17688, 20946, 24648, 28808, 33488, 38703, 44520, 50955, 58080, 65912, 74528, 83946, 94248, 105453, 117648, 130853, 145160, 160590, 177240
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
0,3
|
|
LINKS
|
|
|
FORMULA
|
For n even, a(n) = n * (n^3 + 6*n -4) / 16; for n odd a(n) = (n^2-1) * (n^2 + 7) / 16.
a(n) = 3*a(n-1)-a(n-2)-5*a(n-3)+5*a(n-4)+a(n-5)-3*a(n-6)+a(n-7) for n>6. - Colin Barker, Feb 21 2015
G.f.: -x^2*(3*x^3-x^2+2*x+2) / ((x-1)^5*(x+1)^2). - Colin Barker, Feb 21 2015
|
|
EXAMPLE
|
For n = 2, two ways: either two pawns on any edge, or two pawns on any diagonal, hence a(2) = 2.
|
|
PROG
|
(PARI) concat([0, 0], Vec(-x^2*(3*x^3-x^2+2*x+2)/((x-1)^5*(x+1)^2) + O(x^100))) \\ Colin Barker, Feb 21 2015
|
|
CROSSREFS
|
|
|
KEYWORD
|
easy,nonn
|
|
AUTHOR
|
Philippe Lallouet (philip.lallouet(AT)orange.fr), Aug 19 2008
|
|
EXTENSIONS
|
Typo in data fixed, and leading zeros added by Colin Barker, Feb 21 2015
|
|
STATUS
|
approved
|
|
|
|