Maths Olympiad Prep

Library / /6 of 16

, 2024

Number theory Difficulty 5.9 AIME, harder Prove it Saudi Arabia

Given an integer n>1n > 1, let 1=a1<a2<<at=n11 = a_1 < a_2 < \dots < a_t = n - 1 be all the positive integers that are less than nn and coprime to nn. Determine all values of nn for which there is no index i{1,,t1}i \in \{1, \dots, t-1\} satisfying 3ai+ai+13 \mid a_i + a_{i+1}.

Solution

It is easy to check that for n=2,4,10n = 2, 4, 10 the sequences are (1),(1,3),(1,3,7,9)(1), (1, 3), (1, 3, 7, 9) respectively. Thus these numbers are solution of the given problem. Considering n3n \geq 3, if nn is odd then gcd(n,2)=1\text{gcd}(n, 2) = 1 so clearly a1=1,a2=2a_1 = 1, a_2 = 2 and their sum is divisible by 33, which not satisfy. Hence, nn is even. It is easy to check that n=6n = 6 or n=8n = 8 also do not work. Now we consider n12n \geq 12 and separate in the following cases:

1. If n=12kn = 12k for k1k \geq 1 then consider a=6k+1,b=6k1a = 6k + 1, b = 6k - 1. Since aa is odd then gcd(n,a)gcd(n,2a)=gcd(12k,12k+2)=2\text{gcd}(n, a) \mid \text{gcd}(n, 2a) = \text{gcd}(12k, 12k + 2) = 2 so gcd(n,a)=1\text{gcd}(n, a) = 1. Similarly, we have gcd(n,b)=1\text{gcd}(n, b) = 1 so a,ba, b are two consecutive terms in the sequence of nn, but a+b=12ka + b = 12k which is divisible by 33. This case does not give any solution.

2. If n=12k+2n = 12k + 2 for k1k \geq 1 then consider a=6k+3,b=6k+5a = 6k + 3, b = 6k + 5. Let denote d=gcd(n,a)d = \text{gcd}(n, a) then d2a=12k+6d|2a = 12k + 6 so d4d|4, but dd is odd then d=1d = 1, thus gcd(n,a)=1\text{gcd}(n, a) = 1. Similarly, denote d=gcd(n,b)d' = \text{gcd}(n, b) then d2b=12k+10d'|2b = 12k + 10 so d8d'|8, but dd' is odd then d=1d' = 1, thus gcd(n,b)=1\text{gcd}(n, b) = 1. Now a,ba, b are consecutive terms in the sequence and 3a+b3 \mid a + b, not satisfies.

3. If n=12k+4n = 12k + 4 for k1k \ge 1 then consider a=6k+1,b=6k1a = 6k + 1, b = 6k - 1.

4. If n=12k+6n = 12k + 6 for k1k \ge 1 then consider a=6k+1,b=6k1a = 6k + 1, b = 6k - 1.

5. If n=12k+8n = 12k + 8 for k1k \ge 1 then consider a=6k+3,b=6k+1a = 6k + 3, b = 6k + 1.

6. If n=12k+10n = 12k + 10 for k1k \ge 1 then consider a=6k+1,b=6k1a = 6k + 1, b = 6k - 1.

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 and solution reproduced as published; topic and difficulty added by this site.