Question: How function mod works

Dear, slamu aleekum

If i have

M=100,    j run from 1 to 15,     i run from 1 to M

How can i use       i-j mod M

                          i+j mod M

thanks for help

Please Wait...