OFFSET
0,2
LINKS
Alois P. Heinz, Table of n, a(n) for n = 0..1788
Wikipedia, Wazir (chess)
EXAMPLE
a(3) = 24 = A371967(3,2):
+-------+ +-------+ +-------+ +-------+ +-------+ +-------+
| W . W | | W . . | | W . . | | W . . | | W . . | | W . . |
| . . . | | . W . | | . . W | | . . . | | . . . | | . . . |
| . . . | | . . . | | . . . | | W . . | | . W . | | . . W |
+-------+ +-------+ +-------+ +-------+ +-------+ +-------+
+-------+ +-------+ +-------+ +-------+ +-------+ +-------+
| . W . | | . W . | | . W . | | . W . | | . W . | | . . W |
| W . . | | . . W | | . . . | | . . . | | . . . | | W . . |
| . . . | | . . . | | W . . | | . W . | | . . W | | . . . |
+-------+ +-------+ +-------+ +-------+ +-------+ +-------+
+-------+ +-------+ +-------+ +-------+ +-------+ +-------+
| . . W | | . . W | | . . W | | . . W | | . . . | | . . . |
| . W . | | . . . | | . . . | | . . . | | W . W | | W . . |
| . . . | | W . . | | . W . | | . . W | | . . . | | . W . |
+-------+ +-------+ +-------+ +-------+ +-------+ +-------+
+-------+ +-------+ +-------+ +-------+ +-------+ +-------+
| . . . | | . . . | | . . . | | . . . | | . . . | | . . . |
| W . . | | . W . | | . W . | | . . W | | . . W | | . . . |
| . . W | | W . . | | . . W | | W . . | | . W . | | W . W |
+-------+ +-------+ +-------+ +-------+ +-------+ +-------+ .
MAPLE
b:= proc(n, l) option remember; `if`(n=0, 1,
add(`if`(Bits[And](j, l)>0, 0, expand(b(n-1, j)*
x^add(i, i=Bits[Split](j)))), j=[0, 1, 2, 4, 5]))
end:
a:= n-> max(coeffs(b(n, 0))):
seq(a(n), n=0..30);
CROSSREFS
KEYWORD
nonn
AUTHOR
Alois P. Heinz, Apr 14 2024
STATUS
approved