My Math Forum  

Go Back   My Math Forum > College Math Forum > Number Theory

Number Theory Number Theory Math Forum


Reply
 
LinkBack Thread Tools Display Modes
October 1st, 2018, 03:51 AM   #1
Member
 
Joined: Apr 2011

Posts: 31
Thanks: 0

Modulo negative integer

Why can't we have modulo negative number? I have never seen this.
matqkks is offline  
 
October 1st, 2018, 03:57 AM   #2
Senior Member
 
Joined: Feb 2016
From: Australia

Posts: 1,706
Thanks: 597

Math Focus: Yet to find out.
Why not?

https://math.stackexchange.com/quest...egative-number
Joppy is offline  
October 1st, 2018, 04:02 AM   #3
Senior Member
 
Joined: Oct 2009

Posts: 544
Thanks: 174

Quote:
Originally Posted by Joppy View Post
I think he means something like 2 module -3.

This is indeed very uncommon, but it is entirely well-defined.

Notice that x=y mod N if and only if N divides x-y. But N divides x-y if and only if -N divides x-y.

So modulo -N is the same as modulo N.

Even modulo 0 and modulo 1 are well-defined. The integers modulo 0 are just the integers themselves, for example.
Micrm@ss is online now  
Reply

  My Math Forum > College Math Forum > Number Theory

Tags
integer, modulo, negative



Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Each integer is congruent modulo n to precisely one of the integers 0,1,...,n-1. beesee Number Theory 1 January 5th, 2017 04:09 AM
How to find out modulo 2*pi of a negative radian? iVenky Number Theory 1 March 28th, 2013 09:28 AM
Negative Modulo Arithmetic Newton31619 Number Theory 3 April 1st, 2012 09:55 PM
modulo division with negative power ? smslca Number Theory 0 January 5th, 2012 04:13 AM
Modulo and Integer Division Articuno Number Theory 10 June 14th, 2009 12:11 PM





Copyright © 2018 My Math Forum. All rights reserved.