Consider the functions

(studied by
Pillai in 1933) and

(studied by Toth in 2009). From their results, one can obtain
asymptotic expansions for

and

. We consider two wide classes of functions

and

of arithmetical functions which
include

and

respectively. For any
given

and

, we obtain
asymptotic expansions for

,

,

and

.