返回题库

AIME 1995 · 第 10 题

AIME 1995 — Problem 10

专题
Contest Math
难度
L4
来源
AIME

题目详情

Problem

What is the largest positive integer that is not the sum of a positive integral multiple of 4242 and a positive composite integer?

解析

Solution

The requested number mod42\mod {42} must be a prime number. Also, every number that is a multiple of 4242 greater than that prime number must also be prime, except for the requested number itself. So we make a table, listing all the primes up to 4242 and the numbers that are multiples of 4242 greater than them, until they reach a composite number.

143852443455478913117321574911539513551759101143196110314523652971113155317311537791214183125\begin{array}{|r||r|r|r|r|r|} \hline 1 & 43 & 85&&& \\ 2&44&&&& \\ 3&45&&&& \\ 5&47&89&131&173&215 \\ 7&49&&&& \\ 11&53&95&&& \\ 13&55&&&& \\ 17&59&101&143&& \\ 19&61&103&145&& \\ 23&65&&&& \\ 29&71&113&155&& \\ 31&73&115&&& \\ 37&79&121&&& \\ 41&83&125&&& \\ \hline \end{array} Since 215\boxed{215} is the greatest number in the list, it is the answer. Note that considering mod5\mod {5} would have shortened the search, since gcd(5,42)=1\text{gcd}(5,42)=1, and so within 55 numbers at least one must be divisible by 55.

~minor edit Yiyj1

Afterword

Basically, we are looking for a number where when a multiple of 42 is subtracted from it, the result is a prime number. Any number that ends in a 5 is not prime, except for 5 itself. Since 42 keeps the parity the same and advances odd numbers in the unit digit, then we can conclude that the sought number is 5mod425 \mod 42. Specifically, 542+55 * 42 + 5.

-jackshi2006

Solution 2

Let our answer be nn. Write n=42a+bn = 42a + b, where a,ba, b are positive integers and 0b<420 \leq b < 42. Then note that b,b+42,...,b+42(a1)b, b + 42, ... , b + 42(a-1) are all primes.

If bb is 0mod50\mod{5}, then b=5b = 5 because 55 is the only prime divisible by 55. We get n=215n = 215 as our largest possibility in this case.

If bb is 1mod51\mod{5}, then b+2×42b + 2 \times 42 is divisible by 55 and thus a2a \leq 2. Thus, n3×42=126<215n \leq 3 \times 42 = 126 < 215.

If bb is 2mod52\mod{5}, then b+4×42b + 4 \times 42 is divisible by 55 and thus a4a \leq 4. Thus, n5×42=210<215n \leq 5 \times 42 = 210 < 215.

If bb is 3mod53\mod{5}, then b+1×42b + 1 \times 42 is divisible by 55 and thus a=1a = 1. Thus, n2×42=84<215n \leq 2 \times 42 = 84 < 215.

If bb is 4mod54\mod{5}, then b+3×42b + 3 \times 42 is divisible by 55 and thus a3a \leq 3. Thus, n4×42=168<215n \leq 4 \times 42 = 168 < 215.

Our answer is 215\boxed{215}.