OFFSET
0,12
COMMENTS
a(n) is the number of partitions of n into parts 2, 9, and 11. - Joerg Arndt, Sep 03 2025
LINKS
Index entries for linear recurrences with constant coefficients, signature (0,1,0,0,0,0,0,0,1,0,0,0,-1,0,0,0,0,0,0,-1,0,1).
FORMULA
a(n) = floor((n^2+22*n+336)/396 - (n mod 2)/4 - (2/3)*[(n mod 9) in {0,5,7}] + (9/11)*[(n mod 11)=0] + (4/11)*([(n mod 11) in {2,9}] - [(n mod 11) in {1,3,8,10}])). - Hoang Xuan Thanh, Sep 03 2025
PROG
(PARI) a(n) = (n^2 + 22*n + 396)/396 - (n%2)/4 + [0, 5, 3, 3, 5, 0, 6, -4, 6][n%9+1]/9 - [0, 15, 5, 14, 9, 12, 12, 9, 14, 5, 15][n%11+1]/11 \\ Hoang Xuan Thanh, Sep 03 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
