For every prime number p and non-negative integer k , define A p ( k ) to be the number of positive integers n such that p k ∣ n ! but p k + 1 ∣ n ! .
Let A p be the set of values of A p ( k ) . How many (distinct) elements are there in A 2 0 1 7 ?
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.
@Muhammad Rasel Parvej Writing up the proof this way makes it very clear what the main steps are, and how they lead to the conclusion. It also shows why this is a natural thought progression in working through the problem, which isn't too common for olympiad problems.
These ideas are all presented in your proof, but it's hard to tease out what is used and when, or what the impact is.
Log in to reply
Thanks! I'll try to present my proof this way from now.
Log in to reply
Not all proofs work well in this way. In this case, because each step was small and natural, I felt that this presentation made a lot more sense. Even if someone didn't understand the proof of a claim, at the very least if they agree with the claim, they can skip and move on to the next point.
For A p ( 1 ) , n = p , p + 1 , . . . . 2 p − 1 .
Log in to reply
Yup, was fixing / tweaking. E.g. I removed the p ≥ 3 condition. I initially threw it in just in case the A p ( 1 ) didn't work out. After reviewing, p = 2 is still fine, so I added that back in.
Let me know if there are any other improvements.
There are 3 distinct values of A p ( k ) , for any prime p . The distinct values are: 0 , p − 1 and p .
Let's first see when A p ( k ) can be 0 .
Consider the integers n = x × p m for some integers m > 1 and x ≥ 1 , with p ∣ x . Also assume that a ≥ 0 is the highest exponent of p such that p a ∣ ( n − 1 ) ! . Then n ! is simultaneously the FIRST factorial that is divided by p a + 1 , p a + 2 , … … … and p a + m . Now, it is easy to see that A p ( k ) = 0 for k = a + 1 , a + 2 , … … … and a + m − 1 .
Now how A p ( k ) can be p ?
Recall the argument for [When A p ( k ) can be 0 ]. It's obvious that p k ∣ n ! but p k + 1 ∣ n ! for k = a + m . Notice that the next multiple of p after n = x × p m is n + p = x × p m + p . As the number of integers w such that n ≤ w ≤ ( n + p − 1 ) is p and for each w , p a + m ∣ w ! but p a + m + 1 ∣ w ! , and p a + m ∣ ( n − 1 ) ! , and p a + m + 1 ∣ ( n + p ) ! , then A p ( k ) = p for k = a + m .
I believe it's already clear that A p ( k ) can't exceed p .
Then when A p ( k ) can be ( p − 1 ) ?
Consider the case when k = 0 . Then we have n = 1 , 2 , … … … , ( p − 1 ) such that p k = p 0 = 1 ∣ n ! but p 0 + 1 = p 1 ∣ n ! , and p 0 + 1 = p 1 ∣ p ! . So, A p ( 0 ) = ( p − 1 ) − 1 + 1 = p − 1 . Why not n = 0 ? Notice, in the problem statement, n is one of the positive integers (excluding 0), and this effect of n being a positive integer on the value of A p ( 0 ) is chosen by design. Of course, if you change the domain of n to the set of non-negative integers, then the value of A p ( k ) will be p for k = 0 . Then their would be only 2 distinct values of A p ( k ) .
We are just one-step behind to Completeness , which we can arrive in just by proving the fact that:
A p ( k ) is either 0 or p for k ≥ 1 .
Let's prove it.
From the argument for [When A p ( k ) can be 0 ], we can see, A p ( k ) can be 0 for k ≥ 1 , since each of (a+1), (a+2), … … … and a + m − 1 is greater than 1 (as a ≥ 0 . Now it'll suffice to show that: For k ≥ 1 , A p ( k ) = 0 ⟹ A p ( k ) = p .
If A p ( k ) = 0 implies there is a positive integer n such that p k ∣ n ! but p k + 1 ∣ n ! . Now there arises two distinct cases.
CASE-I: n is a multiple of p : Then p k ∣ ( n − 1 ) ! . But for each w , with n ≤ w ≤ ( n + p − 1 ) , p k ∣ w ! but p k + 1 ∣ w ! , and p k + 1 ∣ ( n + p ) ! . So, A p ( k ) = ( n + p − 1 ) − n + 1 = p .
CASE-II: n is NOT a multiple of p :Then
p k ∣ ( n − 1 ) ! . If n − 1 is a multiple of p , then the argument is reduced to CASE-I. If not, then
p k ∣ ( n − 2 ) ! . If n − 2 is a multiple of p , then the argument is reduced to CASE-I. If not, then
… … …
… … …
… … …
p k ∣ ( n − x ) ! ; now ( n − x ) is a multiple of p , then the argument is reduced to CASE-I. As n ≥ p whenever p k ∣ n ! but p k + 1 ∣ n ! for k ≥ 1 , and for any prime p and any positive integer n , there is an x , with 0 ≤ x < p , such that ( n − x ) is multiple of p , we can be sure that ( n − x ) is a positive integer and thus, the factorial is defined.
That completes the proof:
There are 3 distinct values of A p ( k ) , for any prime p . The distinct values are: 0 , p − 1 and p .
So, ∣ A 2 0 1 7 ∣ = 3 .
These are the right ideas. Can you focus on making the presentation cleaner / more concise?
For example, a lot of the argument revolves around "n, n+1, n-1, n+p" that was repetitively done up. This could be shortend into 1 explanatory paragraph.
Log in to reply
I see. But that repeats only one times. And I can't decide how start to shorten this. Can't we leave this so?
Or any hint to do so, please?
Problem Loading...
Note Loading...
Set Loading...
We will solve this for a general prime p . There are 3 distinct values for A p ( k ) , namely 0 , p − 1 , p .
Recall that for a prime p and a positive integer n , the number of prime powers of p that divides n ! is
k p ( n ) = ⌊ p n ⌋ + ⌊ p 2 n ⌋ + ⌊ p 3 n ⌋ + …
First, we will show that these 3 values exist.
The values of A p ( 0 ) satisfy p 0 ∣ n ! and p 1 ∣ n ! , so n = 1 , 2 , … , p − 1 . There are p − 1 of them.
The values of A p ( 1 ) satisfy p 1 ∣ n ! and p 2 ∣ n ! , so n = p , p + 1 , … , 2 p − 1 . There are p of them.
The values of A p ( p ) satisfy p p ∣ n ! and p p + 1 ∣ n ! . We know that n < p 2 is not sufficient, since k p ( p 2 − 1 ) = p − 1 . However, k p ( p 2 ) = p + 1 . This means that if p p ∣ n ! , then p p + 1 ∣ n ! . Thus, there are 0 of them.
Now, we show that that's all there is. We make the following observations:
Claim: If m p ≤ n < ( m + 1 ) p for some m ≥ 1 , then k p ( n ) = k p ( m p ) .
This follows because ⌊ p i n ⌋ = ⌊ p i m p ⌋ for all i , so their sums are the same.
In the case of m = 0 , meaning 0 < n < p , then we have p − 1 positive integers in A p ( 0 ) . Henceforth, let m ≥ 1 .
Since k p ( m p ) = k p ( m p + 1 ) = … = k p ( m p + p − 1 ) , this implies that A p ( k ) must be a multiple of p . Henceforth, we can simply consider the values of k p ( m p ) . For each p k ∣ ( m p ) ! and p k + 1 ∣ ( m p ) ! , then there are p values in A p ( k ) .
Claim: k p ( m p ) is an increasing function in m .
This is true because the floor function is an increasing function, and ⌊ p ( m + 1 ) p ⌋ ≥ ⌊ p m p ⌋ + ⌊ p p ⌋ = ⌊ p m p ⌋ + 1 > ⌊ p m p ⌋ .
Since k p ( m p ) is an increasing function, this means that there is at most 1 value of m p that satisfies p k ∣ ( m p ) ! and p k + 1 ∣ ( m p ) ! . Hence, by observation 3, A p ( k ) = 0 or p for k ≥ 1 .
In conclusion, we have A p ( k ) ∈ { 0 , p − 1 , p } .
The first paragraph tells us that { 0 , p − 1 , p } ⊂ { A p ( k ) } . Hence, { A p ( k ) } = { 0 , p − 1 , p } .
This establishes that the answer is at most 3.