Generalized Euler's Totient Function