Sum of Dirichlet's Character Over Divisors of Natural Number

The proof of this result is available in chapter 6 of Apostol's Introduction to Analytic Number Theory. In the book, the result is labeled as Theorem 6.19.