OFFSET
0,6
COMMENTS
The "old" primes are listed by A008578.
LINKS
Andrew Howroyd, Table of n, a(n) for n = 0..1000
EXAMPLE
The a(10) = 2 through a(15) = 10 partitions:
(8,2) (11) (9,3) (13) (9,5) (8,7)
(9,1) (6,5) (10,2) (7,6) (12,2) (10,5)
(7,4) (6,4,2) (8,5) (8,4,2) (11,4)
(8,3) (10,3) (9,4,1) (12,3)
(9,2) (12,1) (14,1)
(10,1) (6,4,3) (6,5,4)
(6,4,1) (8,4,1) (8,4,3)
(8,6,1)
(9,4,2)
(10,4,1)
MATHEMATICA
Table[Length[Select[IntegerPartitions[n], UnsameQ@@#&&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