OFFSET
0,15
FORMULA
a(n) = Sum_{o=1..floor(n/7)} Sum_{m=o..floor((n-o)/6)} Sum_{l=m..floor((n-m-o)/5)} Sum_{k=l..floor((n-l-m-o)/4)} Sum_{j=k..floor((n-k-l-m-o)/3)} Sum_{i=j..floor((n-j-k-l-m-o)/2)} c(i) * c(j) * c(k) * c(l) * c(m) * c(o) * c(n-i-j-k-l-m-o) * i, where c = A010051.
MATHEMATICA
Table[Total[Select[IntegerPartitions[n, {7}], AllTrue[#, PrimeQ]&][[All, 2]]], {n, 0, 60}] (* Harvey P. Dale, Oct 23 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jul 04 2019
STATUS
approved