On a class of arithmetical functions