On the generalized Bernoulli numbers