Modulus properties!

So i have a value x which is equal to (a+b+c)%m
Now i have another value d that i need to substract from x such that the new val is equal to
(a+b+c-d)%m
Does anyone know the proper formula for it?
Eg
(3+4)%3=1
Now if i try to substract 2 from 1 i ll get -1
But the actual answer should be
(3+4-2)%3=2

1 Like

This is from Ongoing Long. I don’t know if I should answer this or not.

I did not ask this question based on the ongoing long.But if you think it will affect the ongoing long dont answer.

you can simply google it.

1 Like

But I can help you…type this in Google:- Arithmetic Modulo Properties and you will get your answer :slight_smile:

1 Like

karan in div 2 6th question what is N(L) and N® it sucks me thoda sa batao…please

konsa wala hai ye… :grimacing::grimacing:

Muje toh is baar koi bhi question nhi aa raha hai ree :rofl::rofl::rofl::rofl::rofl:

reallly … ? ?? ? ? ?

1 Like

Yes :slight_smile: :slight_smile: :slight_smile: :slight_smile: :slight_smile:

achha. konsa que ? :thinking: XD

1 Like

haa to password de do muje. I won’t copy as you don’t know anything XD

2 Likes

profile to kuch or hi bolti hai…yrr thoda sa batao what is N(L) and N®…question me nhi bta rakha acch se ,mene pucha bhi

1 Like

Diya to hai que me. Baki k que pe focus Karo :joy:

1 Like

N(l) and N® are the number of digits in ‘l’ and ‘r’ :slight_smile: :slight_smile:
Kaash ye question muje aata :stuck_out_tongue:
Ram bharose Hindu Hotel Hai Yahaan :slight_smile:

Ram Bharose hotel , chalo @L_returns khana khane chalo,pese bhai dega:joy::joy::joy:

2 Likes

matlab if L =349 then N(L) = 3 na

Yes… :stuck_out_tongue:

1 Like

(a+b -c + M ) % M
when ever you see - terms add + M then take modulo
if a+b-c = x where x is -ve then
do ( x + jM) % M where jM > abs(x)

1 Like