|
|
A340962
|
|
Number of ways to write n as an ordered sum of 6 primes.
|
|
12
|
|
|
1, 6, 15, 26, 45, 72, 106, 150, 186, 236, 306, 366, 455, 540, 636, 782, 912, 1056, 1236, 1410, 1617, 1896, 2106, 2400, 2696, 2976, 3348, 3716, 4026, 4446, 4917, 5340, 5982, 6380, 7017, 7476, 8377, 8640, 9765, 9936, 11202, 11496, 13132, 12930, 15117, 14672, 17178, 16800, 19696
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
12,2
|
|
LINKS
|
|
|
FORMULA
|
G.f.: (Sum_{k>=1} x^prime(k))^6.
|
|
MAPLE
|
b:= proc(n, k) option remember; local r, p; r, p:= 0, 2;
if n=0 then `if`(k=0, 1, 0) elif k<1 then 0 else
while p<=n do r:= r+b(n-p, k-1); p:= nextprime(p) od; r fi
end:
a:= n-> b(n, 6):
|
|
MATHEMATICA
|
nmax = 60; CoefficientList[Series[Sum[x^Prime[k], {k, 1, nmax}]^6, {x, 0, nmax}], x] // Drop[#, 12] &
|
|
CROSSREFS
|
Cf. A000040, A010051, A073610, A098238, A259196, A340960, A340961, A340963, A340964, A340965, A340966.
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|