Take a test Sign in 中文
← Exercise 944 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
Contents · by chapter
Digits (38)
Primes (31)
Fractions, Decimals, and the Floor Function (18)
Divisors, GCD, and LCM (36)
Divisibility (59)
Bases (15)
Modular Arithmetic (42)
Integer Equations (27)

Exercises and their solutions

Exercise 944
Let $S$ be a subset of $\{1,2,\dots,40\}$ such that no two distinct elements have a sum divisible by $7$. What is the largest possible size of $S$?
← Back to Problem 944
Solution
  1. Mod $7$, classes $1,\dots,5$ have $6$ elements and classes $6,0$ have $5$.
  2. $S$ takes at most one multiple of $7$ and at most one class from each pair $\{1,6\},\{2,5\},\{3,4\}$.
  3. So $|S|\le1+6+6+6=\boxed{19}$, attained with classes $1,2,3$ and one multiple of $7$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year