Largest value of n n

Find the largest value of n n such that the complementary set of any subset with n n elements of { 1 , 2 , . . . , 1984 } \{ 1,2,...,1984 \} contains at least two elements that are relatively prime.

This is a part of Number Theory Plus


The answer is 991.

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.

3 solutions

Steven Yuan
Mar 27, 2018

For any n > 991 , n > 991, consider the subset { 1 , 3 , 5 , , 1983 , 2 , 4 , , 2 ( n 992 ) } \{1, 3, 5, \cdots, 1983, 2, 4, \cdots, 2(n - 992)\} consisting of n n elements. The complement of this set consists of only even integers, which are not relatively prime with each other. Thus, we must have n 991. n \leq 991.

Now, we show that n = 991 n = 991 is, in fact, the maximum possible value of n . n. Split the set { 1 , 2 , 3 , , 1984 } \{1, 2, 3, \cdots, 1984\} into 992 pairs of consecutive integers:

( 1 , 2 ) , ( 3 , 4 ) , ( 5 , 6 ) , , ( 1983 , 1984 ) . (1, 2), (3, 4), (5, 6), \cdots, (1983, 1984).

For any subset of size 991, at most 991 of these pairs will have at least one integer in such a subset. This means that there exists a pair of consecutive integers that do not belong in the subset but that does belong in the complement. Since pairs of consecutive integers are always relatively prime, there always exists two integers in the complement that are relatively prime. Therefore, n = 991 n = \boxed{991} is the maximum possible value of n . n.

Unexpectedly simple solution. I was complicating things.

Srikanth Tupurani - 2 years, 7 months ago

Let m be the number of elements of the complementary set which means m+n=1984. If we want to find the max value of n then m must be minimum. So we just need to find the minimum number of elements from m where it contains at least 2 elements that are relatively prime. If I take the even number : 2,4,6,....,1984 and one random odd number there must be at least 2 elements that are relatively prime so m min is 993. N max= 1984- m min , N max = 1984-993, N max=991

I am sorry for my grammatical mistake because I am not good at English

Hardik Kalra
Jul 11, 2019

I have a really simple solution to this problem.

Well, because we are dealing with complements, let’s consider the complement (nearly) of this problem.

Let’s try to find the smallest n such that it contains atleast two elements that are relatively prime.

Now, the smallest n is actually 993.

Here’s why:

Consider the subset S = { 2 , 4 , , 1984 } S = \{2, 4, \cdots, 1984\} . Clearly, no two elements are co-prime.

Now, if we consider any other subset S, to maintain this property of no two elements being co-prime to each other, there has to exist atleast one pair ( a i , a j ) , i j (a_i, a_j), i \neq j where a i , a j S a_i, a_j \in \mathbb S such that g c d ( a i , a j ) g c d ( a k , a l ) 0 k l S gcd(a_i, a_j) | gcd(a_k, a_l) \forall 0 \leq k \leq l \leq |S| . Now, quite obviously, S |S| will be maximum when g c d ( a i , a j ) = 2 gcd(a_i, a_j) = 2 (which is the above set) M I N ( n ) = 993 \implies MIN(n) = 993 .

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...