OFFSET
0,9
COMMENTS
Number of partitions of n into parts 1, 8, and 9. - Hoang Xuan Thanh, Aug 15 2025
LINKS
Index entries for linear recurrences with constant coefficients, signature (1,0,0,0,0,0,0,1,0,-1,0,0,0,0,0,0,-1,1).
FORMULA
a(n) = (n^2 + 18*n + 9*(2+(n mod 8))*(8-(n mod 8)) - 8*(n mod 9)*(9-(n mod 9)))/144. - Hoang Xuan Thanh, Aug 19 2025
MATHEMATICA
CoefficientList[Series[1/((1-x)(1-x^8)(1-x^9)), {x, 0, 70}], x] (* or *) LinearRecurrence[{1, 0, 0, 0, 0, 0, 0, 1, 0, -1, 0, 0, 0, 0, 0, 0, -1, 1}, {1, 1, 1, 1, 1, 1, 1, 1, 2, 3, 3, 3, 3, 3, 3, 3, 4, 5}, 70] (* Harvey P. Dale, Dec 09 2025 *)
PROG
(PARI) b(m) = if(m>0, 9*(m-2)*(m-8), 0);
c(x, y) = 81-x^2 + b((x+1)%8) - b((x+y-6)%8);
a(n) = (n^2 + 18*n + c(n%9, n\9))/144 \\ Hoang Xuan Thanh, Aug 15 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
