Browse · MathNet
PrintBulgarian National Mathematical Olympiad
Bulgaria number theory
Problem
Find all prime numbers and such that
and .
and .
Solution
If , then and therefore which gives a solution. Let . Since or , we have or , which implies that . If then and which is another solution. In the sequel we assume that . Since and , we have . Moreover, we have and therefore or . However, and , i.e. , a contradiction.
Final answer
(p, q) = (2, 3) or (3, 2)
Techniques
Factorization techniquesGreatest common divisors (gcd)