Maths Olympiad Prep

Library / /84 of 158

Number theory Difficulty 5.8 AIME, harder Prove it Estonia

Let nn be a natural number such that n+1n + 1, n+3n + 3, n+7n + 7 and n+9n + 9 are prime numbers, and n+31n + 31, n+33n + 33, n+37n + 37 and n+39n + 39 are also prime numbers. Find the remainder of nn divided by 210.

Solution

Consider the remainders of nn when divided by 2, 3, 5, and 7. In the following tables the left column shows the remainder and the right column shows, which of the given eight numbers cannot be prime, if n7n \ge 7:

n mod 2divisible by 2n mod 3divisible by 3
1n+1n + 10n+3n + 3
2n+1n + 1
n mod 5divisible by 5n mod 7divisible by 7
1n+9n + 90n+7n + 7
2n+3n + 32n+33n + 33
3n+7n + 73n+39n + 39
4n+1n + 14n+3n + 3
5n+9n + 9
6n+1n + 1

Thus if n7n \ge 7 then the remainder of nn when divided by 2 and 5 is 0 and when divided by 3 and 7 is 1; hence n1n - 1 is a multiple of 3 and 7. Consequently nn is a multiple of 10 and n1n - 1 is a multiple of 21. This implies that n+20n + 20 is a multiple of 21 and a multiple of 10, hence a multiple of 210. Consequently the remainder of nn when divided by 210 is 190. The numbers n=1,2,3,4,5,6n = 1, 2, 3, 4, 5, 6 do not satisfy the conditions of the problem.

Want a route through all this instead of an archive? The track puts 2,000 problems in a working order, from AMC 10 level to the IMO shortlist.

Source: MathNet, licensed CC-BY-4.0. Statement reproduced verbatim; metadata (topic, difficulty) added by this project.