Skip to main content
OlympiadHQ

Browse · MathNet

Print

Baltic Way 2019

Baltic Way 2019 number theory

Problem

A positive integer is called a lighthouse number if it has the following property. Any positive integer not exceeding which is relatively prime to it has at most two prime factors (possibly equal). Determine whether the lighthouse numbers are infinitely or finitely many and, in the latter case, find the greatest among them.
Solution
Answer: The greatest lighthouse number is 1260.

Denote by the -th prime number. We first set out to prove that, for , the inequality holds. As is readily verified by computation, the inequality holds for . Consider now the case . By Bertrand's Postulate, for each . Consequently, in so far as , which does indeed hold true when .

Consider now a number divisible by the primes , but not by . Then is a lighthouse number precisely when , for is the least number relatively prime to with more than two prime factors. But , which, in conjunction with (Eq-8), enforces , so that the only possible prime divisors of are . There remains to examine these cases in detail.

Suppose . Then Suppose now . Writing , we find implying , and Consequently, the lighthouse numbers are bounded by 1260, hence finite in number. Further, the number 1260 has the lighthouse property, for
Final answer
Finitely many; the greatest lighthouse number is 1260.

Techniques

Prime numbersGreatest common divisors (gcd)