Maxima Function
totient (n)
Returns the number of integers less than or equal to n which are relatively prime to n.