Place every number from 1 to 20 into one of three lists P, Q or O, such that any number from P added to any number from Q gives a prime. What is the fewest number of elements that can be in O? Note that P and Q cannot be empty.
Good luck!
Answer
It is possible to solve this without a computer search. The proof of min|O| is below.
These are all the odd prime numbers ≤20+19=39; colours important later. 3,5,7,11,13,17,19,23,29,31,37.
Let P contain even integers only and Q odd without loss of generality. We can then form the following table, where ✓ indicates whether the entry is prime and the colours correspond to the prime numbers above. The superscripts next to each number show how many times the total is prime. +2[7]4[7]6[6]8[5]10[6]12[6]14[5]16[5]18[5]20[4]1[7]✓✓✓✓✓✓✓3[7]✓✓✓✓✓✓✓5[6]✓✓✓✓✓✓7[5]✓✓✓✓✓9[6]✓✓✓✓✓✓11[6]✓✓✓✓✓✓13[5]✓✓✓✓✓15[5]✓✓✓✓✓17[5]✓✓✓✓✓19[4]✓✓✓✓Clearly, |S|=1⟹max|S∗|=7⟹min|O|=12 where S∈{P,Q} and S∪S∗=P∪Q. In particular, this yields the solutions [P,Q]={[{2},{1,3,5,9,11,15,17}][{4},{1,3,7,9,13,15,19}][{2,4,6,10,12,16,18},{1}][{2,4,8,10,14,16,20},{3}]due to the symmetry of ✓ in the table. Now, suppose |S|=2. It can be seen that |O| is minimised and is equal to 12 again when |S∗|=6, with S={4,10},{3,9} as they are the instances where ✓ appears in both columns/rows the most times. In particular, this yields the solutions [P,Q]={[{4,10},{1,3,7,9,13,19}][{3,9},{2,4,8,10,14,20}].This means that any further solutions with |S|>2 must contain either {4,10} or {3,9}. Again, due to symmetry, only the former case will be considered. Of the rows 1,3,7,9,13,19, the highest number of checkmarks that appear in columns other than 4,10 is 16, with 4 checkmarks at 1,3,7,13. Therefore, if |S|=3, max|S∗|=4 so min|O|=13>12. As no other column contains checkmarks at all of 1,3,7,13, it can be concluded that min|O|>12∀|S|>2. The result that min|O|=12 follows. ◻
No comments:
Post a Comment