OFFSET
0,9
LINKS
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)} (i * c(i) + j * c(j) + k * c(k) + l * c(l) + m * c(m) + o * c(o) + (n-i-j-k-l-m-o) * c(n-i-j-k-l-m-o)), where c = A010051.
MATHEMATICA
Table[Sum[Sum[Sum[Sum[Sum[Sum[i (PrimePi[i] - PrimePi[i - 1]) + j (PrimePi[j] - PrimePi[j - 1]) + k (PrimePi[k] - PrimePi[k - 1]) + l (PrimePi[l] - PrimePi[l - 1]) + m (PrimePi[m] - PrimePi[m - 1]) + o (PrimePi[o] - PrimePi[o - 1]) + (n - i - j - k - l - m - o) (PrimePi[n - i - j - k - l - m - o] - PrimePi[n - i - j - k - l - m - o - 1]), {i, j, Floor[(n - j - k - l - m - o)/2]}], {j, k, Floor[(n - k - l - m - o)/3]}], {k, l, Floor[(n - l - m - o)/4]}], {l, m, Floor[(n - m - o)/5]}], {m, o, Floor[(n - o)/6]}], {o, Floor[n/7]}], {n, 0, 80}]
CROSSREFS
KEYWORD
nonn
AUTHOR
Wesley Ivan Hurt, Aug 03 2019
STATUS
approved