Monday, 30 April 2012

nt.number theory - A prime sequence can be partitioned into two sets of equal or consecutive sum

Scott Carnahan had an interesting idea; let's formalize it into an actual solution. We will show that, given nge2 a positive integer, p1,cdots,pn the first n primes, we have some e1,cdots,en with ei=pm1 such that |e1p1+e2p2+cdots+enpn|le1. (Note that we may further stipulate that en=1.) A simple parity argument from here suffices to prove the conjecture.



We will prove this by induction on n. The cases 2lenle6 are trivial to verify, and were provided already by a-boy. We now fix nge7.



We first need some asymptotics in the form of the Bertrand-Chebyshev theorem; we use the formulation that for m>1 there is a prime between m and 2m.



Write Sk=enpn+en1pn1+cdots+enk+1pnk+1, and let M(k) be the minimum of |Sk| over all tuples (en,en1,cdots,enk+1). We stipulated earlier that en=1, so we have M(1)=pn. Two facts that will be useful to us in the future are that (1) M(k+1)le|M(k)pnk| and (2) if |a|le|b|, then min|a+b|,|ab|le|b|.



We claim that M(k)lepnk+1 for k=1,2,cdots,n2. We prove this by induction on k. The claim for k=1 is trivial. Now if M(k)lepnk, then we are done, as M(k+1)lemin|M(k)+pnk|,|M(k)pnk|lepnk by fact (2).



Now suppose pnk<M(k)lepnk+1. Write 2m+1=pnk+1gep3=5, so that m>1. In this case we know that m<pnk<M(k)le2m. But then M(k+1)leM(k)pnkle2m(m+1)=(m1)<pnk as desired.



The fact that M(k)lepnk+1 is eminently useful.



Indeed, we may use it to dispatch of the even case immediately. Set k=n6. Then we have M(n6)le17. As all sums considered in M(n6) are sums of an even number of odd terms, we in fact have M(n6)le16 and even. Now we simply note that all odd numbers between -15 and 15 are realizable as sums and differences of the first 6 primes, which is left as an easy computational exercise.



In the odd case, we consider k=n5. Then M(n5)le13. For the same parity reasons as above, we have in fact M(n5)le12. And again, we note that all even numbers between -12 and 12 are realizable as sums and differences of the first 5 primes - another easy computational exercise.



The limits of n6 and n5 are the best possible for our small-case analysis.



If we were to establish an algorithm for this, we could just do the greedy algorithm on choosing en, then en1, and so on, each time choosing ek so as to minimize Sk+1 (or randomly if Sk=0). Our claim that M(k)lepnk will continue to be satisfied by the greedy algorithm, as the proof of the claim does not involve changing prior ei. Thus our greedy-algorithm mimium modulus must satisfy the same inequality, and we continue until we are at n6 or n5, then finish as in our nonconstructive proof.

No comments:

Post a Comment