Let 1≤x1≤x2≤⋯≤x42≤106 be the given numbers. Suppose that x2k+1x2k+2>4x2kx2k−1 for every k=1,2,…,20. Multiplying all these inequalities for every k=1,2,…,20 we obtain x41x42>420x1x2≥420, hence x42>220>106, contradiction. Therefore, there is k (1≤k≤20) such that x2k+2x2k+1≤4x2kx2k−1 (*). Let's prove that (x2k−1,x2k,x2k+1,x2k+2) satisfies the constraints. In fact, let (a,b,c,d) be some permutation of these numbers. From (*) it follows that 4ac≥bd, 4bd≥ac. Then
25(ab+cd)(ad+bc)−16(ac+bd)2=25(ac(b2+d2)+bd(a2+c2))−100abcd+(68abcd−16a2c2−16b2d2)=25ac(b−d)2+25bd(a−c)2+4(4ac−bd)(4bd−ac)≥0,
proved.