|
|
A344782
|
|
Number of compositions of the n-th prime into a prime number of prime parts.
|
|
3
|
|
|
0, 0, 2, 5, 11, 23, 119, 237, 776, 6665, 16518, 207953, 892680, 1824445, 8374988, 96208461, 978217302, 2059770725, 18616884428, 78013141907, 158103168924, 1386674113487, 6734724875544, 82189835767618, 2013603833805429, 9101106147506177, 19147196940580651
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,3
|
|
LINKS
|
|
|
EXAMPLE
|
a(3) = 2: [2,3], [3,2].
a(4) = 5: [5,2], [2,5], [3,2,2], [2,3,2], [2,2,3].
|
|
MAPLE
|
b:= proc(n, c) option remember; `if`(n=0, `if`(isprime(c),
1, 0), add(`if`(isprime(j), b(n-j, c+1), 0), j=2..n))
end:
a:= n-> b(ithprime(n), 0):
seq(a(n), n=1..31);
|
|
MATHEMATICA
|
b[n_, c_] := b[n, c] = If[n == 0, If[PrimeQ[c], 1, 0],
Sum[If[PrimeQ[j], b[n - j, c + 1], 0], {j, 2, n}]];
a[n_] := b[Prime[n], 0];
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|