<?xml version="1.0" encoding="UTF-8"?>

<record version="14" id="196">
 <title>Euler phi function</title>
 <name>EulerPhifunction</name>
 <created>2001-10-15 19:12:45</created>
 <modified>2008-05-28 05:27:41</modified>
 <type>Definition</type>
 <creator id="1863" name="Wkbj79"/>
 <author id="1863" name="Wkbj79"/>
 <author id="5" name="KimJ"/>
 <classification>
	<category scheme="msc" code="11-00"/>
	<category scheme="msc" code="11A25"/>
 </classification>
 <synonyms>
	<synonym concept="Euler phi function" alias="Euler totient function"/>
	<synonym concept="Euler phi function" alias="Euler $\varphi$ function"/>
	<synonym concept="Euler phi function" alias="Euler $\phi$ function"/>
 </synonyms>
 <related>
	<object name="ProofThatEulerPhiIsAMultiplicativeFunction"/>
	<object name="ValuesOfNForWhichVarphintaun"/>
	<object name="PrimeResidueClass"/>
	<object name="EulerPhiAtAProduct"/>
 </related>
 <keywords>
	<term>number theory</term>
 </keywords>
 <preamble>\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{xypic}</preamble>
 <content>For any positive integer $n$, $\varphi(n)$ is the number of positive integers less than or equal to $n$ which are coprime to $n$.  The function $\varphi$ is known as the \emph{\PMlinkescapetext{Euler} $\varphi$ function}.  This function may also be denoted by $\phi$.

Among the most useful \PMlinkescapetext{properties} of $\varphi$ are the facts that it is multiplicative (meaning if $\gcd(a,b)=1$, then $\varphi(ab)=\varphi(a)\varphi(b)$) and that $\varphi(p^k)=p^{k-1}(p-1)$ for any prime $p$ and any positive integer $k$. These two facts combined give a numeric computation of $\varphi$ for all positive integers:
\begin{align}
\label{varphi}
\varphi(n) &amp; =n \prod_{p|n} \left( 1-\frac{1}{p} \right).
\end{align}
For example, 
\begin{align*}
\varphi (2000) &amp; = 2000 \prod_{p|2000} \left(1-\frac{1}{p} \right) \\
&amp; = 2000 \left( 1 - \frac{1}{2} \right) \left( 1 - \frac{1}{5} \right) \\
&amp; = 2000 \left( \frac{1}{2} \right) \left( \frac{4}{5} \right) \\
&amp; = \frac{8000}{10} \\
&amp; = 800.
\end{align*}

From equation (\ref{varphi}), it is clear that $\varphi(n)\le n$ for any positive integer $n$ with equality holding exactly when $n=1$.  This is because
\[
\prod_{p|n} \left( 1-\frac{1}{p} \right) \le 1,
\]
with equality holding exactly when $n=1$.

Another important fact about the \PMlinkescapetext{Euler} $\varphi$ function is that
\[
\sum_{d|n} \varphi(d)=n,
\]
where the sum extends over all positive divisors of $n$.  Also, by definition, $\varphi(n)$ is the number of units in the ring $\mathbb{Z}/n\mathbb{Z}$ of integers modulo $n$.

The sequence $\{\varphi(n)\}$ appears in the OEIS as sequence \PMlinkexternal{A000010}{http://www.research.att.com/~njas/sequences/A000010}.</content>
</record>
