OFFSET
0,4
COMMENTS
The pieces are valued pawn=1, knight=3, bishop=3, rook=5, queen=9.
The knight and bishop are different ways to add 3 into the total.
So a(n) is the number of ways to partition n into a sum of parts 1, 3, 5, 9 with two types of 3.
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,2,-2,1,-2,1,-2,3,-1,1,-3,2,-1,2,-1,2,-2,0,-1,1).
FORMULA
G.f.: 1/((1-x)*(1-x^3)^2*(1-x^5)*(1-x^9)). - Andrew Howroyd, Nov 20 2024
EXAMPLE
For n=4, the a(4)=3 sets of pieces are {1, 1, 1, 1}, {3a, 1}, {3b, 1}, where the knight and bishop both worth 3 are labeled 3a and 3b.
For n=9 the a(9)=14 solutions are {1, 1, 1, 1, 1, 1, 1, 1, 1}, {3a, 1, 1, 1, 1, 1, 1}, {3b, 1, 1, 1, 1, 1, 1}, {3a, 3a, 1, 1, 1}, {3a, 3b, 1, 1, 1}, {3b, 3b, 1, 1, 1}, {3a, 3a, 3a}, {3a, 3a, 3b}, {3a, 3b, 3b}, {3b, 3b, 3b}, {5, 1, 1, 1, 1}, {5, 3a, 1}, {5, 3b, 1}, and {9}.
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
David W. Ziegler, Nov 20 2024
STATUS
approved