OFFSET
0,6
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000
EXAMPLE
The a(10) = 3 through a(15) = 14 partitions:
(8,2) (11) (9,3) (13) (9,5) (8,7)
(9,1) (6,5) (10,2) (7,6) (12,2) (10,5)
(4,4,2) (7,4) (6,4,2) (8,5) (6,6,2) (11,4)
(8,3) (10,3) (8,4,2) (12,3)
(9,2) (12,1) (9,4,1) (14,1)
(10,1) (5,4,4) (4,4,4,2) (6,5,4)
(4,4,3) (6,4,3) (6,6,3)
(6,4,1) (6,6,1) (7,4,4)
(8,4,1) (8,4,3)
(4,4,4,1) (8,6,1)
(9,4,2)
(10,4,1)
(4,4,4,3)
(6,4,4,1)
MATHEMATICA
Table[Length[Select[IntegerPartitions[n], Count[#, _?(#==1||PrimeQ[#]&)]==1&]], {n, 0, 30}]
PROG
(PARI) seq(n)={Vec(sum(k=1, n, if(isprime(k) || k==1, x^k))/prod(k=4, n, 1 - if(!isprime(k), x^k), 1 + O(x^n)), -n-1)} \\ Andrew Howroyd, Dec 28 2024
KEYWORD
nonn,new
AUTHOR
Gus Wiseman, Dec 28 2024
STATUS
approved