M is the set of squares of the first 2 0 natural numbers:
M = 1 2 , 2 2 , 3 2 , 4 2 , … , 2 0 2 .
We say that n is a good number, if in any subset of M of size n there are two elements, a and b , such that a + b is a prime number. Find the smallest good number.
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Excellent solution!
Great answer and easy to understand. I'll admit I was a little stumped with this question but after seeing your solution I realised I had misread the question itself and went horribly wrong.
Let K = { 1 2 , 3 2 , 5 2 , … , 1 7 2 , 1 9 2 } . Since the sum of any two elements of K is not prime, n ≥ 1 1 .
Now let's show that n ≤ 1 1 . We partition M into 1 0 subsets of order 2 such that the sum of two elements in any subset is prime:
M = { 1 2 , 4 2 } ∪ { 2 2 , 3 2 } ∪ { 5 2 , 8 2 } ∪ { 6 2 , 1 1 2 } ∪ { 7 2 , 1 0 2 } ∪ { 9 2 , 1 6 2 } ∪ { 1 2 2 , 1 3 2 } ∪ { 1 4 2 , 1 5 2 } ∪ { 1 7 2 , 1 8 2 } ∪ { 1 9 2 , 2 0 2 } .
Any subset of M having 1 1 elements contains both elements of at least one of these 1 0 subsets.
The answer: n = 1 1
Atul, there is an ambiguity in your question i think; because you have given M to be the set of squares of numbers 1-20.But if we take {1^{2}, 2^{2}} as a set, then we have 5 as the answer.
Log in to reply
I don't understand what you are saying. Can you clarify?
To be picky, your question doesn't specify that a and b must be distinct. Therefore, you would have to use K = 2 2 , 4 2 , … , 2 0 2 rather than K = 1 2 , 3 2 , … , 1 9 2 , as 1 2 + 1 2 = 2 is prime.
Problem Loading...
Note Loading...
Set Loading...
We organize the numbers into 10 pairs as follows: 1 2 + 2 0 2 2 2 + 3 2 4 2 + 1 5 2 5 2 + 1 6 2 6 2 + 1 9 2 7 2 + 8 2 9 2 + 1 0 2 1 1 2 + 1 4 2 1 2 2 + 1 3 2 1 7 2 + 1 8 2 = 4 0 1 = 1 3 = 2 4 1 = 2 8 1 = 3 9 7 = 1 1 3 = 1 8 1 = 3 1 7 = 3 1 3 = 6 1 3 Notice that all of these sums are prime. Therefore, 11 is a good number--if we pick any subset of M of size 11, it will contain one of these pairs ( a , b ) , and a + b will be prime. However, any number n ≤ 1 0 is not good, because we can just take the subset of size n to be the first n even numbers. So 1 1 is the smallest good number.