Maths Olympiad Prep

Library / /119 of 120

, 2012

Algebra Difficulty 7.1 National olympiad, round 2 Prove it Saudi Arabia

For any positive integer nn denote by ana_n the number of quadratic functions f(x)=ax2+bx+cf(x) = ax^2 + bx + c, a,b,c{1,2,,n}a, b, c \in \{1, 2, \dots, n\}, having only integer roots. Prove that for every n4n \ge 4,
n<an<n2. n < a_n < n^2.

Solutions — 2

Solution 1

The equations x2+kx+k1=0x^2 + kx + k - 1 = 0, k=2,,nk = 2, \dots, n, and 2x2+4x+2=02x^2 + 4x + 2 = 0, x2+4x+4=0x^2 + 4x + 4 = 0, satisfy the property, hence n+1ann+1 \le a_n.
If ff is a quadratic function satisfying our property, then f(x)=a(x+x1)(x+x2)f(x) = a(x + x_1)(x + x_2), where x1,x2Z+x_1, x_2 \in \mathbb{Z}_+, and a,a(x1+x2)a, a(x_1 + x_2), ax1x2{1,2,,n}a x_1 x_2 \in \{1, 2, \dots, n\}. From the last condition it follows that
x2nax1. x_2 \le \frac{n}{a x_1}.
We obtain
an1x1n1annax1=n(1+12+13++1n)2.(1) a_n \le \sum_{\substack{1 \le x_1 \le n \\ 1 \le a \le n}} \frac{n}{a x_1} = n \left( 1 + \frac{1}{2} + \frac{1}{3} + \dots + \frac{1}{n} \right)^2. \quad (1)
It is easy to prove by induction that for every n5n \ge 5 the following inequality holds:
1+12+13++1n<n. 1 + \frac{1}{2} + \frac{1}{3} + \dots + \frac{1}{n} < \sqrt{n}.
Moreover, a4=5a_4 = 5. Replacing in (1), we get an<n2a_n < n^2, n5n \ge 5, and the conclusion follows.

Solution 2

Write f(x)=a(x+x1)(x+x2)f(x) = a(x + x_1)(x + x_2), with x1,x2Z+x_1, x_2 \in \mathbb{Z}_+^*. We have b=a(x1+x2)b = a(x_1 + x_2), c=ax1x2c = a x_1 x_2, and c=ax1x2nc = a x_1 x_2 \le n implies x1,x2{1,2,,n}x_1, x_2 \in \{1, 2, \dots, n\}.

First we count the quadratics with root x1=1x_1 = 1. If x2=1x_2 = 1, then f(x)=a(x2+2x+1)f(x) = a(x^2 + 2x + 1), so we have [n2]\left[ \frac{n}{2} \right] solutions.
If x2=2x_2 = 2, then f(x)=a(x2+3x+2)f(x) = a(x^2 + 3x + 2), so we have [n3]\left[ \frac{n}{3} \right] solutions.
......
If x2=n1x_2 = n - 1, then f(x)=a(x2+nx+n1)f(x) = a(x^2 + n x + n - 1), so we have [nn]\left[ \frac{n}{n} \right] solutions.
Altogether, we have
bn=k=2nnk(1) b_n = \sum_{k=2}^n \left\lfloor \frac{n}{k} \right\rfloor \quad (1)
quadratics that have a root 1.

Let us now count the quadratics with both roots x1,x22x_1, x_2 \ge 2. We have b=a(x1+x2)ax1x1=cnb = a(x_1 + x_2) \le a x_1 x_1 = c \le n. For any pair (a,c)(a, c), we want to count how many choices of bb there are. The only condition is that b=a(x1+x2)b = a(x_1 + x_2), where x1x2=ca>1x_1 x_2 = \frac{c}{a} > 1, and x1,x22x_1, x_2 \ge 2 (since we have already proved that 0<bcn0 < b \le c \le n). Write the set of divisors of ca\frac{c}{a} as
1=d1<d2<<dτ(ca)=ca. 1 = d_1 < d_2 < \dots < d_{\tau(\frac{c}{a})} = \frac{c}{a}.
The pairs d1dτ(ca)=d2dτ(ca)1==dτ(ca)d1d_1 d_{\tau(\frac{c}{a})} = d_2 d_{\tau(\frac{c}{a})-1} = \dots = d_{\tau(\frac{c}{a})} d_1 are the solutions of x1x2=cax_1 x_2 = \frac{c}{a}. There are τ(ca)\tau(\frac{c}{a}) such pairs. Since
d1dτ(ca)=1ca=ca1=dτ(ca)d1, d_1 d_{\tau(\frac{c}{a})} = 1 \cdot \frac{c}{a} = \frac{c}{a} \cdot 1 = d_{\tau(\frac{c}{a})} d_1,
these two pairs are not acceptable (we assumed x1,x21x_1, x_2 \ne 1). Now, any two symmetric pairs dmdτ(ca)m=dτ(ca)mdmd_m d_{\tau(\frac{c}{a})-m} = d_{\tau(\frac{c}{a})-m} d_m yield a unique value of the sum dm+dτ(ca)md_m + d_{\tau(\frac{c}{a})-m}, which gives a unique value of bb.

