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
Coprime integers
(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!
== Notation and testing == When the integers {{mvar|a}} and {{mvar|b}} are coprime, the standard way of expressing this fact in mathematical notation is to indicate that their greatest common divisor is one, by the formula {{math|1=gcd(''a'', ''b'') = 1}} or {{math|1=(''a'', ''b'') = 1}}. In their 1989 textbook ''[[Concrete Mathematics]]'', [[Ronald Graham]], [[Donald Knuth]], and [[Oren Patashnik]] proposed an alternative notation <math>a\perp b</math> to indicate that {{mvar|a}} and {{mvar|b}} are relatively prime and that the term "prime" be used instead of coprime (as in {{mvar|a}} is ''prime'' to {{mvar|b}}).<ref>{{citation|first1=R. L.|last1=Graham|first2=D. E.|last2=Knuth|first3=O.|last3=Patashnik|title=[[Concrete Mathematics]] / A Foundation for Computer Science|publisher=Addison-Wesley|year=1989|page=115|isbn=0-201-14236-8}}</ref> A fast way to determine whether two numbers are coprime is given by the [[Euclidean algorithm]] and its faster variants such as [[binary GCD algorithm]] or [[Lehmer's GCD algorithm]]. The number of integers coprime with a positive integer {{mvar|n}}, between 1 and {{mvar|n}}, is given by [[Euler's totient function]], also known as Euler's phi function, {{math|''Ο''(''n'')}}. A [[Set (mathematics)|set]] of integers can also be called coprime if its elements share no common positive factor except 1. A stronger condition on a set of integers is pairwise coprime, which means that {{mvar|a}} and {{mvar|b}} are coprime for every pair {{math|(''a'', ''b'')}} of different integers in the set. The set {{math|{2, 3, 4} }} is coprime, but it is not pairwise coprime since 2 and 4 are not relatively prime.
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)