Difference between revisions of "2022 IMO Problems/Problem 5"
(→Solution 3(Unfinished)) |
(→Solution 3(Unfinished)) |
||
Line 97: | Line 97: | ||
Case 1.2: <math>a < k</math> | Case 1.2: <math>a < k</math> | ||
− | Note that <math>a = k</math> will lead a contradiction in the modular arithmetic. Note that <math>k \geq 7</math>. We have <math>a^{a} - a \leq 7q - 1</math>. Notice <math>a^{a} - a < k^{k} - k</math>. It is immediately obvious that only <math>7q - 1 \leq k^{k} - k</math> will hold solutions(If <math>7q - 1 > k^{k} - k</math>, we can use a similar trick as above to prove that nothing will work). But note that <math>k^{k} - k \geq 7^{7} - 7</math> which means <math>7q - 1 \leq 7^{7} - 7</math>. It is now obvious that <math>q \leq 7^{6} - \frac{6}{7}</math> \implies <math>q \leq 7^{5}</math>. Recall that <math>b \geq a</math>. Thus, <math>k - 1 \geq a</math>.(I have not finished proving | + | Note that <math>a = k</math> will lead a contradiction in the modular arithmetic. Note that <math>k \geq 7</math>. We have <math>a^{a} - a \leq 7q - 1</math>. Notice <math>a^{a} - a < k^{k} - k</math>. It is immediately obvious that only <math>7q - 1 \leq k^{k} - k</math> will hold solutions(If <math>7q - 1 > k^{k} - k</math>, we can use a similar trick as above to prove that nothing will work). But note that <math>k^{k} - k \geq 7^{7} - 7</math> which means <math>7q - 1 \leq 7^{7} - 7</math>. It is now obvious that <math>q \leq 7^{6} - \frac{6}{7}</math> \implies <math>q \leq 7^{5}</math>. Recall that <math>b \geq a</math>. Thus, <math>k - 1 \geq a</math>. We now have <math>k - 1 \mid a(a^{a - 1} - 1) \implies </math>k - 1 \mid a<math> or </math>k - 1 \mid a^{a - 1} - 1<math>. Notice this just comes from </math>a^{a} - a = (k - 1)!<math> as </math>b = k - 1<math>. But if </math>k - 1 \mid a<math>, and because </math>a \leq k - 1<math>, it must be that </math>a = k - 1 = b<math>. Therefore, we have </math>a^{a} - a = a!<math> which already tells us that </math>a = 2<math> is the only solution, but we have already found this solution. Next, we move on to the case where </math>a^{a - 1} - 1 \equiv 0(\mod k - 1)<math>. One thing we found was that </math>q \leq 7^{5}<math> which came from </math>k \geq 7<math>. We will use this later. First, we consider if </math>a - 1<math> is prime. If it is, we can apply Fermat's Little Theorem to get </math>a^{a - 1} \equiv a(\mod a - 1) \implies <math>a^{a - 1} - 1 \equiv 0(\mod a - 1)</math>. But this tells us that if <math>k - 1 \mid a^{a - 1} - 1</math>, then <math>a - 1 \mid a^{a - 1} - 1</math> considering if <math>a - 1</math> is prime. Note that if <math>a = k</math>, this is impossible because Case 1.2 specifically considers <math>a < k</math>. Therefore, we have that <math>b</math> is actually bigger than at least one prime and we know one of them is <math>a - 1</math>. Recall <math>b! = kq - 1</math>. We have <math>(k - 1)! = kq - 1</math>. We also have <math>(a - 1)! < kq - 1</math>. Recall that if this was true, <math>a \mid kq - 1</math>. Therefore, we can write <math>kq - 1 = az</math>. Thus, <math>(a - 1)! < az</math>. Because <math>k \geq 7</math>, this tells us that <math>az \geq 7q - 1</math>. Now, we recall that <math>(a - 1)! < 7q - 1 \implies </math>(\frac{7q - 1}{z} - 1)! < 7q - 1<math>. We note that </math>(\frac{7q - 1}{z} - 1)! < 7q<math>. Note that </math>q \leq 7^{5}<math>. We are assuming that if there exists a solution to Case 1.2, there should exist a solution to this new inequality and thus, there should exist a solution to when </math>q = 7^{5}<math>. We see that </math>(\frac{7^{6} - 1}{z} - 1)! < 7^{6}<math>. Note that </math>z \leq 7<math> because it divides </math>k<math> and we are considering if equality holds, then </math>k = 7<math>. But this is obviously not true! Therefore, if </math>a - 1<math> is prime and </math>a < k<math>, there exists no solutions. Now, we go to </math>a - 1<math> is composite. Recall that </math>k<math> itself is a prime. </math>a - 1 < k - 1<math>. (I have not finished proving this case.) |
− | Case 1.3: <math>b< | + | Case 1.3: </math>b<math> is anything but </math>k - 1<math> where </math>k<math> is a prime |
− | Recall that we have <math>a^{a} - a = b!< | + | Recall that we have </math>a^{a} - a = b!<math>. Notice that </math>b = k<math> will lead to a contradiction because </math>a \geq 3 \implies a^{a} - a<math> is composite. Therefore, </math>b = k + \alpha<math> where </math>\alpha<math> is a constant of anything but </math>-1, 0<math>. Let </math>r<math> be a prime that divides </math>(k + \alpha)!<math>. Thus, </math>r \mid a^{a} - a = a(a^{a - 1} - 1)<math>. Therefore, we know that </math>r \mid k + \alpha - i<math> for </math>0 \leq i \leq k + \alpha - 1<math>. We also know that </math>r \mid a<math> or </math>r \mid a^{a - 1} - 1<math>. If we consider </math>r \mid a<math>, because </math>r<math> is a prime, </math>r = a \implies a<math> is a prime number. In other words, we have just proven that if there exists a prime </math>r<math> that divides </math>b!<math> where </math>b = k + \alpha<math>, then there also may exist a prime </math>a<math> that also divides </math>b!<math>. But because </math>b \geq a<math>, </math>a = b, b - 1, ..., 1<math>. Therefore, at least one of </math>b - j<math> where </math>0 \leq j \leq b - 1<math>, must be a prime number. Now, we have </math>a^{a} - a \leq b^{b} - b<math>. Let us consider the highest power of prime </math>a<math> in </math>b!<math>. We need to find </math>v_a(b!)<math>. By Legendre's Formula, <cmath>e_p(n!)=\sum_{i=1}^{\infty} \left\lfloor \dfrac{n}{p^i}\right\rfloor =\frac{n-S_{p}(n)}{p-1}</cmath>. We just need to find that </math>\sum_{i=1}^{\infty} \left\lfloor \dfrac{b}{a^i}\right\rfloor = a<math>. If </math>b<math> is a multiple of </math>k<math>, this will not hold true simply be plugging in. Even if </math>b = a + \beta<math>, because the sum is finite, it would imply </math>\beta = 0<math> which goes back to the case where </math>b<math> is a multiple of </math>a<math>. Therefore, the only condition for which this can hold is if </math>a = 1<math> which contradicts the part where </math>1<math> must divide </math>b - i<math> because </math>1<math> is not prime. We now have to prove that this case doesn't hold even if </math>r \mid a^{a - 1} - 1<math>. In this case, </math>a<math> is not necessarily prime. We can apply Fermat's Little Theorem if we assume </math>a - 1<math> is a prime. Then, </math>a^{a - 1} \equiv a(\mod a - 1)<math>. This tells us that </math>a^{a - 1} - 1 \equiv 0(\mod a - 1)<math> which tells us that </math>a - 1<math> is another prime that divides it. Therefore, there are two primes that divide </math>a^{a - 1} - 1<math> and those are </math>r<math> and </math>a - 1<math> if </math>a - 1<math> is a prime. We conclude that either </math>r = a - 1<math> or </math>a^{a - 1} - 1<math> has more than one prime factor. If we consider </math>r = a - 1<math>, we can apply Legendre's again and see that it gives us the same result. If we have </math>a^{a - 1} - 1<math> has at least two distinct prime factors and two of them are </math>r<math> and </math>a - 1<math>. This can only occur if </math>a = 2<math>(The other case will lead to a - 1 being composite which is not what we assumed). But we already considered this case. Therefore, we don't have a new solution here. Now, onto when </math>a - 1<math> is not prime.(I have not finished proving this case.) |
− | Case 2: <math>p < b < a< | + | Case 2: </math>p < b < a<math> |
− | If we go back to the original equation of <math>a^{p} = b! + p< | + | If we go back to the original equation of </math>a^{p} = b! + p<math>, then we see </math>p \mid b! + p<math> and thus </math>p \mid a^{p}<math>. Therefore, </math>a^{p} \equiv 0(\mod p)<math>. Fermat's Little Theorem states that </math>a^{p} \equiv a(\mod p)<math> where </math>p<math> is a prime. We have that exact same case here and thus this cannot hold. |
− | Case 3: <math>b < p< | + | Case 3: </math>b < p<math>, </math>b < a<math> |
− | If <math>b = p< | + | If </math>b = p<math>, the same story as Case 2 would apply so we can discard that case. Let's consider a stronger inequality: </math>b < p < a<math> or </math>b < a < p<math> (Note: If a = p, we would get our original two triples so we can discard this case) |
− | Case 3.1: <math>b < p < a< | + | Case 3.1: </math>b < p < a<math> |
− | This shows that <math>a^{a} > a! + a< | + | This shows that </math>a^{a} > a! + a<math>. We will show this holds for all integers </math>a \geq 3<math>. This is our base case. We will prove this by induction. We want to show that if </math>a^{a} > a! + a<math> holds true for all integers </math>a \geq 3<math>, then it must hold for all integers such that </math>(a + 1)^{a + 1} > (a + 1)! + (a + 1)<math>. We have </math>(a + 1)^{a + 1} = (a + 1)^{a} \cdot (a + 1) > a^{a} \cdot (a + 1)<math>. By our inductive statement, </math>a^{a} \cdot (a + 1) > (a! + a)(a + 1) = (a + 1)! + a(a + 1)<math>. Thus, we wish to prove </math>(a + 1)! + a(a + 1) > (a + 1)! + (a + 1)<math>. Remember, our base case was </math>a \geq 3<math> and thus for the inductive case, </math>a + 1 \geq 3<math> which means </math>a \geq 2<math> which satisfies this inequality. Therefore, we have proved this case. |
− | We have shown that if <math>b < p < a< | + | We have shown that if </math>b < p < a<math>, then </math>a \geq 3<math>. Then, it is obvious that </math>b! + p \geq 3^{p} \implies b! \geq 3^{p} - p<math>. Since </math>b < p \implies b! < p! \implies p! > 3^{p} - p<math>. We see that this only holds true for </math>p \geq 7<math>. But we have shown above that no prime above </math>7<math> will satisfy the original equation. Therefore, this inequality doesn't hold. |
− | Case 3.2: <math>b < a < p< | + | Case 3.2: </math>b < a < p<math> |
− | The same story applies as Case 3.1 but in this case <math>p \geq 3< | + | The same story applies as Case 3.1 but in this case </math>p \geq 3<math>. This will mean </math>a^{3} = b! + 3, a^{5} = b! + 5<math> and so on. We note that </math>p \geq 7<math> will not work based on our proof for Case 2. Thus, we just need to check </math>a^{5} = b! + 5<math> as the previous case led to a solution and unique solution of </math>a = 3<math>. Note that </math>b^{5} < b! + 5<math>. In fact, we will show this only holds when </math>b = 0, 1<math>. We will prove this by contradiction. Assume </math>b^{5} < b! + 5<math> for </math>b \geq 2<math>. We have </math>b^{5} - 5 < b! \implies b^{5} - 5 < b(b - 1)(b - 2)...(2)(1)<math>. Dividing by </math>b^{5}<math> gives </math>1 - \frac{5}{b^{5}} < \frac{b - 1}{b} \cdot \frac{b - 2}{b} \cdot \frac{b - 3}{b} \cdot \frac{b - 4}{b} \cdot (b - 5)(b - 6)...(2)(1)<math>. Note that we can write this as </math>1 - \frac{5}{b^{5}} < (1 - \frac{1}{b})(1 - \frac{2}{b})(1 - \frac{3}{b})(1 - \frac{4}{b})(b - 5)...(2)(1)<math>. If </math>b \geq 5<math>, the </math>RHS<math> is tending towards </math>0<math> by limits and the </math>LHS<math> is tending towards </math>1<math> by limits as </math>b<math> approaches infinity. Therefore, we can check </math>b = 2, 3, 4<math> and see none of them hold. Thus our initial assumption was wrong and thus </math>b^{5} < b! + 5<math> only holds for </math>b = 0,1<math> and </math>0,1<math> aren't solutions to the original equation. Therefore, this final case doesn't have a solution either. |
− | Putting all the cases together, the two solutions are <math>\boxed{(a,b,p) = (2,2,2),(3,4,3)} | + | Putting all the cases together, the two solutions are </math>\boxed{(a,b,p) = (2,2,2),(3,4,3)}$. |
~ilikemath247365 | ~ilikemath247365 |
Revision as of 12:21, 19 June 2025
Problem
Find all triples of positive integers with
prime and
Video solution
https://www.youtube.com/watch?v=-AII0ldyDww [Video contains solutions to all day 2 problems]
Solution
Case 1:
- Since
is indivisible by
, then
must also be indivisible by
.
- If
, then
is divisible by
, so
must be a divisor of
, but
obviously has no solutions and we ruled out
already. For
, let's show that there are no solutions using simple inequalities.
- If
, then
and
by throwing away the remaining (non-negative) terms of binomial theorem. For any solution,
, which is impossible for
. That leaves us with
and
, but
for any integer
(proof by induction), so there are no solutions.
- If
, RHS is at most
and LHS is at least
(again from binomial theorem), which gives no solutions as well.
Case 2:
- Since
is divisible by
, then
must also be divisible by
.
- In addition, RHS is at most
, so
. We may write
, where
.
- Since
is a divisor of
and
it must also be a divisor of
, so
and
. We're looking for solutions of
.
- Let's factorise
: if
with
odd and
, it's
- Since
and
contain an odd number of odd terms (remember the assumption
aka
), they're odd. Also,
modulo
, so
and each following term is even but indivisible by
. The highest power of
dividing
is therefore
where
is the highest power dividing
.
- In comparison,
has factors
,
etc (up to
), and
other even factors, so it's divisible at least by
. Since
for
, the only possible solutions have
or
.
- If
, we reuse the inequalities
and
to show that there are no solutions for
.
- Finally,
isn't a factorial,
and
.
Case 3:
Just like in case 2, is divisible by
so
must also be divisible by
. However,
and
are also both divisible by
, so remainders modulo
tell us that no solutions exist.
Conclusion:
The only solutions are .
Solution 2
I considered the cases:
1) If \(a\) is even, then it must:
1.a) \(b \neq 1\) and \(p > 2\) 1.b) \(b!\) is even and \(p = 2\)
2) If \(a\) is odd, then it must:
2.a) \(b \neq 1\) and \(p = 2\) 2.b) \(b!\) is even and \(p > 2\)
Examining 1.a), we end up with an equation of the form \(a^p = p+1\), which has no integer solutions.
In case 1.b), \(b!\) can take values: 2, 6, 24, 120, 720, ..., so \(b!+2\) takes values: 4, 8, 26, 122, 722, .... We observe that the only perfect square is 4 among the possible cases, as for \(b \geq 5\), the result ends in 2, which is not a perfect square. Therefore, we have the triple \((2,2,2)\).
Case 2.a) yields \(a^2 = 3\), which is rejected.
Examining the last case 2.b), we have for \(b!\) the values: 2, 6, 24, 120, 720, 5040,
i) \(b! = 2\), then \(a^p = 2+p\), which is rejected. ii) \(b! = 6\), then \(a^p = 6+p\), also does not give integer solutions. iii) \(b! = 24\), then \(a^p = 24+p\), giving a solution for \(p=3\). Thus, we have the triple \((3,4,3)\). iv) \(b \geq 5\): \(a^3 = b! + 3\), so \(a\) must end in 3 or 7, which does not give solutions. \(a^5 = b! + 5\), so \(a\) must end in 5, also not giving solutions. \(a^7 = b! + 7\), so \(a\) must end in 3, again not giving solutions. \(a^{11} = b! + 11\), no \(a \in \mathbb{Z^+}\) satisfies this. \(a^{19} = b! + 19\), similarly, no solutions. Other prime exponents reduce to these, as their last digit is one of \(\{1,3,7,9\}\)
The analysis of the last case is incomplete, which is why I wasn't initially sure about the number of triples. Therefore, with this approach (which is not strictly documented), we find the triples: \((2,2,2), (3,4,3)\).
Solution 3(Unfinished)
Consider . Then,
must have a factor of
. Since
and
,
. But
is prime so
can only be
or the set of prime numbers. If
, then
which is impossible since
is a positive integer and so is
. Therefore,
must be the set of prime numbers specifically
. This means
. We can rearrange this to solve this Diophantine Equation:
with
being a prime number. Wilson's Theorem states that if
is a prime number, then
. This motivates us to consider different cases.
Case 1: where
is a prime
This means . Note that
is always even. Thus,
is odd. Let
. Here, we clearly see that
. Here, we only consider
. Note that
does indeed lead a solution of
so we have found our first solution triple.
Now, we go back to our original equation: ,
is a prime. Note that
. Consider
. Then,
. It is immediately obvious that
is the only solution which yields a solution of
. We will prove that is the second and last solution triple.
Case 1.1:
Then, . Since
is a prime, we have
. Note that if
, then this inequality will obviously not hold as all terms are strictly less than
. If
, then
. Using the same trick and dividing by
, we get a similar contradiction. Therefore, if
, we have no solution.
Case 1.2:
Note that will lead a contradiction in the modular arithmetic. Note that
. We have
. Notice
. It is immediately obvious that only
will hold solutions(If
, we can use a similar trick as above to prove that nothing will work). But note that
which means
. It is now obvious that
\implies
. Recall that
. Thus,
. We now have
k - 1 \mid a
k - 1 \mid a^{a - 1} - 1
a^{a} - a = (k - 1)!
b = k - 1
k - 1 \mid a
a \leq k - 1
a = k - 1 = b
a^{a} - a = a!
a = 2
a^{a - 1} - 1 \equiv 0(\mod k - 1)
q \leq 7^{5}
k \geq 7
a - 1
a^{a - 1} \equiv a(\mod a - 1) \implies
. But this tells us that if
, then
considering if
is prime. Note that if
, this is impossible because Case 1.2 specifically considers
. Therefore, we have that
is actually bigger than at least one prime and we know one of them is
. Recall
. We have
. We also have
. Recall that if this was true,
. Therefore, we can write
. Thus,
. Because
, this tells us that
. Now, we recall that
(\frac{7q - 1}{z} - 1)! < 7q - 1
(\frac{7q - 1}{z} - 1)! < 7q
q \leq 7^{5}
q = 7^{5}
(\frac{7^{6} - 1}{z} - 1)! < 7^{6}
z \leq 7
k
k = 7
a - 1
a < k
a - 1
k
a - 1 < k - 1$. (I have not finished proving this case.)
Case 1.3:$ (Error compiling LaTeX. Unknown error_msg)bk - 1
k$is a prime
Recall that we have$ (Error compiling LaTeX. Unknown error_msg)a^{a} - a = b!b = k
a \geq 3 \implies a^{a} - a
b = k + \alpha
\alpha
-1, 0
r
(k + \alpha)!
r \mid a^{a} - a = a(a^{a - 1} - 1)
r \mid k + \alpha - i
0 \leq i \leq k + \alpha - 1
r \mid a
r \mid a^{a - 1} - 1
r \mid a
r
r = a \implies a
r
b!
b = k + \alpha
a
b!
b \geq a
a = b, b - 1, ..., 1
b - j
0 \leq j \leq b - 1
a^{a} - a \leq b^{b} - b
a
b!
v_a(b!)
\sum_{i=1}^{\infty} \left\lfloor \dfrac{b}{a^i}\right\rfloor = a
b
k
b = a + \beta
\beta = 0
b
a
a = 1
1
b - i
1
r \mid a^{a - 1} - 1
a
a - 1
a^{a - 1} \equiv a(\mod a - 1)
a^{a - 1} - 1 \equiv 0(\mod a - 1)
a - 1
a^{a - 1} - 1
r
a - 1
a - 1
r = a - 1
a^{a - 1} - 1
r = a - 1
a^{a - 1} - 1
r
a - 1
a = 2
a - 1$is not prime.(I have not finished proving this case.)
Case 2:$ (Error compiling LaTeX. Unknown error_msg)p < b < aa^{p} = b! + p
p \mid b! + p
p \mid a^{p}
a^{p} \equiv 0(\mod p)
a^{p} \equiv a(\mod p)
p$is a prime. We have that exact same case here and thus this cannot hold.
Case 3:$ (Error compiling LaTeX. Unknown error_msg)b < pb < a
b = p
b < p < a
b < a < p$(Note: If a = p, we would get our original two triples so we can discard this case)
Case 3.1:$ (Error compiling LaTeX. Unknown error_msg)b < p < aa^{a} > a! + a
a \geq 3
a^{a} > a! + a
a \geq 3
(a + 1)^{a + 1} > (a + 1)! + (a + 1)
(a + 1)^{a + 1} = (a + 1)^{a} \cdot (a + 1) > a^{a} \cdot (a + 1)
a^{a} \cdot (a + 1) > (a! + a)(a + 1) = (a + 1)! + a(a + 1)
(a + 1)! + a(a + 1) > (a + 1)! + (a + 1)
a \geq 3
a + 1 \geq 3
a \geq 2$which satisfies this inequality. Therefore, we have proved this case.
We have shown that if$ (Error compiling LaTeX. Unknown error_msg)b < p < aa \geq 3
b! + p \geq 3^{p} \implies b! \geq 3^{p} - p
b < p \implies b! < p! \implies p! > 3^{p} - p
p \geq 7
7$will satisfy the original equation. Therefore, this inequality doesn't hold.
Case 3.2:$ (Error compiling LaTeX. Unknown error_msg)b < a < pp \geq 3
a^{3} = b! + 3, a^{5} = b! + 5
p \geq 7
a^{5} = b! + 5
a = 3
b^{5} < b! + 5
b = 0, 1
b^{5} < b! + 5
b \geq 2
b^{5} - 5 < b! \implies b^{5} - 5 < b(b - 1)(b - 2)...(2)(1)
b^{5}
1 - \frac{5}{b^{5}} < \frac{b - 1}{b} \cdot \frac{b - 2}{b} \cdot \frac{b - 3}{b} \cdot \frac{b - 4}{b} \cdot (b - 5)(b - 6)...(2)(1)
1 - \frac{5}{b^{5}} < (1 - \frac{1}{b})(1 - \frac{2}{b})(1 - \frac{3}{b})(1 - \frac{4}{b})(b - 5)...(2)(1)
b \geq 5
RHS
0
LHS
1
b
b = 2, 3, 4
b^{5} < b! + 5
b = 0,1
0,1$aren't solutions to the original equation. Therefore, this final case doesn't have a solution either.
Putting all the cases together, the two solutions are$ (Error compiling LaTeX. Unknown error_msg)\boxed{(a,b,p) = (2,2,2),(3,4,3)}$.
~ilikemath247365
See Also
2022 IMO (Problems) • Resources | ||
Preceded by Problem 4 |
1 • 2 • 3 • 4 • 5 • 6 | Followed by Problem 6 |
All IMO Problems and Solutions |