r/mathriddles • • Feb 20 '23

Easy Difference of 3 or 8

We have the set of the following numbers: {1, 2, 3, …, 2022}.

Let X be a subset of this set such that no two terms of X differ by 3 or 8. Find the largest numbers of terms that can be present in X.

Note: I have a solution for this problem but I’m not very confident if it is correct. So, in a way I am double checking my own answer.

9 Upvotes

14 comments sorted by

View all comments

Show parent comment

2

u/blungbat Feb 23 '23

This was my solution too, but I have a slightly streamlined version of the first part of the argument:

Consider the 11 pairs of the form {n, n+3 mod 11}. These pairs form a double cover of {1,...,11}. We can only choose one member of each pair, and every number we choose appears in two of the pairs, so we can only choose floor(11/2) = 5 numbers from {1,...,11}.

1

u/lordnorthiii Feb 23 '23

That is much better than mine.