Maths Olympiad Prep

Library / /18 of 133

Combinatorics Difficulty 4.9 AIME Prove it Saudi Arabia

Let N\mathbb{N} denote the set of positive integers, and let SS be a set. There exists a function f:NSf: \mathbb{N} \rightarrow S such that if xx and yy are a pair of positive integers with their difference being a prime number, then f(x)f(y)f(x) \neq f(y). Determine the minimum number of elements in SS.

Solution

Let f:NSf: \mathbb{N} \rightarrow S be such a function. Because the difference of any two numbers in {1,3,6,8}\{1, 3, 6, 8\} is a prime number, the cardinality of {f(1),f(3),f(6),f(8)}\{f(1), f(3), f(6), f(8)\} is 44. Hence, the minimum number of elements in SS is greater than or equal to 44.

Now, consider the function f:N{0,1,2,3}f: \mathbb{N} \rightarrow \{0, 1, 2, 3\} that associates to each nNn \in \mathbb{N} its remainder when divided by 44. This function satisfies the condition of the problem since when f(n1)=f(n2)f(n_1) = f(n_2), for n1,n2Nn_1, n_2 \in \mathbb{N}, then n1n2n_1 - n_2 is not a prime number since it is a multiple of 44. Therefore, the minimum number of elements in SS is 44.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

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