The OEIS mourns the passing of Jim Simons and is grateful to the Simons Foundation for its support of research in many branches of science, including the OEIS.
login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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
Sequence in context: A240708 A235645 A325357 * A240874 A029379 A058776
KEYWORD
nonn,easy
AUTHOR
Wesley Ivan Hurt, Oct 22 2017
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified June 8 17:52 EDT 2024. Contains 373227 sequences. (Running on oeis4.)