Let m and n be two positive integers with m≥n≥2022. Let a1,a2,…,an,b1,b2,…,bn be 2n real numbers. Prove that the numbers of ordered pairs (i,j) (1≤i,j≤n) such that ∣ai+bj−ij∣≤m is less than or equal to 3nmlogn.
Solution
Proof: Mark red all points (i,j) for which ∣ai+bj−ij∣≤m.
Lemma: If (i1,j1), (i1,j2), (i2,j1), (i2,j2) are all red, then ∣(i2−i1)(j2−j1)∣≤4m.
Proof of the lemma: By the definition of red points, we know ∣ai1+bj1−i1j1∣≤m,∣ai1+bj2−i1j2∣≤m,∣ai2+bj1−i2j1∣≤m,∣ai2+bj2−i2j2∣≤m. Taking the differences of these expressions to eliminate ai1, ai2, bj1, and bj2, we get ∣i1j1−i1j2−i2j1+i2j2∣≤4m. This proves the lemma.
We first calculate, for a given pair 1≤i1<i2≤n, the number of j's such that (i1,j) and (i2,j) are all red points. Put d=i2−i1. Since the difference of any two such j's is at most d4m, we can have at most d4m+1 such j's.
Moreover, when the difference d is given, there are n−d ways to choose i1 and i2, so the total number of 1≤i1<i2≤n and 1≤j≤n for which (i1,j) and (i2,j) are all red points cannot be larger than d=1∑n−1(n−d)(d4m+1)=d=1∑n−1(n−d)−4mn+4md=1∑n−1dn<2n(n−1)+4mnlnn.
On the other hand, for 1≤j≤n, assume that there are xj red points in (1,j), (2,j), ..., (n,j). Then j=1∑nCxj2<2n(n−1)+4mnlnn. So j=1∑n(xj−21)2<n2−41n+8mnlnn. By Cauchy's inequality, we know j=1∑n(xj−21)≤n(n2−41n+8mnlnn), i.e. j=1∑nxj≤2n+nn−41+8mlnn. When m≥n≥2022, some elementary estimate shows that ≤3nmlnn.
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.