  We give a new proof of an approximate functional equation, due to J. R.
Wilton, for a trigonometric sum involving the divisor function. This allows us
to improve on Wilton's error term and to give an explicit formula for an
unspecified function involved in the functional equation.
