Fungrim home page

Fungrim entry: c19cd6

φ ⁣(n)=#{k:k{1,2,n}andgcd ⁣(n,k)=1}\varphi\!\left(n\right) = \# \left\{ k : k \in \{1, 2, \ldots n\} \,\mathbin{\operatorname{and}}\, \gcd\!\left(n, k\right) = 1 \right\}
Assumptions:nZn \in \mathbb{Z}
\varphi\!\left(n\right) = \# \left\{ k : k \in \{1, 2, \ldots n\} \,\mathbin{\operatorname{and}}\, \gcd\!\left(n, k\right) = 1 \right\}

n \in \mathbb{Z}
Fungrim symbol Notation Short description
Totientφ ⁣(n)\varphi\!\left(n\right) Euler totient function
Cardinality#S\# S Set cardinality
SetBuilder{f ⁣(x):P ⁣(x)}\left\{ f\!\left(x\right) : P\!\left(x\right) \right\} Set comprehension
ZZBetween{a,a+1,b}\{a, a + 1, \ldots b\} Integers between a and b inclusive
GCDgcd ⁣(a,b)\gcd\!\left(a, b\right) Greatest common divisor
ZZZ\mathbb{Z} Integers
Source code for this entry:
    Formula(Equal(Totient(n), Cardinality(SetBuilder(k, k, And(Element(k, ZZBetween(1, n)), Equal(GCD(n, k), 1)))))),
    Assumptions(Element(n, ZZ)))

Topics using this entry

Copyright (C) Fredrik Johansson and contributors. Fungrim is provided under the MIT license. The source code is on GitHub.

2019-09-19 20:12:49.583742 UTC