Mathematica Technical FAQs Services & Resources / Mathematica / Kernels & Programming
-----
 /
Symbols
*Mathematica
*Network Mathematica
*webMathematica
*gridMathematica
*Personal Grid Edition
*Wolfram Workbench
*Wolfram Education Group
*Application Packages
*Mathematica for Students
*Mathematica CalcCenter
*Publicon
*A New Kind of Science Explorer
*Mathematical Explorer
*Mathematica Teacher's Edition
*Calculus WIZ
*Mathematica Player
*Ask about this page
*Print this page
*Email this page
*Give us feedback
*
Sign up for our newsletter:

EulerPhi


Usage Message:

EulerPhi[n] gives the Euler totient function.

Attributes[EulerPhi] = {Listable, Protected}


Notes:

There is an error in the EulerPhi function in Mathematica Version 3.0 that causes EulerPhi[1] to return 0, rather than 1. You can correct this error by adding a rule
Unprotect[EulerPhi]
EulerPhi[1] = 1
Protect[EulerPhi]
to the EulerPhi function. You can have this workaround automatically loaded by placing

http://support.wolfram.com/Kernel/Symbols/System/EulerPhi.m

at the location given by

In[1]:= ToFileName[{$TopDirectory,"AddOns", "Autoload", 
		"EulerPhi", "Kernel"}, "init.m"]
This error has been corrected for the next release of Mathematica.


Additional Online Documentation:

Mathematica 3.0
http://documents.wolfram.com/v3/RefGuide/EulerPhi.html

Mathematica 4.0
http://documents.wolfram.com/v4/RefGuide/EulerPhi.html




 © 2008 Wolfram Research, Inc.  Terms of Use  Privacy Policy