Pairwise coprime

Find the smallest natural k such that among any k distinct and pairwise coprime naturals smaller than 2018, a prime can be found.

Note: 1 is not considered a prime here


The answer is 16.

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.

2 solutions

Intuitively, pay attention that there are 14 14 primes less than 2018 45 \sqrt{2018} \approx 45 . If we try to choose numbers, in the range 1 1 to 2018 2018 , wisely, such that we neither take a prime nor a number that is made of more than a single prime, we see that 15 15 is the most we can achieve. The set is A = { 1 , 2 2 , 3 2 , 5 2 , 7 2 , 1 1 2 , 1 3 2 , 1 7 2 , 1 9 2 , 2 3 2 , 2 9 2 , 3 1 2 , 3 7 2 , 4 1 2 , 4 3 2 } A=\{1,2^2,3^2,5^2,7^2,11^2,13^2,17^2,19^2,23^2,29^2,31^2,37^2,41^2,43^2\} . Any number that is not in the set would be either a prime, in the range 1 1 to 2018 2018 , or is relatively not prime with respect to at least one member of the set.

Great solution! Instead of 2 2 2^2 , you could also take 2 47 2 \cdot 47 , 2 53 2 \cdot 53 , ... until 2 997 2 \cdot 997 . So, do you know how many distinct such sets of 15 elements there are?

Henry U - 2 years, 3 months ago

Log in to reply

I really did not go that far, Henry. But if you have an idea, I would happily attach it to the solution.

A Former Brilliant Member - 2 years, 3 months ago

Log in to reply

We can work backwards to make the process of counting easier. Every element of the set must be the product of exactly 2 primes, one of which has to be the same as in your example. These primes are p n q n p_n \cdot q_n .

For 43 q 14 43 \cdot q_{14} , the only possibility is q 14 = 43 q_{14}=43 since 43 47 > 2018 43 \cdot 47 > 2018 .

For 41 q 13 41 \cdot q_{13} , only 47 is possible, so q 13 = 47 q_{13}=47 .

For 37 q 12 37 \cdot q_{12} , { 47 , 53 } \{47,53\} are possible, but only q 12 = 53 q_{12}=53 hasn't been used.

For 31 q 11 31 \cdot q_{11} , { 47 , 53 , 59 , 61 } \{47,53,59,61\} are possible, q_{11} \in \{59,61} , so there are 2 choices.

For 29 q 10 29 \cdot q_{10} , there are the choices { 47 , 53 , 59 , 61 , 67 } \{47,53,59,61,67\} , q 10 { 59 , 61 , 67 } q_{10} \in \{59,61,67\} , 3 choices but one of them is q 11 q_{11} , so actually there are 2 choices.

We would continue in the same way for all primes in A A . For the prime p n A p_n \in A (with p 1 = 2 p_1=2 , p 14 = 43 p_{14}=43 ), there are π ( 2018 p n ) π ( 43 ) \pi \left( \frac {2018}{p_n} \right) - \pi(43) choices for q n q_n but 13 n 13-n of them have already been used, so there actually are

π ( 2018 p n ) π ( 43 ) + n 13 \pi \left( \frac {2018}{p_n} \right) - \pi(43) +n-13

distinct possibilities for q n q_n .

To find the total number of possible sets, we only have to multiply this value for all 1 n 13 1 \leq n \leq 13 .

n = 1 13 ( π ( 2018 p n ) π ( 43 ) + n 13 ) \displaystyle \prod_{n=1}^{13} \left( \pi \left( \frac {2018}{p_n} \right) - \pi(43) +n-13 \right)

Wolframalpha gives me an answer of 13,771,929,600,000.

Henry U - 2 years, 3 months ago

Passer-by: Another way, you can change 2^2 to any number that is divisible by 2 but not by 3;5;7;...;43 and is smaller than 2018 (2^3; 2^4;...; 2^11; 2^3.47; 2^2.53;... are all possible too), and then 3^2, 5^2,... urgh... too complicated to me :P so if it were me, I'd pass :D .

