Skip to main content
OlympiadHQ

Browse · MathNet

Print

50th Mathematical Olympiad in Ukraine, Fourth Round (March 23, 2010)

Ukraine 2010 number theory

Problem

Find all natural numbers , such that , and are primes.
Solution
Let be a natural number that satisfies the condition of the problem. We first calculate the sum of all given numbers: which is even. This implies that at least one of them is even, in other words, it equals to . Solving the following three equations we get , or . Simple check shows that these values of meet all the requirements. Indeed,

for we have: , and .

for we have: , and .
Final answer
n = 3 or n = 7

Techniques

Prime numbersQuadratic functions