Talk:Modular arithmetic
From Wikipedia, the free encyclopedia
Old Talk Archives:
- Talk:Modular arithmetic/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.
[edit] Notation
Dear Linas, what does (a + b)n = an + bn mean? This notation is not defined in the article. Do you mean:
- [a + b]n = [a]n + [b]n?
Thank you. Oleg Alexandrov 01:31, 9 Jan 2005 (UTC)
[edit] The article
I think this article has now very clearly lost its way. Time for a thorough edit, with abstract algebra given its due (and not made too prominent, as now is). The servers are currently having a hard time, but I intend to return and re-order the material. It must be done so as to make sense to first-time users of modular arithmetic. Charles Matthews 14:23, 13 Jan 2005 (UTC)
I have reverted a change, to keep 'clock arithmetic'; the introduction is not solely for the benefit of mathematicians. Charles Matthews 15:56, 20 Jan 2005 (UTC)
- I have 2 problems with this: first, the article makes it sound like "clock arithmetic" is just a synonym for "modular arithmetic", i.e. that its use as a technical term is on the same level. If you want to point out the term "clock arithmetic" as a colloquialism, fine. But, the way it's worded now, the 2 terms are given almost equal footing. Also, "clock arithmetic" seems to imply modulus 12. Revolver 4 July 2005 23:25 (UTC)
[edit] Invitation to a discussion about the future of modulo and modular arithmetic
The modular arithmetic page started in the early days of 2001, by AxelBoldt. It was a neat page about the ring Z/nZ. Now, many things can be said about modulo, and modular arithmetic. And people did say it. To such extent, that the pages modulo and modulo arithmetic became (in my opinion) very bloated, filled with all kinds of things, overlapping material, and plain mistakes. There was even an application section of modular arithmetic, inserted before the definition of modular arithmetic was complete. I myself found the modulo page (and from there the modular arithmetic page) when it was listed on the Wikipedia:Pages needing attention/Mathematics page.
Well, I tried to to some cleanup, after a while gave up, and just reverted to an earlier version, made modulo a disambiguation page, and split most of the material in articles originating from there.
Now, the modular arithemtic page did not stay clean for long, and started getting a very abstract algebra bent. And recently, the applications started creeping in again. All these are not bad by themselves (I love applications, I am in applied math), but the article is losing focus again. And I also realized that restricting "modular arithmetic" to only the ring thing is maybe narrow minded, and maybe better ways can be devised.
So, I would like to ask you to read the modulo page, all the pages which go from there, and I am looking for suggestions about what to do.
Oleg Alexandrov 19:31, 17 Jan 2005 (UTC)
Hello. Sorry to be seeming to ignore your various comments on my talk page. I think at some point I'll return to the modular arithmetic article. I do think some mention should be made of the fact that the conventions used in computer science differ from those used by mathematicians. Michael Hardy 19:29, 20 Jan 2005 (UTC)
- When I was writing those comments, each one had a specific purpose in mind, but now if I look at it, it does look as if I am pestering you. If you thought so, sorry for that.
- I am not on principle against establishing a connection between computer science and math as far as the modulo thing is concerned. I would think the last attempt was not very sucessful (I could mention more things that what is above), but we can try. I wonder if you could explain more about the "convention" thing, I still think this is too big a word in this particular setting.
- Looking forward to a friendly conversation. Oleg Alexandrov | talk 20:00, 20 Jan 2005 (UTC)
For people new here, this is the "convention" thing we mean:
Definition of modulo
Two discrepant conventions prevail:
- the one originally introduced by Gauss two centuries ago, still used by mathematicians, and suitable for theoretical mathematics, and (here, modular arithmetic is meant)
- a newer one adhered to by computer scientists and perhaps more suitable for computing.
(here the mod operation is meant, that is the remainder)
A third sort of usage by mathematicians ultimately evolved from those, but may seem quite different. It is explained in the article titled modulo. (here, I think the jargon use is meant) Oleg Alexandrov | talk 21:15, 20 Jan 2005 (UTC)
[edit] We should revert to a much earlier version!
Alexander Guy's recent edit missed the point in a way that I predicted a long time ago. I put at the beginning of this article a definition of "mod" that said there are two conventions: the one used by mathematicians since the beginning of the 19th century, and the one used in computer science. If we had kept that, he wouldn't have missed the point. It looks as if he wanted to parse the sentence as
- a = (b mod c)
rather than as
- (a is congruent to b) mod c.
And the use of "=" in this context is very bad, since people may think it means "equals", and it does not. Michael Hardy 03:20, 19 May 2005 (UTC)
- What you should do Michael, is be more talkative. You are quite good at stating your point then closing your eyes and ears to other poeple's plea for discussion (see above). So, are you willing to put your foot in the water this time? Oleg Alexandrov 05:58, 19 May 2005 (UTC)
-
- I replaced everywhere the equal sign with the correct symbol ≡. This symbol should display in any browser having at least rudimentary Unicode support. This, and the note I put on top should probably be enough of a hint to computer scientists that this is not your computer's mod function. Oleg Alexandrov 01:30, 21 May 2005 (UTC)
-
-
- I'll be joining you here shortly ..... Michael Hardy 03:28, 21 May 2005 (UTC)
-
[edit] Guilty As Charged
I was staring at, and it didn't click in my head to look above. I found it confusing, but maybe I've just been programming for too long. Thanks. Alexander Guy 03:54, 19 May 2005 (UTC)
[edit] Merging back?
It was agreed by the recent contributors to this article that two articles need to exist. One more elementary, for the general public, which will be modular arithmetic, and another new one, called modular arithmetic theory with more advanced things and uses in modern mathematics. This parallels graph and graph theory.
This modular arithmetic article needs more things about its connections with other areas of knowledge, like computer science, as User:Michael Hardy remarked. Still to be discussed and done. Oleg Alexandrov | talk 21:19, 29 Jan 2005 (UTC)
- I fail to see the need for two separate articles. By reading the two articles, they seem to talk about the same concept, namely modular arithmetic. I agree that not every layman knows the use of modular arithmetic in ring theory, for example, but in wikipedia we don't remove the discussion because it is for advanced readers. I added a merger tag. -- Taku July 5, 2005 01:50 (UTC)
I disagree with merging. As the name says, modular arithmetic is about adding/multiplying numbers modulo something. This is not the same as taking the remainder which modulo operation is about. It is not the same as the informal usage discussed in modulo (jargon). I of course agree that these words have common origin, and maybe it should be elaborated on that. But modular arithmetic is not the place for that. That should go in modulo. Oleg Alexandrov 5 July 2005 02:08 (UTC)
- So are you saying addition and multiplication is arithmetic, while finding the remainder is not? Also, I have never heard that modular arithmetic is about math and modular operation is for cs. If the name modular arithmetic has to be reserved for the usage in algebra, we can rename the article so it can contain the general idea. By skiming the above discussion, I can see there is a subtle difference (like cases of negaive integers or calculating the remainder of an real number in cs sense). But I don't think readers would appricate that subtlety. Giving a precise definition and limiting the article to it are two different things. -- Taku July 5, 2005 02:30 (UTC)
-
- Right. But giving a precise definition and merging all that stuff back in here are two different things also. :) This artice was in a very bad shape when all the stuff was here, in particular the computer science usage was inserted in the middle of the math usage, so the math usage was both above and below. You are welcome to expand a bit on the computer science usage, but I myself would not be happy with all those article crammed back in here. Oleg Alexandrov 5 July 2005 02:40 (UTC)
- Well, cleaning up the bad stuff and separting it off are two different things as well :) I will try if I can have a good article (or at least start). Make corrections, comments or reversion after that. -- Taku July 5, 2005 03:17 (UTC)
- Maybe you should wait a bit to see what others have to say. Oleg Alexandrov. Comments welcome. Oleg Alexandrov 5 July 2005 03:40 (UTC)
- Right. So far I merged modular and modulo into one article called modulus and modulo. I am thinking of expanding that article more so as to make it a non-disambig page to clarify terminology. I think that's a good start. What do you think? -- Taku July 5, 2005 03:50 (UTC)
Good. I might agree with you that the computer term has something to do with modular arithmetic, but definitely not the jargon term. So I expect that one to not be here. Also, if you do plan to merge, maybe not all of modulo operation needs pasting here. We could still keep that one as a main article. Oleg Alexandrov 5 July 2005 04:44 (UTC)
[edit] Merging from advanced modular arithmetic theory
I don't agree with the merger. That article goes into too complicated math, and in my view, is not well-written. The link should be enough. What that article needs is a rewrite.
I would agree with that article to redirect here, without merging the information. Oleg Alexandrov 6 July 2005 02:50 (UTC)
Okay so what I'm hearing is: make that page into a redirect and set up links to the individual theorems for advanced topics here in this article. Is this correct?Guardian of Light 6 July 2005 13:12 (UTC)
- I noticed this before, I think you should use the word "this" with more care. :) If you mean that advanced modular arithmetic theory be made to redirect here, with some links, then yes. If you mean that modular arithmetic be made into redirect to something else, then I don't agree. Oleg Alexandrov 6 July 2005 15:19 (UTC)
- I do mean redirect advanced modular arithmetic theory here.
Guardian of Light 6 July 2005 19:01 (UTC)
- Okay I merged them the best I could given the time constraints. If someone would look over it and see if there's anything amiss that would be great. I should be back on soon.
Guardian of Light 6 July 2005 19:24 (UTC)
-
- I cut down on some of the advanced modular arithmetic theory stuff. I remember some of it from before, and I don't think it is well-written. Oleg Alexandrov 7 July 2005 02:06 (UTC)
-
-
- Does that mean I can delete the temporary archive and be done with it?Guardian of Light 7 July 2005 16:42 (UTC)
- I moved that one to an archive of the talk page, see the very top of this page. Oleg Alexandrov 7 July 2005 17:43 (UTC)
- Does that mean I can delete the temporary archive and be done with it?Guardian of Light 7 July 2005 16:42 (UTC)
-
[edit] Pipe notation
An edit comment says (partial revert. I don't think introducing the pipe notation makes things more elementary or more clear. Also, there was a mistake. It is false that 24|12, rather, 12|24)
The error was introduced by a later anonymous person - thanks, anonymous error introducer! And it seems obviously wrong for the article not to contain the true definition of a ≡ b (mod n) which is the one that I gave. If you can find a way to restore that definition that would be good.
With deference to the long and fraught history this article seems to have, of course. If I'm just restarting a long-fought battle I'll drop it here. — ciphergoth 22:03, August 9, 2005 (UTC)
- The comment was mine, obviously.
- Glad to see it was the anon who put the error in. My point is the following. Here is how the definition of the congruence is now:
- I guess is that what you would like, is to add to this sentence saying that notationally this is
-
- n | (a − b)
-
- So, my point is that having the thing said in words is enough (their differences is divisible by n). I don't see what value putting new notation would introduce. I'd rather have people focus not on this pipe notation, but rather on the notation right after that, which is
- 38 ≡ 14 (mod 12)
- What do you think? Oleg Alexandrov 22:17, 9 August 2005 (UTC)
-
- Yes, that makes sense. However, it should reference divisor, not division (mathematics). Fixing now. — ciphergoth 07:28, August 10, 2005 (UTC)
[edit] Algorithms
With deference once again to the fraught history of the page: I think the page has the balance of clock arithmetic, and the depth of mathematics just right now, but there's still the fraught question of "a mod b" as programming languages use it. The section on "algorithms" tries to cover this but does a terrible job. remainder does far better. I think we want to remove this section and replace it with a note that says 'a mod b' is sometimes used in computer languages to denote the related operation of finding the remainder of a divided by b. Then any discussions of the ways in which some languages (C but not Python) get it heinously wrong can go in remainder where it rightly lives. Sound good? — ciphergoth 07:33, August 10, 2005 (UTC)
- A lot of that discussion about remainders in computing is in modulo operation. I agree with you that at least some words can be said about it in this article, then refer to modulo operation and remainder for details. Be bold! Oleg Alexandrov 15:13, 10 August 2005 (UTC)
[edit] Minor inaccuracy
I don't see any really good way around this, but the standard group of integers mod 12 is not quite the same as "clock arithmetic", which uses 12 instead of 0 to represent the class of multiples of 12. It doesn't affect the structure of the group though. Deco 18:10, 31 August 2005 (UTC)
- I don't precisely agree. I'd say the "standard group of integers mod 12" refers to Z/12Z, and that has the equivalence classes themselves as members, not representative elements. Sure, if you're going to pick representatives, it's most usual to pick the numbers 0..11, but 1..12 is equally good. In any case, the mention of "clock arithmetic" is primarily meant as an informal introduction to the topic, and we pretty quickly get down to a precise formal statement which as far as I know is entirely accurate. — ciphergoth 18:37, August 31, 2005 (UTC)
[edit] DIV function
Why is there no article explaining the DIV function? There is no link from div and I feel that while Division algorithm contains related information it does not explain the programming function.
This page too should have a See Also link to div.
Syndicate 10:47, 23 October 2005 (UTC)
- What is "DIV"? Do you mean the "remainder"? If so, see the section "Remainders" in modular arithmetic and the links therein. Oleg Alexandrov (talk) 12:22, 23 October 2005 (UTC)
[edit] What a nice article
What a nice tastefully written article this is. I think my decison a long while ago of splitting off modulo (jargon) and modulo operation was a good one. Oleg Alexandrov (talk) 20:28, 16 November 2005 (UTC)
[edit] My removals
I removed several paragraphs. Here is the explanation:
1. The sentence "Sometimes such b is called the residue of a (mod n)." is incoherent, as it is not clear to what it refers.
2. The common residue is defined below, where I think it is more appropriate. Mentioning that residue has nothing to do with residue in complex analysis is of little value, you could as well mention that it has nothing to do with residue in a pan after cooking.
3. I never heard of the modulus being called the "base". Anyway, I don't know what the value of that sentence is.
4. There were way too many technicalities about how to define the remainder. That issue is dealt with at remainder and modulo operation which are plentifully linked from above the text I cut and also one more time somewhere before that.
5. The part about "aserting" which I cut has been stated earlier, so this is a repetition. Oleg Alexandrov (talk) 23:14, 24 November 2005 (UTC)
[edit] Computer Science
The section on applications says:
"In computer science, modular arithmetic is often applied in operations involving binary numbers and other fixed-width, cyclic data structures. The modulo operation, as implemented in many programming languages and calculators, is an application of modular arithmetic that is often used in this context."
This is misleading. It is true that a mod operation is often used in programs and is present in most languages but this misses a very important point in that digital computers almost universally represent integers in a fixed number of bits which means that there is an implicit modulo operation after every arithmetic operation. Modulo arithmetic is in fact the very basis for computer maths. It is impossible for computers to not "appl[y] [it] in operations involving binary numbers and other fixed-width [...] structures". It might also be useful to mention this, and that it results from the fact that an AND operation of a number with (2**n)-1 gives the same result as modulo 2**n.
--67.65.21.209 19:59, 29 November 2005 (UTC)
- I would agree with a very short description, with the bulk of stuff going to modulo operation, which is is the main article for that kind of thing (which should be manybe renamed modulo (computing). Oleg Alexandrov (talk) 20:29, 29 November 2005 (UTC)
- It's true and interesting that there is an implicit reduction done after many operations, but the text you quote is more about constructions like "for(i=1;i<1000;i++) { if(i%2==0) { /* do something every other iteration */ }", and those are quite separate in my mind. In fact, I always knew about overflow, but it took me a few years before I became comfortable with using % as in the example above. Lunkwill 23:40, 29 November 2005 (UTC)
-
-
Lunkill, I see your point, but the words "operations involving binary numbers" really make it sound like you are talking about addition, subtraction, multiplication, etc. which are always modulo 2**wordsize unless they are implemented at a higher level, like an infinite precision library. For speed reasons (the avoidance of division and using storage for the result and remainder) your example is often written "if((i&1)==0)" due to the equivalence I mentioned before for powers of two. Also, it is sometimes just written with "if(i==1) i = 0; else i = 1; if(i) ..". It's still a "modulo" operation, but it may or may not require the use of a modulo operator. Maybe just change it to talk about data structures and not integers in that sentence and see my other response below for addressing arithmetic operations. Also, a specific examples for data structures would be ring-buffers and hash tables, if you are looking for something concrete. --67.65.21.209 09:07, 30 November 2005 (UTC)
-
Oleg, I agree that there is no need for much text on this topic as it is closely related to the dicussion of wrap-around. Maybe two small changes could address this: a) something like adding a sentence like "is utilized in the implementation of fixed width arithmetic operations in computer processors" in the application and b) if there is somewhere good to work a sentence or so about the relationship with the and operator that's great, otherwise it should be (I haven't checked) covered in modulo operation. --67.65.21.209 09:07, 30 November 2005 (UTC)
- Fine with me, as long as you keep it short. :) And yes, reading modulo operation would be good too. Oleg Alexandrov (talk) 16:30, 30 November 2005 (UTC)
-
- Looks like nothing was ever done with this. I'm the person who wrote the paragraph in question, and Lunkwill's interpretation of it is correct. I was saying that iteration over cyclic data structures is the most common application of modular artithmetic in programming. The part about "binary numbers" was in reference to bitwise operations, the other notable and common application of modular arithmetic in computing. I should have just linked to that article. I'll do that now. As for the modulo operation page, I think it should remain focused on the modulo operation, rather than trying to cover all modulo-in-computing topics. —mjb 23:44, 18 March 2006 (UTC)
[edit] Notation 2
Somewhere, I found notation "a ≡ b mod n" for "a ≡ b (mod n)". Is this a mistake or not? If is not mistake we should put it in, as alternative notation.--Čikić Dragan 12:46, 10 February 2006 (UTC)
[edit] Question
If you prove that a function F can take any value (mod 6) and can take any value (mod 12) and can take any value (mod 24) and so on, does that imply that it can take any value?--SurrealWarrior 20:11, 4 March 2006 (UTC)
- no - consider f(x) = abs(x) + 3 — ciphergoth 11:17, 22 May 2006 (UTC)
[edit] Explanation of deletion of C++ code
Shortly after its addition today, I removed Jerrybtaylor's "modulo reciprical" [sic] C++ function because it is trivia (arcane trivia, at that) and is also not an example that helps explain any particular concept. —mjb 23:03, 18 March 2006 (UTC)
[edit] About definition of congruence relation
At our classes we did some problems which, in definition of congruence relation, instead integers a and b use real numbers. The meaning is that their difference remain integer. Such definition is wider than one used here.--Čikić Dragan 13:59, 19 May 2006 (UTC)
[edit] Rewrite Clock Analogy
I have rewritten the clock analogy at the introduction. The original paragraph was way too confusing, since 12-hour clock is not strictly modular arithmetic (the usage of 1 to 12 instead of 0 to 11). Therefore I changed it to the 24 hour clock system which is a better analogy. --changyang1230 04:36, 20 May 2006 (UTC)
I can't see the symbols in this page. It just appears as little squares. From the talk it is supposed to be the congruent sign? What about auto install font or something? What font it is?
[edit] It's Not an Analogy!
Sorry Changyang, but IMO you have done this article a disservice. The clock dial is the basis and the origin of modular arithmetic. Your going "digital" has the effect of diminishing the subject and being misleading too. Please read up about the Gauss clock calculator, then you'll understand why a 12-hour clock is the perfect introduction to this article - and to modular arithmetic. Here's a quickie, [1]
Michaelmross 11:57, 8 February 2007 (UTC)
-
-
- The clock dial was the origin?? I find that wildly implausible. What reason do you have to say such a thing? Michael Hardy 17:24, 11 September 2007 (UTC)
-
I think there should be a separate topic titled "Gauss Clock Calculator" with the history and importance of modular arithmetic - including its relation to Fermat's Little Theorem, Euler's proof of it, and its application in cryptography.
Michaelmross 18:29, 8 February 2007 (UTC)
Michael, I believe you wouldn't have described me "doing the article a disservice" if you read the version I edited on: http://en.wikipedia.org/w/index.php?title=Modular_arithmetic&diff=54143511&oldid=54033018
You might be right that the origin of modular arithmetic came from the clock dial, but that particular "clock analogy" paragraph never purported to demonstrate the origin of modular arithmetic. It was only meant to provide a good starting point for beginners who are new to the concept of modular arithmetic.
I changed the 12-hour clock to 24-hour clock because of the common term of "12 o'clock" instead of "0 o'clock", which is confusing when people are just beginning to learn this topic.
Wikipedia should serve as both a guide to beginner as well as a detailed resource for advanced users; but I believe it's best if we avoid confusion in the introductory paragraphs. --203.219.254.46 14:52, 11 September 2007 (UTC)
It was by me, changyang1230. --203.219.254.46 14:52, 11 September 2007 (UTC)
Someone needs to link "modulus" this this page.
(First post, be nice. Sorry if I double posted.)
67.121.121.199 23:24, 12 March 2007 (UTC)
[edit] Reduced residue class
I can't find any mention to a reduced residue class. Nor is there a distinction between absolute least and least positive representations. Peter Stalin 15:18, 27 March 2007 (UTC)
A whole new article could be devoted to residue classes. While this would deal with.....well, the actual arithmetic. I don't even see any mention to the division algorithm or such here.....Peter Stalin 18:04, 27 March 2007 (UTC)
- Yeah, this is a big topic. The best thing to do is write many smaller articles, e.g., residue classs, and then link to them from "see also" in here I'd think. Oleg Alexandrov (talk) 03:21, 28 March 2007 (UTC)
[edit] Proofs of divisibility using modular arithmetic
I have seen elegant proofs of divisibility using modular arithmetic. Would this application fit in this article or elsewhere? Larry R. Holmgren 18:49, 1 May 2007 (UTC)
- I would think so. Michael Hardy 01:06, 23 October 2007 (UTC)
[edit] More examples using 38
I came to see what MA was and was immediately struck with the question of why you chose 38 is congruent to 2 modulo 12, since you could also say that 38 is congruent to 2 modulo 18, was I missing something special about 12, etc. Would it be acceptable to add a sentence stating that there are other valid ways to write 38, but you arbitrarily chose 12 for the article? Or would that disrupt the flow? 65.220.25.66 14:24, 8 June 2007 (UTC)
[edit] Confusing
I found the intro paragraph a little confusing. I think it would be beneficial to show the work; rewording the first example: if my clock is 19:00 and I want to know what time it will be in 8 hours, the notation would be (19 + 8) mod 24, or 27 (mod 24), and the work I would do is , with a remainder of 3, which would give me the time of 3:00. Yngvarr 12:55, 20 August 2007 (UTC)
[edit] Redirect from Boolean Arithmetic??
I'm really confused as to why "Boolean arithmetic" redirects here. After studying Karnaugh maps, logic gates, and boolean arithmetic today in my compsci class, I came to WP to sink it into my head a little firmer and find a completely unrelated topic being redirected to... why is this?
I'm assuming it's because there *is* no Boolean Arithmetic page, and somebody had the absurd notion that modulo was somehow related... at least it has "arithmetic" in the title. oo;
So, can anyone explain the reasoning on this??
Boolean Arithmetic: (A + B)' = A'B'
--69.225.132.158 07:39, 30 October 2007 (UTC)
- The relationship is simple, although not entirely obvious: boolean arithmetic maps to arithmetic mod 2. Mathworld has a similar redirect. I think it deserves a separate article (or at least its own section) just to clarify how things are written using boolean notation. Dcoetzee 12:34, 30 October 2007 (UTC)
[edit] Conversion from congruence to equalivance
I think we should note the two differences and how to translate one from the other.
a ≡ b (mod n)
For some arbitrary constant whole number k: a = b + kn
Like the example with 38 ≡ 14 (mod 12): 38 = 14 + 12k 24 = 12k k = 2
--AllyUnion (talk) 21:44, 9 November 2007 (UTC)
[edit] modular inverse
modular inverse redirects here, but no occurence of "inverse" neither in this article, nor in the discussion, nor in "multiplicative group of integers mod n", and in finite field it isn't either. — MFH:Talk 20:17, 6 December 2007 (UTC)
[edit] RRS
In the line,
- When n ≠ 0, has n elements, and can be written as:
I just want to mention that this has a name ("Reduced Residue System") for when this subject is introduced prior to group theory (whence it would be a ring instead, and a field when the modulus is prime, etc). So I would ammend the wording: "...and can be written as the reduced residue system: ..." but I don't want to interfere with your pedagogy here. Pete St.John (talk) 21:58, 28 February 2008 (UTC)
[edit] equivalence vs equality
In this line:
- It follows that, while it is correct to say "38 ≡ 14 (mod 12)", "2 ≡ 14 (mod 12)" and "2 ≡ 14 (mod 12)", it is incorrect to say "38 = 14 (mod 12)" (with "=" rather than "≡")
Really, it's incorrect? I haven't written a triple-bar equivalence symbol, in the context of arithmetic, since the 70's. Pete St.John (talk) 18:49, 8 March 2008 (UTC)
[edit] Integer remainder
I found it confusing to have .1666 as an example of the remainder. Using real numbers in the example is not a good choice when the rest of the article is about integers. Showing the same remainder with integer calculations would be more clear to me:
38 = 3 ⋅ 12 + 2 2 = 0 ⋅ 12 + 2
" ... For positive n and non-negative a and b, congruence of a and b can also be thought of as asserting that these two numbers have the same remainder after dividing by the modulus n. So,
because, when divided by 12, both numbers have the same remainder, .1666... (38/12 = 3.166..., 2/12 = .1666...). From the prior definition we also see that their difference, a - b = 36, is a whole number (integer) multiple of 12 ( n = 12, 36/12 = 3).
(Jonne6v (talk) 19:54, 22 April 2008 (UTC))