A308858 Sum of the second largest parts in the partitions of n into 5 primes.
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 3, 5, 6, 8, 11, 11, 13, 20, 20, 27, 28, 35, 32, 51, 41, 60, 53, 74, 75, 112, 83, 136, 103, 162, 126, 205, 143, 246, 170, 283, 219, 365, 217, 415, 276, 475, 310, 554, 320, 642, 376, 690, 446, 835, 443, 944, 532, 1019, 587
Offset: 0
Keywords
Programs
-
Mathematica
Table[Total[Select[IntegerPartitions[n,{5}],AllTrue[#,PrimeQ]&][[All,2]]],{n,0,60}] (* The program uses the AllTrue function from Mathematica version 10 *) (* Harvey P. Dale, Mar 15 2020 *)