OFFSET
0,17
FORMULA
a(n) = n * Sum_{p=1..floor(n/8)} Sum_{o=p..floor((n-p)/7)} Sum_{m=o..floor((n-o-p)/6)} Sum_{l=m..floor((n-m-o-p)/5)} Sum_{k=l..floor((n-l-m-o-p)/4)} Sum_{j=k..floor((n-k-l-m-o-p)/3)} Sum_{i=j..floor((n-j-k-l-m-o-p)/2)} c(p) * c(o) * c(m) * c(l) * c(k) * c(j) * c(i) * c(n-i-j-k-l-m-o-p), where c = A010051.
a(n) = n * A259198(n).
MATHEMATICA
a[n_] := n*Length[IntegerPartitions[n, {8}, Prime[Range[PrimePi[n]]]]]; Table[a[n], {n, 0, 50}] (* Jean-François Alcover, Jul 07 2019 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Jul 06 2019
STATUS
approved