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
Modular arithmetic
(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!
== Congruence classes <span class="anchor" id="Residue"></span><span class="anchor" id="Residue class"></span><span class="anchor" id="Congruence class"></span> == The congruence relation is an [[equivalence relation]]. The [[equivalence class]] modulo {{mvar|m}} of an integer {{math|''a''}} is the set of all integers of the form {{math|''a'' + ''k m''}}, where {{mvar|k}} is any integer. It is called the '''congruence class''' or '''residue class''' of {{math|''a''}} modulo {{math|''m''}}, and may be denoted {{math|(''a'' mod ''m'')}}, or as {{math|{{overline|''a''}}}} or {{math|[''a'']}} when the modulus {{math|''m''}} is known from the context. Each residue class modulo {{math|''m''}} contains exactly one integer in the range <math>0, ..., |m| - 1</math>. Thus, these <math>|m|</math> integers are [[representative (mathematics)|representatives]] of their respective residue classes. It is generally easier to work with integers than sets of integers; that is, the representatives most often considered, rather than their residue classes. Consequently, {{math|(''a'' mod ''m'')}} denotes generally the unique integer {{mvar|r}} such that {{math|0 β€ ''r'' < ''m''}} and {{math|''r'' β‘ ''a'' (mod ''m'')}}; it is called the '''residue''' of {{math|''a''}} modulo {{math|''m''}}. In particular, {{math|1=(''a'' mod ''m'') = (''b'' mod ''m'')}} is equivalent to {{math|''a'' β‘ ''b'' (mod ''m'')}}, and this explains why "{{math|1==}}" is often used instead of "{{math|β‘}}" in this context.
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)