Problem:
Compute the smallest positive integer for which there are at least two odd primes such that
Note: for a prime and a positive integer , is the exponent of the largest power of that divides ; for example, .
Proposed by: Krit Boonsiriseth
Problem:
Compute the smallest positive integer for which there are at least two odd primes such that
Note: for a prime and a positive integer , is the exponent of the largest power of that divides ; for example, .
Proposed by: Krit Boonsiriseth
Solution:
Say is -good if , where is an odd prime.
Claim. is -good iff
where is an even integer with .
The proof of this claim will be deferred to the end of the solution as it is rather technical, and we believe that it would be more illuminating for the reader to graph the function and examine its properties, instead of focusing on the formal proof.
A consequence of the claim is that if is -good then divides , and for some .
Now suppose is -good and -good for distinct odd primes . Then , so we must have .
Checking , the smallest potential 's are
- , which does not have a prime factor .
- , which does not have a prime factor .
- , which does not work because 60 is the wrong size for .
The next value is already bigger than 230.
Checking , the smallest potential 's are
- , which works for .
For , so 229 is the smallest value of .
It suffices to prove the claim. We argue via a series of lemmas. We introduce the notation of . Note that is -good if and only if .
Lemma 1. If is the distance to the nearest even multiple of .
Proof. This follows straightforwardly from the fact that for .
Lemma 2. If and are positive integers so that , then .
Proof. Note that for , so it follows that . The result follows.
Lemma 3. For any nonnegative integer is the same parity as .
Proof. Note that , which is even as is odd.
Lemma 4. For a nonnegative integer .
Proof. Combine Lemmas 1, 2, and 3.
Lemma 5. For a nonnegative integer .
Proof. Apply Lemma 4 and sum.
Lemma 6. If are nonnegative integers with , then .
Proof. Combine Lemmas 2, 3, and 5.
We are now ready to prove the claim. Call a nonnegative integer neat if it can be written as for integers with . For a nonnegative integer , let be the following statements:
- .
- if and only if is neat. In this case, is even.
- if and only if is neat or is neat. If is neat, then is odd. If is neat, then is even.
It suffices to show for all , which we will prove by induction on . The base case of is obvious.
Now take some and suppose for . Lemma 6 tells us that . Since (by Lemma 1), the only way for to be less than 0 is if and , which is impossible since holds.
There are two ways for to be true. The first case is that , which implies by and Lemma 1 that is neat and is a multiple of . This captures the neat numbers with . Note that in this case (by the same logic as Lemma 2), which is even as is even by and Lemma 3 and which is even.
The second way for to be 0 is if , and . By the inductive hypothesis, this is equivalent to being neat and being an odd multiple of . This captures exactly the neat numbers with . Also, , which is even as is odd and is odd.
Analyzing the possibilities where is almost exactly the same as the above, so we will omit it here. We encourage the reader to fill in the details.