Abstract. For the number of integer solutions of the title equation, with W ≤ x ( x a large parameter), an asymptotics of the form Ax log x + Bx + O x 1/2 (log x) 3 (log log x) 2 is established. This is achieved in a general setting which furnishes applications to some other natural arithmetic functions.