Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Mathematical Functions / Number Theory  /
EulerPhi

  • EulerPhi[ n ] gives the Euler totient function .
  • Integer mathematical function (see Section A.3.10).
  • gives the number of positive integers less than which are relatively prime to .
  • See the Mathematica book: Section 3.2.4.
  • See also: FactorInteger, Divisors, MoebiusMu.

    Further Examples

    Up to 10 there are four numbers relatively prime to 10.

    In[1]:=

    Out[1]=

    In[2]:=

    Out[2]=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.