Math Is Fun Forum
  Discussion about math, puzzles, games and fun.   Useful symbols: ÷ × ½ √ ∞ ≠ ≤ ≥ ≈ ⇒ ± ∈ Δ θ ∴ ∑ ∫ • π ƒ -¹ ² ³ °

You are not logged in.

#1 2011-07-07 01:55:08

123ronnie321
Member
Registered: 2010-09-28
Posts: 128

Modulo operation

Hi,

I have a question - I have just looked up the internet for modulo operation.

So is
1)2000 mod 400 = 0
2)2004 mod 400 = 4?

Offline

#2 2011-07-07 01:57:03

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Modulo operation

Hi;

Modulo is simply the integer remainder when the division is done. Written like this:

Means a remainder of 4 is left when 2004 is divided by 400.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#3 2011-07-07 02:01:00

123ronnie321
Member
Registered: 2010-09-28
Posts: 128

Re: Modulo operation

So in the other thread(http://www.mathisfunforum.com/viewtopic.php?id=15927), y = year (mod 400) means y is the remainder when the year is divided by 400, right?

Last edited by 123ronnie321 (2011-07-07 02:02:09)

Offline

#4 2011-07-07 02:03:41

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Modulo operation

Hi;

Yes, that is correct.

Mods are always less than the mod itself.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

#5 2011-07-07 02:06:15

123ronnie321
Member
Registered: 2010-09-28
Posts: 128

Re: Modulo operation

Thank you, bobbym.
I learnt a new thing today!

Offline

#6 2011-07-07 02:08:38

bobbym
bumpkin
From: Bumpkinland
Registered: 2009-04-12
Posts: 109,606

Re: Modulo operation

You already knew it! Modulo was invented by Gauss.  When you learnt how to tell time you were being exposed to modular arithmetic.


In mathematics, you don't understand things. You just get used to them.
If it ain't broke, fix it until it is.
Always satisfy the Prime Directive of getting the right answer above all else.

Offline

Board footer

Powered by FluxBB