Search the documentation

Type to search. Use ↑ and ↓ to move, Enter to open.

Euler's totient function

phi(n) counts the integers from 1 to n that are coprime to n.

1
projects
1
run in the browser
Defining formula
φ(n)=n∏p∣n(1−1p)\varphi(n) = n \prod_{p \mid n} \Bigl(1 - \frac{1}{p}\Bigr)

How many numbers up to n share no factor with n.

On this page

Projects that use it

Neighbourhood in the knowledge graph

Euler's totient functionNumber theory and algebraNumber Theory ExplorerEuclidean algorithmModular arithmeticModular exponentiationPrime sievesPrimality testingArithmetic functionsLinear recurrencesCryptography in CCryptography Performance AnalysisSorting Algorithms Visualization
ProjectsConceptsDomainsShow in graph →