Totally multiplicative function