OFFSET
0,19
COMMENTS
a(n) is the number of partitions of n into parts 6, 8, and 9. - Michel Marcus, Jan 23 2024
LINKS
G. C. Greubel, Table of n, a(n) for n = 0..5000
Index entries for linear recurrences with constant coefficients, signature (0,0,0,0,0,1,0,1,1,0,0,0,0,-1,-1,0,-1,0,0,0,0,0,1).
FORMULA
a(n) = floor((n^2+7*n+373)/864 + (n+12)*(-1)^n/96 + (n+12)*((n+2) mod 3)/54 +(((n+4) mod 8)-((n+2) mod 8))/72). - Hoang Xuan Thanh, Sep 25 2025
MATHEMATICA
CoefficientList[ Series[1/((1-x^6)*(1-x^8)*(1-x^9)), {x, 0, 100}], x] (* G. C. Greubel, Jan 23 2024 *)
PROG
(Magma) R<x>:=PowerSeriesRing(Integers(), 100); Coefficients(R!( 1/((1-x^6)*(1-x^8)*(1-x^9)) )); // G. C. Greubel, Jan 23 2024
(SageMath)
def A025902_list(prec):
P.<x> = PowerSeriesRing(ZZ, prec)
return P( 1/((1-x^6)*(1-x^8)*(1-x^9))).list()
A025902_list(100) # G. C. Greubel, Jan 23 2024
(PARI) a(n) = ((n^2+7*n+289)/864 + n*(-1)^n/96 + n*((n+2)%3)/54 + (2/27)*[9, 0, 4, 4, 1, 1][n%6+1])\1 \\ Hoang Xuan Thanh, Sep 25 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
