HMMT 二月 2022 · ALGNT 赛 · 第 10 题
HMMT February 2022 — ALGNT Round — Problem 10
题目详情
英文原题
- Compute the smallest positive integer n for which there are at least two odd primes p such thatnν ( k !)Xp
( − 1) < 0 .
k =1
Note: for a prime p and a positive integer m , ν ( m ) is the exponent of the largest power of p thatpdivides m ; for example, ν (18) = 2. 3
解析
英文解析
- Compute the smallest positive integer n for which there are at least two odd primes p such thatnν ( k !)Xp
( − 1) < 0 .
k =1
Note: for a prime p and a positive integer m , ν ( m ) is the exponent of the largest power of p thatpdivides m ; for example, ν (18) = 2.
Proposed by: Krit Boonsiriseth 3
Answer: 229
ν ( k !)n pp
Solution: Say n is p -good if ( − 1) < 0, where p is an odd prime.
k =1
Claim. n is p -good iffk
2 i +1Xn + 1 = a p ,
i =0 iwhere a is an even integer with | a | < p .
i i
The proof of this claim will be deferred to the end of the solution as it is rather technical, and weν ( k !)n ppbelieve that it would be more illuminating for the reader to graph the function n 7 → ( − 1)
k =1
and examine its properties, instead of focusing on the formal proof.
2 k − 1 2 k
A consequence of the claim is that if n is p -good then p divides n + 1, and p < n + 1 < p forsome k ∈ Z .+
Now suppose n is p -good and q -good for distinct odd primes p < q . Then n + 1 ≥ pq > p , so we must 2
have n + 1 > p .3
Checking p = 3, the smallest potential n + 1’s are
• 2 · 3 − 2 · 3 = 48, which does not have a prime factor q > 3.3
• 2 · 3 = 54, which does not have a prime factor q > 3.3
• 2 · 3 + 2 · 3 = 60, which does not work because 60 is the wrong size for q = 5.3
5 3
The next value 2 · 3 − 2 · 3 − 2 · 3 is already bigger than 230.
Checking p = 5, the smallest potential n + 1’s are
• 2 · 5 − 4 · 5 = 230, which works for q = 23.3
For p ≥ 7 , n + 1 ≥ p > 230 , so 229 is the smallest value of n .3
It suffices to prove the claim. We argue via a series of lemmas. We introduce the notation of S ( a, b ) =
b − 1Pν ( k !)
( − 1) . Note that n is p -good if and only if S (0 , n + 1) ≤ 0.pk = a
Lemma 1. If n ≤ p , S (0 , n ) is the distance to the nearest even multiple of p .2
Proof. This follows straightforwardly from the fact that ν ( k !) = ⌊ k/p ⌋ for n ≤ p .2
ν ( a ) ν ( a !)pp p
Lemma 2. If a and b are positive integers so that b ≤ p , then S ( a, a + b ) = ( − 1) S (0 , b ).
Proof. Note that for 0 < k < b , ν ( a + k ) = ν ( k ), so it follows that ν (( a + k )!) = ν ( a !) + ν ( k !). Thep p p p presult follows.
Lemma 3. For any nonnegative integer a , ν (( ap )!) is the same parity as ν ( a !).2
p p
Proof. Note that ν (( ap )!) − ν ( a !) = ap + a = a ( p + 1), which is even as p is odd.2
p p
2 2 ν ( a !)
Lemma 4. For a nonnegative integer a , S ( ap , ( a + 1) p ) = p ( − 1) .p
Proof. Combine Lemmas 1, 2, and 3.
Lemma 5. For a nonnegative integer a , S (0 , ap ) = p s (0 , a ).2
Proof. Apply Lemma 4 and sum.
2 2 ν ( a !)
Lemma 6. If a, b are nonnegative integers with b < p , then S (0 , ap + b ) = p s (0 , a )+( − 1) S (0 , b ).p
Proof. Combine Lemmas 2, 3, and 5.
2 i +1 k p
We are now ready to prove the claim. Call a nonnegative integer neat if it can be written as a pii =0
for integers a with | a | < p . For a nonnegative integer n , let P ( n ) be the following statements:
i i
• S (0 , n ) ≥ 0.
• S (0 , n ) = 0 if and only if n is neat. In this case, ν ( n !) is even.
• S (0 , n ) = 1 if and only if n + 1 is neat or n − 1 is neat. If n + 1 is neat, then ν ( n !) is odd. Ifppn − 1 is neat, then ν ( n !) is even.
It suffices to show P ( n ) for all n , which we will prove by induction on n . The base case of n = 0 ispobvious.
2 2
Now take some n > 0 and suppose n = ap + b for 0 ≤ b < p . Lemma 6 tells us that S (0 , n ) =
ν ( a )
p s (0 , a ) + ( − 1) S (0 , b ). Since 0 ≤ S (0 , b ) ≤ p (by Lemma 1), the only way for S (0 , n ) to be lesspν ( a )
than 0 is if S (0 , a ) = 0 and ( − 1) = − 1, which is impossible since P ( a ) holds.p
There are two ways for S (0 , n ) = 0 to be true. The first case is that S (0 , a ) = S (0 , b ) = 0, whichimplies by P ( a ) and Lemma 1 that a is neat and b is a multiple of 2 p . This captures the neat numberswith a ≥ 0. Note that in this case ν ( n !) = ν (( ap )!) + ν ( b !) (by the same logic as Lemma 2), which 2
0 p p pis even as ν (( ap )!) is even by P ( a ) and Lemma 3 and ν ( b !) = b/p which is even.2
p pν ( a !)
The second way for S (0 , n ) to be 0 is if S (0 , a ) = 1, S (0 , b ) = p , and ( − 1) = − 1. By the inductivephypothesis, this is equivalent to a + 1 being neat and b being an odd multiple of p . This capturesexactly the neat numbers with a < 0. Also, ν ( n !) = ν (( ap )!) + ν ( b !), which is even as ν ( a !) is 2
0 p p p podd and ν ( b !) is odd.
Analyzing the possibilities where S (0 , n ) = 1 is almost exactly the same as the above, so we will omitpit here. We encourage the reader to fill in the details.