Write , where . Split the -interval into consecutive blocks of length at most . If distinct integers lie in one block, then . Since ,
whereas . Hence .
The points in one block are therefore -separated modulo one. Order them by distance from the nearest integer. Apart from a bounded number of endpoints, the th closest point has distance , and consequently
Multiplying by gives
This is the reciprocal fractional-part sum near a rational estimate.
Write and split the last sum in part d according as or . For the first part, the reciprocal fractional-part sum near a rational gives
For the second part, use the supplied second-moment estimate and truncation of a divisor weight by its second moment:
Substitute , take fourth roots, and factor out . The four terms from the bounded-weight estimate become, after harmless enlargement by ,
with the smaller term absorbed by . The large-weight part contributes . Finally, the two diagonal terms from part d contribute and ; since , the first is absorbed by . Therefore