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 . Any two of these numbers differ by a prime number: , , , , and . Thus, at least four colours are needed.
To prove that four colours are sufficient, we pick four colours and number them . Colour number is applied to all integers that satisfy . The difference of any two integers of the same colour is then divisible by , 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.