Modulus of Negative Numbers

preview_player
Показать описание
Discrete Mathematics: Modulus of Negative Numbers
Topics discussed:
1) Finding the modulus of a negative number.
2) Calculating -6 mod 5.
3) Finding the mod using the remainder theorem.
4) Shortcut method to find the mod of a negative number.

Music:
Axol x Alex Skrindo - You [NCS Release]

#DiscreteMathematicsByNeso #DiscreteMaths #Relations #ModulusOfNegativeNumbers
Рекомендации по теме
Комментарии
Автор

To simply say this, they used Euclid's Division Lemma over Modular Arithmetic to make it easier for negative integers as well.
(a congruent to b (mod n))
Euclid's Division Lemma:
If a ÷ n leaves a reminder b, and quotient q, then,
a = nq + b where 0 <= r < q
In all numbers,
We search for a number that's nearby as well as less than 'a'.
In negative numbers,
(Eg. For -56, the no. is -60)
In positive,
Hope u know.
And then the difference between the above mentioned 2 no.s is the remainder (here, the answer).

jaya
Автор

Explained it better than any professor I've ever had, I'm looking at this for an Algorithms and Data Structures exam hehe

instantreigen
Автор

Thank you! I spent ALL morning trying to figure out how the R language was coming up with the modulus for negative numbers. Now I know how. Certainty I cannot let a computer language just calculate without knowing exactly what it is doing.

theillustriousjohn
Автор

This is nothing but a great explanation!

oddipyloris
Автор

I am really always thankful to you for uploading this video

Stranger
Автор

Nice explanation of the concept involved.

dineshmathsclasses
Автор

Thank you! searched youtube looking for a clear explanation of finding the modulus with negative numbers and found exactly what I was looking for. Cheers!

smoocher
Автор

Thanks! Studying this for RSA cryptography CTF challenge

rolandcucicea
Автор

Great and clear explanation, voice sounds good. Many thanks!

sarav-Frontend_Engineer
Автор

Add r to your number n, n = r + n such that it is divisible by divisor, that -r is your answer

swaminathbera
Автор

OMG you solved my query in a second, Thanks a ton man

bubblebath
Автор

i wasnt present when the teacher was explaining this lesson, ty for the explaining!

chicabomb
Автор

Cool. But what is the application of the modulo with a negative?

PPSVietnamTroly
Автор

hello sir
sir it is quit difficult to understand that can this playlist is.cover full discreat mathematics which comes in gate exam
PLZZ repaly me if possible
Thank U sir ?!

abhishekraut
Автор

I have been looking for this long time ago but they gave me bullshit except urs thank you 💕

Odarnoyeboah
Автор

fyi every programming language have different implementation modulus just be aware when dealing with negative number

ecengclub
Автор

sir which type of equip you are using for your presentation (mac book or ipad )

razaacademy
Автор

the formula doesn't work on -5 mod 5

onehornstudio
Автор

Well, I wonder what will be the answer to ( a mod - b)
and ( - a mod - b )?
If anyone knows, then please answer

galibmahim
Автор

why are you so slow? you should complete one course first, please complete discrete math course first of all. otherwise, it won't help most of us

gamenation