Olympiad Maths Prep

Track / Stage 5 / 12 of 400 #612 of 2000

Problem 612

AIME late
Number theory Difficulty 5.0 Prove it Berkeley Math Circle · United States

Problem:

Does there exist a function ff from the positive integers to itself, such that for any positive integers aa and bb, we have gcd(a,b)=1\operatorname{gcd}(a, b)=1 if and only if gcd(f(a),f(b))>1\operatorname{gcd}(f(a), f(b))>1 holds?

This one wants a proof. Work it on paper, read the official solution, then mark yourself honestly — the ladder only means something if the record is true.

Official solution

Solution:

The answer is no. Assume that ff satisfies the hypothesis. Let kk denote the number of distinct primes dividing f(1)f(1). For every integer ee, the number f(2e)f\left(2^{e}\right) shares some prime factor with f(1)f(1). So among f(2),f(4),,f(2k+1)f(2), f(4), \ldots, f\left(2^{k+1}\right) two of them have the same shared prime factor, which is impossible.

Source: MathNet, licensed CC-BY-4.0. Statement and solution reproduced as published; topic, difficulty and ordering added by this site.