For any positive integer n denote by an the number of quadratic functions f(x)=ax2+bx+c, a,b,c∈{1,2,…,n}, having only integer roots. Prove that for every n≥4, n<an<n2.
Solutions — 2
Solution 1
The equations x2+kx+k−1=0, k=2,…,n, and 2x2+4x+2=0, x2+4x+4=0, satisfy the property, hence n+1≤an. If f is a quadratic function satisfying our property, then f(x)=a(x+x1)(x+x2), where x1,x2∈Z+, and a,a(x1+x2), ax1x2∈{1,2,…,n}. From the last condition it follows that x2≤ax1n. We obtain an≤1≤x1≤n1≤a≤n∑ax1n=n(1+21+31+⋯+n1)2.(1) It is easy to prove by induction that for every n≥5 the following inequality holds: 1+21+31+⋯+n1<n. Moreover, a4=5. Replacing in (1), we get an<n2, n≥5, and the conclusion follows.
Solution 2
Write f(x)=a(x+x1)(x+x2), with x1,x2∈Z+∗. We have b=a(x1+x2), c=ax1x2, and c=ax1x2≤n implies x1,x2∈{1,2,…,n}.
First we count the quadratics with root x1=1. If x2=1, then f(x)=a(x2+2x+1), so we have [2n] solutions. If x2=2, then f(x)=a(x2+3x+2), so we have [3n] solutions. ...... If x2=n−1, then f(x)=a(x2+nx+n−1), so we have [nn] solutions. Altogether, we have bn=k=2∑n⌊kn⌋(1) quadratics that have a root 1.
Let us now count the quadratics with both roots x1,x2≥2. We have b=a(x1+x2)≤ax1x1=c≤n. For any pair (a,c), we want to count how many choices of b there are. The only condition is that b=a(x1+x2), where x1x2=ac>1, and x1,x2≥2 (since we have already proved that 0<b≤c≤n). Write the set of divisors of ac as 1=d1<d2<⋯<dτ(ac)=ac. The pairs d1dτ(ac)=d2dτ(ac)−1=⋯=dτ(ac)d1 are the solutions of x1x2=ac. There are τ(ac) such pairs. Since d1dτ(ac)=1⋅ac=ac⋅1=dτ(ac)d1, these two pairs are not acceptable (we assumed x1,x2=1). Now, any two symmetric pairs dmdτ(ac)−m=dτ(ac)−mdm yield a unique value of the sum dm+dτ(ac)−m, which gives a unique value of b.
There is an even number of divisors of ac, unless ac is a square. So, if ac is not a square, we get 21(τ(ac)−2) different sum dτ(ac)−m+dm, with m∈{2,…,τ(ac)−1}. If ac is a square, its pairs of divisors have 21(τ(ac)−1) different sums (disconsidering pairs that contain 1). A unified formula for these results is ⌊2τ(ac)−1⌋. Now we have established that for each pair (a,c)∈{1,…,n}×{1,…,n} with a∣c, there exist [2τ(ac)−1] quadratics which do not have a root 1, and for which b≤n.
Now we count the quadratics by taking the values of ac into account. For ac=2, we can choose (a,c)∈{(1,2),(2,4),…,([2n],2[2n])}, hence we have [2n][2τ(2)−1] quadratics. Generally, for ac=k, we can choose (a,c) from the set {(1,k),(2,2k),…,([kn],k[kn])}. hence we have [kn][2τ(k)−1] quadratics. Altogether, we obtain the following exact formula for an an=bn+k=2∑n[kn][2τ(k)−1]=k=2∑n[kn]([2τ(k)−1]+1)=k=2∑n[kn][2τ(k)+1].(2) From (2) we obtain an≤nk=2∑n2kτ(k)+1≤nk=2∑n2k2k+1 =nk=2∑nk1+2nk=2∑nk1 ≤n(2n+1−1)+2n(ln(n+1)+C−1)<n2, where C 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.