The main purpose of this paper is to study the asymptotic property of one class of number-theoretic functions and give a sharp hybrid mean-value formula by using the generalized Bernoulli numbers, Gauss sums and the mean-value theorems of Dirichlet$L$-functions.