Maths Olympiad Prep

Library / /24 of 55

, 2016

Number theory Difficulty 8.7 Shortlist Prove it IMO

Define P(n)=n2+n+1P(n) = n^{2} + n + 1. For any positive integers aa and bb, the set
{P(a),P(a+1),P(a+2),,P(a+b)} \{P(a), P(a+1), P(a+2), \ldots, P(a+b)\}
is said to be fragrant if none of its elements is relatively prime to the product of the other elements. Determine the smallest size of a fragrant set.

Solution

We have the following observations.
(i) (P(n),P(n+1))=1(P(n), P(n+1)) = 1 for any nn.
We have (P(n),P(n+1))=(n2+n+1,n2+3n+3)=(n2+n+1,2n+2)(P(n), P(n+1)) = \left(n^{2} + n + 1, n^{2} + 3n + 3\right) = \left(n^{2} + n + 1, 2n + 2\right). Noting that n2+n+1n^{2} + n + 1 is odd and (n2+n+1,n+1)=(1,n+1)=1\left(n^{2} + n + 1, n + 1\right) = (1, n + 1) = 1, the claim follows.

(ii) (P(n),P(n+2))=1(P(n), P(n+2)) = 1 for n≢2(mod7)n \not\equiv 2 \pmod{7} and (P(n),P(n+2))=7(P(n), P(n+2)) = 7 for n2(mod7)n \equiv 2 \pmod{7}.
From (2n+7)P(n)(2n1)P(n+2)=14(2n + 7) P(n) - (2n - 1) P(n+2) = 14 and the fact that P(n)P(n) is odd, (P(n),P(n+2))(P(n), P(n+2)) must be a divisor of 77. The claim follows by checking n0,1,,6(mod7)n \equiv 0, 1, \ldots, 6 \pmod{7} directly.

(iii) (P(n),P(n+3))=1(P(n), P(n+3)) = 1 for n≢1(mod3)n \not\equiv 1 \pmod{3} and 3(P(n),P(n+3))3 \mid (P(n), P(n+3)) for n1(mod3)n \equiv 1 \pmod{3}.
From (n+5)P(n)(n1)P(n+3)=18(n + 5) P(n) - (n - 1) P(n+3) = 18 and the fact that P(n)P(n) is odd, (P(n),P(n+3))(P(n), P(n+3)) must be a divisor of 99. The claim follows by checking n0,1,2(mod3)n \equiv 0, 1, 2 \pmod{3} directly.

Suppose there exists a fragrant set with at most 55 elements. We may assume it contains exactly 55 elements P(a),P(a+1),,P(a+4)P(a), P(a+1), \ldots, P(a+4) since the following argument also works with fewer elements. Consider P(a+2)P(a+2). From (i), it is relatively prime to P(a+1)P(a+1) and P(a+3)P(a+3). Without loss of generality, assume (P(a),P(a+2))>1(P(a), P(a+2)) > 1. From (ii), we have a2(mod7)a \equiv 2 \pmod{7}. The same observation implies (P(a+1),P(a+3))=1(P(a+1), P(a+3)) = 1. In order that the set is fragrant, (P(a),P(a+3))(P(a), P(a+3)) and (P(a+1),P(a+4))(P(a+1), P(a+4)) must both be greater than 11. From (iii), this holds only when both aa and a+1a+1 are congruent to 1(mod3)1 \pmod{3}, which is a contradiction.

It now suffices to construct a fragrant set of size 66. By the Chinese Remainder Theorem, we can take a positive integer aa such that
a7(mod19),a+12(mod7),a+21(mod3). a \equiv 7 \pmod{19}, \quad a+1 \equiv 2 \pmod{7}, \quad a+2 \equiv 1 \pmod{3} .
For example, we may take a=197a = 197. From (ii), both P(a+1)P(a+1) and P(a+3)P(a+3) are divisible by 77. From (iii), both P(a+2)P(a+2) and P(a+5)P(a+5) are divisible by 33. One also checks from 19P(7)=5719 \mid P(7) = 57 and 19P(11)=13319 \mid P(11) = 133 that P(a)P(a) and P(a+4)P(a+4) are divisible by 1919. Therefore, the set {P(a),P(a+1),,P(a+5)}\{P(a), P(a+1), \ldots, P(a+5)\} is fragrant.

Therefore, the smallest size of a fragrant set is 66.

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.