OFFSET
0,7
COMMENTS
Minimum number of lions (from Chu shogi, Dai shogi and other Shogi variants) required to dominate an n X n board.
LINKS
Wikipedia, Fairy chess piece.
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,2,-2,0,0,0,-1,1).
FORMULA
a(n) = floor((n+4)/5)^2.
Sum_{n>=1} 1/a(n) = 5*Pi^2/6. - Amiram Eldar, Aug 15 2022
From Elmo R. Oliveira, Jul 01 2026: (Start)
a(n) = a(n-1) + 2*a(n-5) - 2*a(n-6) - a(n-10) + a(n-11).
G.f.: x*(1 + x^5) / ((1 - x)^3 * (1 + x + x^2 + x^3 + x^4)^2). (End)
EXAMPLE
For n=6 we need a(6)=4 lions to dominate a 6 X 6 board.
MATHEMATICA
Table[Floor[(i+4)/5]^2, {i, 0, 64}]
PROG
(Python) [int((n+4)/5)**2 for n in range(64)]
CROSSREFS
KEYWORD
nonn,easy,changed
AUTHOR
David Nacin, May 24 2017
STATUS
approved
