Define a positive integer n to be totatively prime if the set of all positive integers less than n that are relatively prime to n contains no composite numbers. What is the largest totatively prime number?
For example, 9 is not totatively prime because 4 is less than 9 and is relatively prime to 9, but 4 is composite.
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.
The term generally used in mathematics for this type of number is a very round number . It's this sequence in the On-line Encyclopedia of Integer Sequences.
1 , 2 , 3 , 4 , 6 , 8 , 1 2 , 1 8 , 2 4 , 3 0
The fact 30 is the largest of this sequence was first proven in 1893 by the Ukranian mathematician Samuil Osipovich Shatunovsky .
I did a very similar solution, but instead of your lemma I noticed the exponential asymptotic behavior of the primorial function (product of primes), whose deduction follows from Chebyshev's theta's asymptotic bounds (which are easy too). So that's an alternative.
I noticed this result many years back, but wasn't able to prove it without computer verification of smaller cases. Thank you for the argument!
Let S C N C ( n ) denote the Smallest (positive) Composite Number that is Coprime to n . We note that n being totatively prime is equivalent to S C N C ( n ) > n . So it begs the question, what would S C N C ( n ) be?
First, let P ( n ) be the set of primes that don't divide n ; it is clear that the prime factorization of S C N C ( n ) must consist of powers of primes that lie P ( n ) . Let p ∗ be the smallest element of P ( n ) . If there exists q > p ∗ such that q divides S C N C ( n ) , then we notice that q S C N C ( n ) ∗ p ∗ is another composite number coprime to n , and it is smaller than S C N C ( n ) , which is a contradiction. So S C N C ( n ) must be a prime power of p ∗ ; in particular, it must be the smallest composite power of p ∗ , which is p ∗ 2 .
Next, let T be the set of all totatively prime numbers, and for a prime number p , let T p : = { n ∈ N : S C N C ( n ) = p 2 > n } . It is clear that T p ⊆ T , and it is also clear that any element of T belongs to T p for some prime p . One more observation: for any m ∈ T p , p must be the smallest prime that doesn't divide m ; this implies that m is divisible by every prime less than p , and is thus divisible by the product of such primes. This fact allows us to quickly identity the elements of T p by simply counting up the valid multiples of the product of all primes less than p . Below are the first few T p sets:
T 2 = { 3 } , T 3 = { 2 , 4 , 8 } , T 5 = { 6 , 1 2 , 1 8 , 2 4 } , T 7 = { 3 0 } , T 1 1 = ∅ .
Why is T 1 1 empty? Any element of T 1 1 has to be a positive multiple of 2 ∗ 3 ∗ 5 ∗ 7 = 2 1 0 , and hence greater than 2 1 0 . Yet, every element of T 1 1 must also be less than 1 2 1 ; there are no numbers that satisfy these conditions. In general, if p is the n th prime number -- denote this as q n -- and q 1 q 2 ⋯ q n − 1 > q n 2 , then T q n is empty. This fact, along with Bertrand's Postulate (actually a proven theorem regarding the distribution of primes), are enough to prove that beyond T 7 , all T p sets are empty; this shows that 3 0 is indeed the largest totatively prime number.
Proposition : Let q k be the k th prime. Then for all k ≥ 5 , q 1 q 2 ⋯ q k − 1 > q k 2 (hence T q k is empty for all k ≥ 5 ).
Proof by induction. We've already evaluated the base case, namely that 2 ∗ 3 ∗ 5 ∗ 7 = 2 1 0 > 1 2 1 = 1 1 2 . So, assume that q 1 q 2 ⋯ q k − 1 > q k 2 for k ≥ 5 . Then we also have that q 1 q 2 ⋯ q k − 1 > q k . Thus, q 1 q 2 ⋯ q k − 1 q k > q k q k .
Here's where Bertrand's postulate comes in. The statement of Bertrand's postulate is that for any natural number n , there exists a prime number s satisfying n < s < 2 n . In particular the set of primes S : = { s : q k < s < 2 q k } is nonempty and thus has a smallest element; this smallest element can be no other than q k + 1 . Since q k > 2 whenever k ≥ 5 , we have the following inequality chain:
q 1 q 2 ⋯ q k > q k q k > 2 q k > q k + 1 > q k ⟹ q 1 q 2 ⋯ q k > q k + 1 ⟹ q 1 q 2 ⋯ q k > q k + 1 2 .
With the inductive hypothesis proven, the proposition is true. Therefore, T p is empty for any prime greater than 7 , so 3 0 is the largest totatively prime number.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
|
Ans: 30
The best way to solve this type of problem is to rephrase the question. Since it's relative prime should not be composite, we would like our number to be not a relative prime to every composite number before it. We can do that by having a number that is a multiple of all the smaller primes, so if it's a multiple of two, all even are out as a possible relative prime. If it's a multiple of 3, the all number in the form of 3n will be out as well. Soon we'll find that in this form, the possible relative prime left are those complete power of the higher prime that isn't a part of the prime divisor of our number.
Ex. 2 3 5=30; the possible number that might counter this are numbers that are powers of the next prime like 7^2, 7^3, 11^2 etc. but so far this possibilities are all more than 30.
Let's try and move ahead and go with number 2 3 5*7=210; 11^2 is less than 210 and so this would be the composite relative prime of our number... As you move higher, the numbers that counter our number increase as well. So the least number is 30.
The revised question would then be "What is the largest number that is a multiple of consecutive primes without a power of a next higher prime that is less than the number". You can use this to intuitively get the answer.
Problem Loading...
Note Loading...
Set Loading...
Solution
Let us start with a simple observation: If n is totatively prime and n > 4 , then n is even. This is true because the only way to make g cd ( 4 , n ) different from 1 is to have n be even. Using the same logic, n > 9 implies that n can be divided by 3 , and in general, if n > p 2 for some prime p , then p divides n .
From this, we thus conclude that if n > p 2 for some p, then n is a multiple of the product of all primes smaller than or equal to p. Let us make a table from this:
Note that, when n > 4 9 , n has to be a multiple of 2 1 0 . But this is itself bigger than 1 1 2 , hence it would have to be a multiple of 2 3 1 0 , which is bigger than 1 3 2 , and so on. We can prove (using lemma below), that if $n>49$, then $n$ is bigger than the square of any prime. There is of course no natural number for which that holds, so n ≤ 4 9 .
Using the table, consider the case n > 2 5 . Then n has to be a multiple of 3 0 , and there is only one such multiple below 4 9 , 3 0 itself. Since any composite number below 3 0 has a factor ≤ 5 , no composite number below 3 0 is coprime to 3 0 , hence 3 0 is totatively prime. Since no number larger than it can be totatively prime, it follows that 3 0 is the largest totatively prime number.
Proof of lemma
We need to show that, if p ≥ 7 , then ∏ q < p q > p 2 .
Let p k denote the $k$-th prime. The theorem holds for k = 4 , as seen in the table above. Suppose it holds for p k with k ≥ 4 , then by Bertrand's postulate p k + 1 ≤ 2 p k . It then follows that ∏ q < p k + 1 q > 4 ∏ q < p k q > 4 p k 2 ≥ p k + 1 2 . Hence, it also follows for p k + 1 . From induction, the lemma follows.