Maths Olympiad Prep

Library / /515 of 520

Number theory Difficulty 7.8 National olympiad, round 2 Prove it

Example 12([28.6]) Let n2n \geqslant 2 be a positive integer. Prove: If k2+k+nk^{2}+k+n is prime for 0k(n/3)1/20 \leqslant k \leqslant (n / 3)^{1 / 2}, then k2+k+nk^{2}+k+n is also prime for 0kn20 \leqslant k \leqslant n-2.

Solution

Let f(k)=k2+k+nf(k)=k^{2}+k+n. The problem is to prove its contrapositive: if there exists some k(0kn2)k(0 \leqslant k \leqslant n-2) such that f(k)f(k) is not a prime, then there must be a k0(0k0k_{0}\left(0 \leqslant k_{0} \leqslant\right. (n/3)1/2)\left.(n / 3)^{1 / 2}\right) such that f(k0)f\left(k_{0}\right) is not a prime. That is, if the set SS of all k(0kn2)k(0 \leqslant k \leqslant n-2) for which f(k)f(k) is not a prime is not empty, then the smallest integer k0k_{0} in SS must satisfy 0k0(n/3)1/20 \leqslant k_{0} \leqslant(n / 3)^{1 / 2}.

(i) Thus, the problem is to estimate the size of the smallest k0k_{0} from the fact that f(k0)f\left(k_{0}\right) is not a prime. This requires properties of the relationship between the divisors of f(k)f(k) and the variable kk. The most important and basic divisibility property of integer-coefficient polynomials is Example 4 in Chapter 1, Section 2. The key to solving this problem, besides cleverly using this property and the definition of primes, also involves utilizing special divisibility properties of specific polynomials. Below, we first discuss this.

Let Z[x]\boldsymbol{Z}[x] denote the set of all univariate integer-coefficient polynomials:
Z[x]={g(x)=anxn+an1xn1++ajxj++a1x+a0:ajZ,0jn,n0}\begin{aligned} \boldsymbol{Z}[x]= & \left\{g(x)=a_{n} x^{n}+a_{n-1} x^{n-1}+\cdots+a_{j} x^{j}+\cdots\right. \\ & \left.+a_{1} x+a_{0}: a_{j} \in \boldsymbol{Z}, 0 \leqslant j \leqslant n, n \geqslant 0\right\} \end{aligned}

We have
g(y)g(x)=(anyn+an1yn1++ajyj++a1y+a0)(anxn+an1xn1++ajxj++a1x+a0)=an(ynxn)+an1(yn1xn1)++aj(yjxj)++a1(yx)=(yx)h(x,y)\begin{aligned} g(y)-g(x)= & \left(a_{n} y^{n}+a_{n-1} y^{n-1}+\cdots+a_{j} y^{j}+\cdots+a_{1} y+a_{0}\right) \\ & -\left(a_{n} x^{n}+a_{n-1} x^{n-1}+\cdots+a_{j} x^{j}+\cdots+a_{1} x+a_{0}\right) \\ = & a_{n}\left(y^{n}-x^{n}\right)+a_{n-1}\left(y^{n-1}-x^{n-1}\right)+\cdots \\ & +a_{j}\left(y^{j}-x^{j}\right)+\cdots+a_{1}(y-x) \\ = & (y-x) h(x, y) \end{aligned}
where h(x,y)Z[x,y]h(x, y) \in \boldsymbol{Z}[x, y] (the set of bivariate integer-coefficient polynomials).
When x,yx, y are integer variables, we have
(a) yxg(y)g(x)y-x \mid g(y)-g(x);
(b) h(x,y)g(y)g(x)h(x, y) \mid g(y)-g(x).
(a) is the common divisibility property of polynomials (see Chapter 1, Section 2, Example 4), which can be easily generalized to multivariate integer-coefficient polynomials.

For special integer-coefficient polynomials, there are special relationships between them and their variables in terms of divisibility, which is characterized by (b). This is very important. For example, for f(x)=x2+x+nf(x)=x^{2}+x+n, we have
f(x)f(y)=(xy)(x+y+1)f(x)-f(y)=(x-y)(x+y+1)

Thus,
x+y+1f(x)f(y)x+y+1 \mid f(x)-f(y)

When ax+y+1a \mid x+y+1, then af(x)f(y)a \mid f(x)-f(y). Furthermore, if af(x)a \mid f(x), then af(y)a \mid f(y).

Next, we specifically analyze the divisor properties of the polynomial f(k)=k2+k+nf(k)=k^{2}+k+n.
(ii) From
n=f(0)f(k)=k2+k+nyn=f(0) \leqslant f(k)=k^{2}+k+ny. From
f(x)f(y)=(xy)(x+y+1)f(x)-f(y)=(x-y)(x+y+1)

we can see: (a) if df(x),dxyd \mid f(x), d \mid x-y, then df(y)d \mid f(y); (b) if df(x),dx+y+1d \mid f(x), d \mid x+y+1, then df(y)d \mid f(y) (this is the special divisibility property of the polynomial f(k)f(k)). Whether (a) or (b), the choice of the size of yy can be appropriately controlled. In (a), we can take y=xsdy=x-sd, and in (b), we can take y=(x+1)+tdy=-(x+1)+td.
(iv) If the set SS is not empty, let k0k_{0} be the smallest kk in SS such that f(k)f(k) is not a prime. Suppose
f(k0)=p0a,p0 is the smallest prime factor of f(k0),f\left(k_{0}\right)=p_{0} a, \quad p_{0} \text{ is the smallest prime factor of } f\left(k_{0}\right),

it is clear that
p0a,p02f(k0)<n2p_{0} \leqslant a, \quad p_{0}^{2} \leqslant f\left(k_{0}\right)<n^{2}

Using (iii), we can discuss the relationship between k0k_{0} and p0p_{0}, i.e., control the size of k0k_{0} by p0p_{0}, and estimate the upper bound of p0p_{0} by p02f(k0)p_{0}^{2} \leqslant f\left(k_{0}\right). This is the approach to solving this 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: NuminaMath-1.5, licensed Apache-2.0. Statement and solution reproduced as published; topic and difficulty added by this site.