There is an even number of divisors of ca\frac{c}{a}, unless ca\frac{c}{a} is a square. So, if ca\frac{c}{a} is not a square, we get 12(τ(ca)2)\frac{1}{2}(\tau(\frac{c}{a}) - 2) different sum dτ(ca)m+dmd_{\tau(\frac{c}{a})-m} + d_m, with m{2,,τ(ca)1}m \in \{2, \dots, \tau(\frac{c}{a}) - 1\}. If ca\frac{c}{a} is a square, its pairs of divisors have 12(τ(ca)1)\frac{1}{2}(\tau(\frac{c}{a}) - 1) different sums (disconsidering pairs that contain 1). A unified formula for these results is
τ(ca)12. \left\lfloor \frac{\tau\left(\frac{c}{a}\right) - 1}{2} \right\rfloor.
Now we have established that for each pair
(a,c){1,,n}×{1,,n} (a, c) \in \{1, \dots, n\} \times \{1, \dots, n\}
with aca|c, there exist [τ(ca)12]\left[ \frac{\tau\left(\frac{c}{a}\right) - 1}{2} \right] quadratics which do not have a root 1, and for which bnb \le n.

Now we count the quadratics by taking the values of ca\frac{c}{a} into account.
For ca=2\frac{c}{a} = 2, we can choose
(a,c){(1,2),(2,4),,([n2],2[n2])}, (a, c) \in \left\{ (1, 2), (2, 4), \dots, \left( \left[ \frac{n}{2} \right], 2 \left[ \frac{n}{2} \right] \right) \right\},
hence we have [n2][τ(2)12]\left[ \frac{n}{2} \right] \left[ \frac{\tau(2) - 1}{2} \right] quadratics.
Generally, for ca=k\frac{c}{a} = k, we can choose (a,c)(a, c) from the set
{(1,k),(2,2k),,([nk],k[nk])}. \left\{ (1, k), (2, 2k), \dots, \left( \left[ \frac{n}{k} \right], k \left[ \frac{n}{k} \right] \right) \right\}.
hence we have [nk][τ(k)12]\left[ \frac{n}{k} \right] \left[ \frac{\tau(k) - 1}{2} \right] quadratics.
Altogether, we obtain the following exact formula for ana_n
an=bn+k=2n[nk][τ(k)12]=k=2n[nk]([τ(k)12]+1)=k=2n[nk][τ(k)+12].(2) \begin{aligned} a_n = b_n + \sum_{k=2}^n \left[ \frac{n}{k} \right] \left[ \frac{\tau(k) - 1}{2} \right] &= \sum_{k=2}^n \left[ \frac{n}{k} \right] \left( \left[ \frac{\tau(k) - 1}{2} \right] + 1 \right) \\ &= \sum_{k=2}^n \left[ \frac{n}{k} \right] \left[ \frac{\tau(k) + 1}{2} \right]. \end{aligned} \quad (2)
From (2) we obtain
annk=2nτ(k)+12knk=2n2k+12k a_n \le n \sum_{k=2}^n \frac{\tau(k) + 1}{2k} \le n \sum_{k=2}^n \frac{2\sqrt{k} + 1}{2k}
=nk=2n1k+n2k=2n1k = n \sum_{k=2}^n \frac{1}{\sqrt{k}} + \frac{n}{2} \sum_{k=2}^n \frac{1}{k}
n(2n+11)+n2(ln(n+1)+C1)<n2, \le n(2\sqrt{n+1} - 1) + \frac{n}{2}(\ln(n+1) + C - 1) < n^2,
where CC is the well-known Euler's constant.

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.