Assumptions:
TeX:
\varphi(n) = \sum_{k=1}^{n} \begin{cases} 1, & \gcd\!\left(n, k\right) = 1\\0, & \text{otherwise}\\ \end{cases} n \in \mathbb{Z}_{\ge 0}
Definitions:
Fungrim symbol | Notation | Short description |
---|---|---|
Totient | Euler totient function | |
Sum | Sum | |
GCD | Greatest common divisor | |
ZZGreaterEqual | Integers greater than or equal to n |
Source code for this entry:
Entry(ID("91f156"), Formula(Equal(Totient(n), Sum(Cases(Tuple(1, Equal(GCD(n, k), 1)), Tuple(0, Otherwise)), For(k, 1, n)))), Variables(n), Assumptions(Element(n, ZZGreaterEqual(0))))