Problem

Source: 38th Brazilian MO (2016) - Second Day - Problem 4

Tags: Brazilian Math Olympiad 2016, combinatorics



What is the greatest number of positive integers lesser than or equal to 2016 we can choose such that it doesn't have two of them differing by 1,2, or 6?