Phượng Mai Liên Hồng - 2 years, 2 months ago
Chris Callahan
Mar 15, 2019

Pick any natural m 2 m \geq 2 . Let { a i } i = 1 m \{a_{i}\}_{i=1}^{m} be an increasing sequence of distinct, not prime, pairwise coprime naturals. Let { p i } i = 1 \{p_{i}\}_{i=1}^{\infty} be the sequence of primes in increasing order. Let b 1 = 1 b_{1} = 1 , and for 2 i m 2 \leq i \leq m let b i b_{i} be the smallest prime dividing a i a_{i} (the existence of b i b_{i} follows from every natural greater than one having at least one prime divisor, together with the well-ordering principle). So, b 2 , . . . , b m b_{2},...,b_{m} is a sequence of m 1 m - 1 prime numbers. Suppose that for each 2 i m 2 \leq i \leq m we have b i < p m 1 b_{i} < p_{m - 1} . If m = 2 m = 2 , this implies b 2 b_{2} is a prime smaller than 2 2 , a contradiction. If m > 2 m > 2 , since there are only m 2 m-2 primes less than p m 1 p_{m-1} , the pigeonhole principle guarantees 2 i , j m 2 \leq i,j\ \leq m such that i j i \neq j but b i = b j b_{i} = b_{j} . But it follows then that a i a_{i} and a j a_{j} share a prime factor, contradicting that they are pairwise coprime. Therefore there must actually be 2 k m 2 \leq k \leq m such that b k p m 1 b_{k} \geq p_{m-1} . Since b k b_{k} divides a k a_{k} we can write a k = n b k a_{k}=nb_{k} for some natural n n . Since a k a_{k} is not prime, it follows that n > 1 n > 1 , so that we can pick a prime p p dividing n n (note that we hence have p n p \leq n ). But it follows that p p also divides a k a_{k} , and therefore b k p n b_{k} \leq p \leq n (since b k b_{k} was chosen to be the smallest prime dividing a k a_{k} ). Therefore, a k = n b k b k 2 p m 1 2 a_{k} = nb_{k} \geq b_{k}^{2} \geq p_{m-1}^{2} . Since { a i } i = 1 m \{a_{i}\}_{i=1}^{m} is increasing, it follows that a m a k p m 1 2 a_{m} \geq a_{k} \geq p_{m-1}^{2} .

Fix any natural n > 1 n > 1 . Suppose that m 2 m \geq 2 and p m 1 2 n p_{m-1}^{2} \geq n . Then, if it were possible to choose m m distinct, not prime, and pairwise coprime naturals smaller than n n , it would follow from the above argument that the largest of these (say k k ) satisfies n > k p m 1 2 n > k \geq p_{m-1}^{2} , contradicting that p m 1 2 n p_{m-1}^{2} \geq n . Therefore, in fact, every choice of m m distinct and pairwise coprime naturals smaller than n n must include at least one prime.

Conversely, if every choice of m m distinct and pairwise coprime naturals smaller than n n must include at least one prime, then we must have m > 1 m > 1 . Further, since 1 , p 1 2 , . . . , p m 1 2 1,p_{1}^{2},...,p_{m-1}^{2} is asequence of m m distinct and pairwise coprime naturals with no primes, it must contain an element at least as large as n. Since p m 1 2 p_{m-1}^{2} is its largest element, it follows that p m 1 2 n p_{m-1}^{2} \geq n .

So, finally, it follows that every choice of m m distinct and pairwise coprime naturals smaller than n n contains a prime if and only if m > 1 m > 1 and p m 1 2 n p_{m-1}^{2} \geq n . So, applying the result to this problem, we simply need to find the smallest m > 1 m > 1 with p m 1 2 2018 p_{m-1}^{2} \geq 2018 , which is m = 16 m = 16 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...