MathDB
Problems
Contests
International Contests
EGMO
2012 EGMO
5
5
Part of
2012 EGMO
Problems
(1)
Find all possible values of q-p
Source: 2012 European Girls’ Mathematical Olympiad P5
4/13/2012
The numbers
p
p
p
and
q
q
q
are prime and satisfy
p
p
+
1
+
q
+
1
q
=
2
n
n
+
2
\frac{p}{{p + 1}} + \frac{{q + 1}}{q} = \frac{{2n}}{{n + 2}}
p
+
1
p
+
q
q
+
1
=
n
+
2
2
n
for some positive integer
n
n
n
. Find all possible values of
q
−
p
q-p
q
−
p
.Luxembourg (Pierre Haas)
number theory
modular arithmetic
equation
EGMO
primes
GCD