|
|
A294107
|
|
Maximum of the number of primes appearing among the smaller parts and the number of primes appearing among the larger parts of the partitions of n into two parts.
|
|
2
|
|
|
0, 0, 1, 2, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 6, 6, 7, 7, 7, 7, 8, 8, 8, 8, 8, 8, 8, 8, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 9, 10, 10, 10, 10, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 11, 12, 12, 12, 12, 12, 12
(list;
graph;
refs;
listen;
history;
text;
internal format)
|
|
|
OFFSET
|
1,4
|
|
LINKS
|
|
|
FORMULA
|
a(n) = max(Sum_{i=1..floor(n/2)} A010051(i), Sum_{i=1..floor(n/2)} A010051(n-i)).
|
|
MATHEMATICA
|
Table[Max[Sum[PrimePi[i] - PrimePi[i - 1], {i, Floor[n/2]}], Sum[PrimePi[n - i] - PrimePi[n - i - 1], {i, Floor[n/2]}]], {n, 80}]
mnp[n_]:=Module[{ps=IntegerPartitions[n, {2}]}, Max[Count[ ps[[All, 1]], _?PrimeQ], Count[ ps[[All, 2]], _?PrimeQ]]]; Array[mnp, 80] (* Harvey P. Dale, Sep 12 2021 *)
|
|
CROSSREFS
|
|
|
KEYWORD
|
nonn,easy
|
|
AUTHOR
|
|
|
STATUS
|
approved
|
|
|
|