login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A343753 Number of partitions of prime(n) containing a prime number of primes. 4
0, 0, 2, 6, 26, 49, 154, 258, 666, 2404, 3588, 11096, 22477, 31620, 61247, 157725, 387527, 518155, 1208470, 2086019, 2726745, 5975695, 9935799, 20882243, 54355088, 86547260, 108874661, 171286370, 214236058, 333331046, 1486031972, 2246585402, 4132451733 (list; graph; refs; listen; history; text; internal format)
OFFSET
1,3
LINKS
EXAMPLE
a(4) = 6 because there are 6 partitions of prime(4) = 7 that contain a prime number of primes (including repetitions). These partitions are [5,2], [3,3,1], [3,2,2], [3,2,1,1], [2,2,2,1], [2,2,1,1,1].
MATHEMATICA
nterms=20; Table[Total[Map[If[PrimeQ[Count[#, _?PrimeQ]], 1, 0] &, IntegerPartitions[Prime[n]]]], {n, 1, nterms}]
PROG
(PARI) forprime(p=2, 67, my(m=0); forpart(X=p, my(j=0); for(k=1, #X, if(isprime(X[k]), j++)); if(isprime(j), m++)); print1(m, ", ")) \\ Hugo Pfoertner, May 01 2021
CROSSREFS
Sequence in context: A337573 A331963 A308988 * A316469 A322116 A223094
KEYWORD
nonn
AUTHOR
Paolo Xausa, May 01 2021
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 28 13:13 EDT 2024. Contains 372086 sequences. (Running on oeis4.)