Math, asked by Akashabhi1348, 1 year ago

Difference between modular arithmetic and ordinary arithmetic

Answers

Answered by santy2
8

In ordinary arithmetic the resulting value will be from an infinite set of values whereas in modular arithmetic, the resulting value will be from a finite set of values.

Example :

Lets take addition of two numbers.

In ordinary arithmetic the sum of two numbers will be an integer in the range of :

(...., - 3, - 2, - 1, 0 , 1, 2, 3, .....)

In modular arithmetic the sum of two integers say (x + y) mod n will be in the range :

(0, 1, 2,... n-1)

Similar questions