Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Euler's totient function
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Short description|Number of integers coprime to and less than n}} {{hatnote group| {{Redirect|Ο(n)||Phi}} {{distinguish|Euler function}} }} [[Image:EulerPhi.svg|thumb|The first thousand values of {{math|''Ο''(''n'')}}. The points on the top line represent {{Math|''Ο''(''p'')}} when {{mvar|p}} is a prime number, which is {{Math|''p'' β 1.}}<ref>{{Cite web | url = https://www.khanacademy.org/computing/computer-science/cryptography/modern-crypt/v/euler-s-totient-function-phi-function | title = Euler's totient function | website = Khan Academy | access-date = 2016-02-26 }}</ref>]] In [[number theory]], '''Euler's totient function''' counts the positive integers up to a given integer {{mvar|n}} that are [[relatively prime]] to {{mvar|n}}. It is written using the Greek letter [[phi]] as <math>\varphi(n)</math> or <math>\phi(n)</math>, and may also be called '''Euler's phi function'''. In other words, it is the number of integers {{mvar|k}} in the range {{math|1 β€ ''k'' β€ ''n''}} for which the [[greatest common divisor]] {{math|gcd(''n'', ''k'')}} is equal to 1.<ref>{{harvtxt|Long|1972|p=85}}</ref><ref>{{harvtxt|Pettofrezzo|Byrkit|1970|p=72}}</ref> The integers {{mvar|k}} of this form are sometimes referred to as [[totative]]s of {{mvar|n}}. For example, the totatives of {{math|1= ''n'' = 9}} are the six numbers 1, 2, 4, 5, 7 and 8. They are all relatively prime to 9, but the other three numbers in this range, 3, 6, and 9 are not, since {{math|1= gcd(9, 3) = gcd(9, 6) = 3}} and {{math|1= gcd(9, 9) = 9}}. Therefore, {{math|1= ''Ο''(9) = 6}}. As another example, {{math|1= ''Ο''(1) = 1}} since for {{math|1= ''n'' = 1}} the only integer in the range from 1 to {{mvar|n}} is 1 itself, and {{math|1= gcd(1, 1) = 1}}. Euler's totient function is a [[multiplicative function]], meaning that if two numbers {{mvar|m}} and {{mvar|n}} are relatively prime, then {{math|1= ''Ο''(''mn'') = ''Ο''(''m'')''Ο''(''n'')}}.<ref>{{harvtxt|Long|1972|p=162}}</ref><ref>{{harvtxt|Pettofrezzo|Byrkit|1970|p=80}}</ref> This function gives the [[order (group theory)|order]] of the [[multiplicative group of integers modulo n|multiplicative group of integers modulo {{mvar|n}}]] (the [[Multiplicative group of integers modulo n|group]] of [[unit (ring theory)|unit]]s of the [[ring (algebra)|ring]] <math>\Z/n\Z</math>).<ref>See [[#Euler's theorem|Euler's theorem]].</ref> It is also used for defining the [[RSA (cryptosystem)|RSA encryption system]].
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)