OFFSET
0,12
COMMENTS
Number of partitions of n into parts 3, 5, and 11. - Hoang Xuan Thanh, Sep 04 2025
LINKS
Milan Janjic, On Linear Recurrence Equations Arising from Compositions of Positive Integers, Journal of Integer Sequences, Vol. 18 (2015), Article 15.4.7.
Index entries for linear recurrences with constant coefficients, signature (0,0,1,0,1,0,0,-1,0,0,1,0,0,-1,0,-1,0,0,1).
FORMULA
a(n) = floor((n^2 + 19*n + 232 + 37*(((n+2) mod 3) - ((n+1) mod 3)) + 14*(2*((n+3) mod 5) - 2*(n mod 5) + ((n+1) mod 5) - ((n+2) mod 5)))/330). - Hoang Xuan Thanh, Sep 04 2025
PROG
(PARI) a(n) = (n^2+19*n+198 - 110*[0, 1, 0][n%3+1] + 66*[2, 2, 0, 1, 0][n%5+1])\330 \\ Hoang Xuan Thanh, Sep 04 2025
CROSSREFS
KEYWORD
nonn,easy
AUTHOR
STATUS
approved
