2012 AIME II Problem 12
Problem 12 of 15HarderNumber Theory
For a positive integer define the positive integer to be -safe if differs in absolute value by more than from all multiples of For example, the set of -safe numbers is Find the number of positive integers less than or equal to which are simultaneously -safe, -safe, and -safe.
Your answer
Integer from 0 to 999
Show solution
Solution
Being -safe depends only on it requires That allows residues modulo residues modulo and residues modulo Since the Chinese remainder theorem gives exactly safe residues modulo so each block of consecutive integers contains safe numbers.
The integers through form ten such blocks, containing safe numbers. It remains to discard the safe numbers among Their residues modulo run so only and are -safe; both are also -safe (residues and ) and -safe (residues and ).
Therefore the count is
Tagged: modular arithmetic · Chinese Remainder Theorem