2022 IMO Problems/Problem 5
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 |