We study a weighted divisor problem involving the exponential sum of \( D_{(1)}(n) \) , the \( n \) th coefficient in the Dirichlet series expansion of \( \zeta '(s)^2 \) . We establish the functional equation of the associated Dirichlet series, which requires delicate analytic arguments. A central focus of this work is the development of a truncated Voronoï-type formula for the error term in the exponential sum \( \sum _{n \le x} D_{(1)}(n) e(nh/k) \) , which forms the basis for establishing a mean square estimate of the error term. Furthermore, we examine the Riesz mean of \( D_{(1)}(n) \) and analyze its error term, including its mean square behavior.