This is the talk page for discussing improvements to the Modular arithmetic article. This is not a forum for general discussion of the article's subject.
This article is within the scope of WikiProject Mathematics, a collaborative effort to improve the coverage of mathematics on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion and see a list of open tasks.MathematicsWikipedia:WikiProject MathematicsTemplate:WikiProject Mathematicsmathematics
Archive 1 — congruency symbols; notation; clock arithmetic; modulo in computer science (discussion leading to the creation of the modulo operation article); usage in check digits; misc.
This page has archives. Sections older than 365 days may be automatically archived by Lowercase sigmabot III when more than 10 sections are present.
Isn't it kind of silly to refer to the 24-hour clock as "military" time since it's the standard timekeeping format in most of the world? Seems anglocentric and an unnecessary parenthetical.
Good point. I live in a county usually using 12-hour time and it still feels like an Americanism to me. I've reworded things for now, if anyone disagrees we can go to the third stage of WP:BRD. Alpha3031 (t • c) 07:21, 8 May 2020 (UTC)[reply]
@Vasily802:The first minus sign in the following equations in the Examples section does not seem to render properly.
I have seen this problem elsewhere from time to time on Wikipedia. An IP tried to fix it by inserting spaces, to no avail. I removed the spaces, because they did not help. The only thing that worked for me was to increase the magnification on my screen.—Anita5192 (talk) 04:54, 19 December 2020 (UTC)[reply]
Hopefully, the following I added won't be reversed and deleted in future.
If k a ≡ k b (mod n), then a ≡ b (mod n/gcd(k,n)). Particularly, k is coprime with n, then gcd(k, n) = 1, and so a ≡ b (mod n).
This was reverted because it is too complicated to be useful in this article. In fact, it is too complicated for most people to verify. If you want to reinsert it, then first discuss it here and demonstrate why it is important.—Anita5192 (talk) 16:04, 24 March 2022 (UTC)[reply]
user:D.Lazard rejects the modulus 1 with the argument: "1 is never used as a modulus, and extending the definition to would make nonsensical some of the listed basic properties listed below".
I agree that the change does not carry much of a fluidum. But it is correct and even useful at least e.g. for certain generic theorems.
And I could not find one(¬1) basic property listed in the article which becomes nonsensical. I asked him to show me one, if not all, of the listed basic properties which become nonsensical.
However, I would add a statement to the paragraph "Integers modulo n" telling that
Nomen4Omen changed into in the definition given in the first line of § Congruence, with the edit summary "the trivial modulus 1 is anyway a modulus". This sounds as WP:OR as no evidence is provided that 1 is considered as a possible modulus in standard textbooks. Also, such a change requires to verify that all properties listed in the article remain correct after the change. This has clearly not been done, as one of the properties begins with "If c ≡ d (mod φ(n)), where φ is Euler's totient function, ...". This sentence is wrong with both definitions, as it implies a congruence modulo 1 when n = 2 and modulo 0 when n = 1.
So the change does not improve the article, although the first line of the section requires some attention.
As congruences modulo 0 and 1 are commonly considered (even in this article), it seems that 0 and 1 are rarely considered as moduli. So I suggest to change the beginning of the section into Given a nonnegative integern, two integers a and b are said to be congruent modulo n, if there is an integer k such that a ≡ b (mod n). This is denoted a ≡ b (mod n). If n > 1, it is called a modulus.
Clearly, such a change would require an update of the article for testing when n < 2 must be explicitly excluded. (This is implicily excluded when n is supposed to be prime or composite.)
I agree that congruences may and should be defined modulo any nonnegative integer, but this does implies that 0 and 1 may be called moduli. This is the motivation of the above suggested formulation. D.Lazard (talk) 19:24, 4 February 2024 (UTC)[reply]
WP:personal attacks about my supposed understanding of mathematics are not an argument in this discussion. On the opposite, they weaken your position. Please remove them. If you remove the preceding post I would agree that you remove also my answer. D.Lazard (talk) 18:50, 5 February 2024 (UTC)[reply]
@D.Lazard, The purpose of the hatnote {{About}} is to clearly distinguish between closely-related articles so the reader knows where to go, not to perfectly define the topic of the article.
The current definition "about computation modulo a fixed integer" does not clearly distinguish the articles. First, "modulo" is not a common-language word outside of mathematics. Second, both articles are meaningfully about computation.
The clearest difference between these two at a glance is either (a) that one involves an equivalence relation, while the other is a function, or (b) the notation used: "a (mod m)" or "mod(a,m)"
Unless you or someone else has a better idea, the "about" hatnote should be reverted back to one of these. But in any case, the current description is not helpful to the average reader and needs to be changed. Farkle Griffen (talk) 22:39, 18 December 2024 (UTC)[reply]
I think the lead should be rewritten, because at present it is misleading. The operations are the usual operations of arithmetic. What is different is the equivalence relation congruence instead of equality. To say that the operations are not the usual operations is incorrect. To say that numbers "wrap around" is misleading.—Anita5192 (talk) 22:56, 19 March 2025 (UTC)[reply]
I also think that the lead should be adjusted. Presently it is too simplistic. It should be mentioned that the congruence is congruence or equivalence in remainder of division. 109.166.136.27 (talk) 23:25, 21 March 2025 (UTC)[reply]
The congruence is similar to the equality of two expressions. If unknown operands are present in one side of the congruence, the congruence is also an equation. Similarly the equivalence of boolean propositional expressions is part of boolean equations, where the unknown is the truth value of propositions. Thus not only equality is involved in equations. 109.166.136.27 (talk) 23:38, 21 March 2025 (UTC)[reply]
A congruence is not an equality. Otherwise we would not call it a congruence; we would call it an equality.
Unknowns are the essential ingredient of equations. The term is equation solving for finding unknowns in any equations, either based on equality or on congruence/equivalence (having triple bar as symbol). 109.166.136.27 (talk) 07:47, 23 March 2025 (UTC)[reply]
The term "residue" is nowhere defined in the current article. The word is used as if the reader already understands it.
A brief definition (e.g. the residue mod n of a number is the remainder when the number is divided by n i.e. it is the value of that number mod n) would be helpful to the lay reader. Mr. Swordfish (talk) 00:12, 27 April 2025 (UTC)[reply]
Ok, I see it now. It's kinda buried and is the seventh instance of the term "residue" in the article. Seems to me that either moving it up in the article to come before other usage or starting the section of Residue classes with the definition would be an improvement.
I came to the article via re-direct to the Residue classes section and had to look around to see what was being discussed.
The current definition in the article:
Consequently, (a mod m) denotes generally the unique integer r such that 0 ≤ r < m and r ≡ a (mod m); it is called the residue of a modulo m.
is perfectly readable if you are used to reading math but introduces too many variables to be easily understood if you are not. The short description at the disambigulation page Residue is a bit brief, but understandable by most readers: