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

You are not logged in.

- Topics: Active | Unanswered

Pages: **1**

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

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

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

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

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

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

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

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

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

Thank you, bobbym.

I learnt a new thing today!

Offline

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

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

Pages: **1**