返回题库

AIME 2012 II · 第 12 题

AIME 2012 II — Problem 12

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem 12

For a positive integer pp, define the positive integer nn to be pp-safe if nn differs in absolute value by more than 22 from all multiples of pp. For example, the set of 1010-safe numbers is {3,4,5,6,7,13,14,15,16,17,23,}\{ 3, 4, 5, 6, 7, 13, 14, 15, 16, 17, 23, \ldots\}. Find the number of positive integers less than or equal to 10,00010,000 which are simultaneously 77-safe, 1111-safe, and 1313-safe.

解析

Solution

We see that a number nn is pp-safe if and only if the residue of nmodpn \mod p is greater than 22 and less than p2p-2; thus, there are p5p-5 residues modp\mod p that a pp-safe number can have. Therefore, a number nn satisfying the conditions of the problem can have 22 different residues mod7\mod 7, 66 different residues mod11\mod 11, and 88 different residues mod13\mod 13. The Chinese Remainder Theorem states that for a number xx that is aa (mod b) cc (mod d) ee (mod f) has one solution if gcd(b,d,f)=1\gcd(b,d,f)=1. For example, in our case, the number nn can be: 3 (mod 7) 3 (mod 11) 7 (mod 13) so since gcd(7,11,13)\gcd(7,11,13)=1, there is 1 solution for n for this case of residues of nn.

This means that by the Chinese Remainder Theorem, nn can have 268=962\cdot 6 \cdot 8 = 96 different residues mod 71113=10017 \cdot 11 \cdot 13 = 1001. Thus, there are 960960 values of nn satisfying the conditions in the range 0<n100100 < n \le 10010. However, we must now remove any values greater than 1000010000 that satisfy the conditions. By checking residues, we easily see that the only such values are 1000610006 and 1000710007, so there remain 958\fbox{958} values satisfying the conditions of the problem.

  • We can also say 27\frac{2}{7} of all numbers are 7-safe, 611\frac{6}{11} of all numbers are 11-safe, and 813\frac{8}{13} of all numbers are 13-safe. We can multiply these to get that 961001\frac{96}{1001} of all numbers are simultaneously 7-safe, 11-safe, and 13-safe.