Maths Olympiad Prep

Library / /71 of 462

Combinatorics Difficulty 5.0 AIME Prove it Ireland

Find the smallest number of colours needed for colouring all positive integers in such a way that any two integers that differ by a prime number have different colours.

Solution

Assume such a colouring exists and consider the numbers 1,3,6,81, 3, 6, 8. Any two of these numbers differ by a prime number: 31=23 - 1 = 2, 61=56 - 1 = 5, 81=78 - 1 = 7, 63=36 - 3 = 3, 83=58 - 3 = 5 and 86=28 - 6 = 2. Thus, at least four colours are needed.

To prove that four colours are sufficient, we pick four colours and number them 0,1,2,30, 1, 2, 3. Colour number ii is applied to all integers nn that satisfy ni(mod4)n \equiv i \pmod 4. The difference of any two integers of the same colour is then divisible by 44, hence not a prime.

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 reproduced verbatim; metadata (topic, difficulty) added by this project.