Take a test Sign in 中文
← Exercise 688 →
Search
Go to
{{searchResults.length}} {{searchResults.length === 1 ? 'result' : 'results'}} for “{{searchWords}}” No results found for “{{searchWords}}” × back to contents
AIME Contents · by chapter
Digits (23)
Primes (14)
Divisors, GCD, and LCM (28)
Divisibility (22)
Fractions, Decimals, and the Floor Function (14)
Bases (19)
Modular Arithmetic (30)
Integer Equations (29)

Exercises and their solutions

Exercise 688
For a positive integer $p$, define the positive integer $n$ to be $p$-\textit{safe} if $n$ differs in absolute value by more than $2$ from all multiples of $p$. For example, the set of $10$-safe numbers is $\{ 3, 4, 5, 6, 7, 13, 14, 15, 16, 17, 23, \ldots\}$. Find the number of positive integers less than or equal to $8000$ which are simultaneously $7$-safe, $11$-safe, and $13$-safe.
← Back to Problem 688
Solution
  1. Mod $1001$ the allowed residues number $2\cdot6\cdot8=96$ (CRT).
  2. $8000=7\cdot1001+993$, giving $7\cdot96=672$ from full periods, and a direct count of the allowed residues up to $993$ adds $94$.
  3. Total $766$.
  4. The answer is $\boxed{766}$.
Search Go to Prev      Next

Contact Us

Thanks! Your message has been sent.
By year
1996 (1 problems)
1991 (1 problems)