How To Find The Inverse of a Number ( mod n ) - Inverses of Modular Arithmetic - Example

This tutorial shows how to find the inverse of a number when dealing with a modulus. When dealing with modular arithmetic, numbers can only be represented as integers ranging from 0 to ( the modulus minus 1 ). This tutorial shows one method that can be used when solving for an inverse of modular arithmetic.
Join this channel to get access to perks:
/ @learnmathtutorials
:)

Пікірлер: 247

  • @trollerxoxox
    @trollerxoxox7 жыл бұрын

    Thank you for explaining it so well. I hate it when some other mathematicians just show off by being cryptic, its so frustrating. Your tutorial was a tiny tad slower but made it so much easier to follow and learn. Thanks.

  • @nahiyanalamgir7056

    @nahiyanalamgir7056

    Жыл бұрын

    The thing is that mathematicians use symbolic representations and formulas to summarize stuff in a compact way - but that's terrible for explanation. They should refrain from doing that and instead explain things in a human-friendly way!

  • @logisec

    @logisec

    Жыл бұрын

    @@nahiyanalamgir7056 Suffering from this right now in my Cryptography class, absolutely soul-sucking explanations in this class

  • @KitKatSam27
    @KitKatSam275 жыл бұрын

    This was amazing. Way better step by step explanation than my professor. THANK YOU!!

  • @sethmarcus1784
    @sethmarcus17845 жыл бұрын

    Excellent video clearly demonstrating how to calculate the inverse of a number(mod n). Very grateful for this video!

  • @bensosfrequents
    @bensosfrequents9 жыл бұрын

    doing Bsc mathematics and computer science in pure maths section (number theory).... this tutorial has really really improved me.... i have not only understood linear congruence but also cryptology... nice and God bless you

  • @MAGonzzManifesto
    @MAGonzzManifesto10 жыл бұрын

    Thank you so much! I feel confident doing these kinds of problems now!

  • @sharvesh0369
    @sharvesh0369Ай бұрын

    Been searching all night for this to learn chinese remainder theorem for tomorrows network security exam. This one is a LIFESAVER

  • @nadianoormohamed4432
    @nadianoormohamed44327 жыл бұрын

    great video!!!!! You explain it in a structured way which is essential for a topic as such. Thanks!

  • @iamriotus
    @iamriotus8 жыл бұрын

    Absolutely amazing tutorial! Preparing for my exam, I couldn't find a good explanation anywhere! You really saved my bacon!

  • @anmaraljanabi7137
    @anmaraljanabi71377 жыл бұрын

    Thanks you very much sir, wish you continues success

  • @kaylaburrell4637
    @kaylaburrell46375 жыл бұрын

    This makes sense now! I decrypted an affine cipher, but afterwards, I couldn’t figure out how I got -5 as the inverse of 5 or how it worked. After watching this video, I worked it out and got -5 again. Apparently, I’m just the type of person to use actual math successfully by accident.

  • @sillupiiks
    @sillupiiks6 жыл бұрын

    Thank You so much! I spent an hour with my teacher today and I think now I finally got the idea:)

  • @MultiDman2011
    @MultiDman2011 Жыл бұрын

    Thank you so much for making this understandable and easy to follow. Life saver!!

  • @c0wqu3u31at3r
    @c0wqu3u31at3r8 жыл бұрын

    Can I just say thank you on behalf of everyone at QMUL taking the Algorithms and Complexity module. This has really come in useful with trying to understand RSA encryption!

  • @mathhacker4764

    @mathhacker4764

    6 ай бұрын

    Same, had to learn this topic to understand RSA encryption!

  • @kingkevthebest3114

    @kingkevthebest3114

    Ай бұрын

    man rsa encryption is 8th grade math

  • @CatherineWeeks
    @CatherineWeeks2 ай бұрын

    Thank you so much for this! I have a discrete final coming up and it's the videos on niche topics like this that are really getting me through. You teach it so well too, thank you so much for putting your effort and time into videos like these.

  • @swizinSims
    @swizinSims3 жыл бұрын

    Thanks so much THIS IS EXACTLY WHAT WAS MISSING IN OTHER VIDEOS MUCH APPRECIATION!!!!

  • @p1q2r
    @p1q2r4 жыл бұрын

    The best explanation for modular multiplicative inverse.. Thanks much!

  • @RobinsonGames
    @RobinsonGames5 жыл бұрын

    This really helped a lot. Feeling much more prepared for my exam now

  • @Robertlavigne1
    @Robertlavigne18 жыл бұрын

    THANK-YOU!!! So intuitive when shown this way. My proff skipped a bunch of steps and it went right over my head. Much appreciated!

  • @amarachiukor4016
    @amarachiukor40162 жыл бұрын

    Your explanations on this topic is so on point. Thanks alot

  • @josephcario2659
    @josephcario26598 жыл бұрын

    boss tnx now I can explain it very well to my students.there are lots of video related to this bt this clearly explains the topic.nice...

  • @learnmathtutorials
    @learnmathtutorials10 жыл бұрын

    If that is the case, I would guess that you simplified a little early. When doing this process, it is important to leave terms as multiples of two numbers, so that one of the numbers can be replaced by an equation above. I hope that helps. :)

  • @TheGamerViewer
    @TheGamerViewer6 жыл бұрын

    Thank you so much! best guy on youtube for this tutorial!

  • @ajk7151
    @ajk71514 жыл бұрын

    awesome explanation! looking forward to check out the rest of the videos. :)

  • @mahendrakotapati9970
    @mahendrakotapati99705 жыл бұрын

    you had explained in very clear manner thanks sir...

  • @ethansimmons82
    @ethansimmons824 жыл бұрын

    I should've found this video first! It was very clear, thank you.

  • @JPfromDport
    @JPfromDport8 жыл бұрын

    Great video, helped me understand how to deal with negative numbers in Bezout's theorem.

  • @HypnotizeCampPosse
    @HypnotizeCampPosse10 жыл бұрын

    Learn Math Tutorials I like how you solved for the remainder values first in the video, then went and did the Reverse Eulcidean Algo (REA) This method is different from every other method I have seen demonstrated (where they do the REA and computer the replacement values on-the-fly). I think you way will keep me organized better, thanks for making the video.

  • @bernie8571
    @bernie857110 жыл бұрын

    wow thank you for making this. it helped a ton!

  • @evermoregwatiwa8001
    @evermoregwatiwa80014 жыл бұрын

    this is the best explanation ever. thumps up man.

  • @amandaniess7028
    @amandaniess70286 жыл бұрын

    Thank God! I have an exam tomorrow and I've never really understood how to use the algorithm to find aninverse. I like u.

  • @greatgymdj
    @greatgymdj10 жыл бұрын

    Very nice video, my lecturer just expected us to guess how to do this! Thanks :)

  • @AndrewBaba
    @AndrewBaba9 жыл бұрын

    The best explanation on the youtube I found so far. Thank you

  • @arefinahammed8408
    @arefinahammed84083 ай бұрын

    after 10 years. Thank you. Was going crazy :')

  • @danielbuckley9651
    @danielbuckley96516 жыл бұрын

    Very nice video, good use of colours. Excellent explanation of the Euclidean algorithm leaving no steps out. Well done.

  • @blacklotus5953
    @blacklotus59535 жыл бұрын

    Great explanation! Way better than my lecture at uni

  • @omberry7950
    @omberry7950 Жыл бұрын

    very very thanks.. i am strugling with inverse. you solved the problem very efficiently .......

  • @PhamQuang
    @PhamQuang4 жыл бұрын

    Having an exam coming next week. You saved me. HUGE THANKS

  • @hafilahmustaffa
    @hafilahmustaffa3 жыл бұрын

    thank you so much. I spend a day to find the solution for d equal to negative. Superb.

  • @declanallan885
    @declanallan8857 жыл бұрын

    awesome video dude, love how you used the different colour schemes to segregrate some of the concepts behind what was going on!

  • @savantdude
    @savantdude4 жыл бұрын

    amazing explanation! saved me a lot of time!

  • @JohnSmith-kf1lq
    @JohnSmith-kf1lq10 жыл бұрын

    Very helpful. Thanks for making

  • @ibejoseph19
    @ibejoseph19 Жыл бұрын

    I've been looking for a video like this for weeks. After another seemingly fruitless search, I prayed and just stumbled on your well explanatory video. Thank you very much.

  • @atomic_godz
    @atomic_godz9 жыл бұрын

    Just what I needed, thanks a lot man

  • @jgilmore518
    @jgilmore51810 жыл бұрын

    Thank you so much! While reading my book I was completely lost! You made this so simple to follow and understand. Thanks again!

  • @vestigialSmile
    @vestigialSmile5 жыл бұрын

    Thanks man! Came in handy with Abstract Algebra

  • @NandaAcademies
    @NandaAcademies3 жыл бұрын

    Excellent explanation which is useful in understanding RSA algorithm.

  • @CSBIBLE21
    @CSBIBLE214 жыл бұрын

    this was very good, exactly what i was looking for

  • @bharathraj1646
    @bharathraj16463 жыл бұрын

    Thanks a lot , it was very helpful. Could you please make more videos on modular arithmetic algorithms . It would really help me a lot. Thanks once again :)

  • @darrenmau1942
    @darrenmau19429 жыл бұрын

    Well explain, good example, thank you very much that helps so much

  • @Arkansas28
    @Arkansas282 жыл бұрын

    Excellent, thanks for the video.

  • @Tuzkichen
    @Tuzkichen6 жыл бұрын

    very clear explanation, thanks!

  • @chnoco
    @chnoco6 жыл бұрын

    Thank you so much this is so useful great job!

  • @fairlymoon448
    @fairlymoon4487 жыл бұрын

    hey any chance you can make a playlist of these so we know which order to go it? just watched the positive mod change vid and im pretty sure next should be the negative mod but its this? which i dont think should be next?

  • @TaylorCaRRtel
    @TaylorCaRRtel9 жыл бұрын

    Studying for my final and couldn't figure this out for the life of me. Your explanation was great. Thank you

  • @zetsubou-chan
    @zetsubou-chan2 жыл бұрын

    Thank you for a great explanation!

  • @learnmathtutorials
    @learnmathtutorials10 жыл бұрын

    Thank you. Not every number in a mod field will necessarily have an inverse. For example 2 (mod 4) does not have and inverse since 2*0 = 0 (mod 4) .... 2*1 = 2 (mod 4) ... 2*2 = 0 (mod 4) ...2*3 = 2 (mod 4) ... none of these results produce 1 (mod 4) and you have checked 2*0 , 2*1 ,..., 2*(n-2) , 2*(n-1) where n is the mod.

  • @user-tv7vo2jd1q
    @user-tv7vo2jd1q2 жыл бұрын

    Thanks you!! it is really helpful for me to understand.

  • @adangonzales8085
    @adangonzales808510 жыл бұрын

    5 Star rating for this video!

  • @shubhamchaudhari790

    @shubhamchaudhari790

    10 жыл бұрын

    r u mad ..... :P :P

  • @danielmartino8068
    @danielmartino80683 жыл бұрын

    Thank you for the explanation, you say me a lot of theory

  • @richardwalters9249
    @richardwalters92496 жыл бұрын

    This is a great instructional video ... I still need to clean up some details in my understanding ... but this question: Is there a check you can do to verify the answer ? I’m trying to do 27^-1 (mod 292) compared to 363 ( mod 392) ... or, am I thinking about this wrong ?

  • @kingsleyobi7482
    @kingsleyobi74824 жыл бұрын

    Wonderful tutorial!!

  • @shaheershakeel6851
    @shaheershakeel68512 жыл бұрын

    Thank you! This was the best explanation of EA and EEA I've been through. I still have no idea why tf this thing exists though

  • @aadilmufti4933
    @aadilmufti49335 жыл бұрын

    Great explanation!

  • @apondikevinomondi5003
    @apondikevinomondi50037 жыл бұрын

    You rock. Thanks a lot

  • @vash47
    @vash479 жыл бұрын

    Thank you so much, mate.

  • @medadrufus
    @medadrufus8 жыл бұрын

    Thanks this is awesome!

  • @totasalam7060
    @totasalam70609 жыл бұрын

    thank you sooo much .. u r the best

  • @AndrewT34pot
    @AndrewT34pot8 ай бұрын

    thank you, well explained video

  • @rasberybanana
    @rasberybanana8 жыл бұрын

    very helpful video, are the equal signs at the end supposed to be congruence signs?

  • @SomeOne-el9mr
    @SomeOne-el9mr5 жыл бұрын

    Thanks. You helped me alot

  • @shushmitam.s7884
    @shushmitam.s78846 жыл бұрын

    Great tutorial! :)

  • @akamfoad
    @akamfoad3 жыл бұрын

    great thanks for the explanation!

  • @christanjhayyap2015
    @christanjhayyap20153 жыл бұрын

    This is very helpful

  • @rinzinnorbu3518
    @rinzinnorbu35185 жыл бұрын

    very good expatiation thank you

  • @unminified
    @unminified10 жыл бұрын

    Hello I was wondering what kind of program do you use for all of your videos to write on the computer? Thanks

  • @santiagowhite5467
    @santiagowhite54674 жыл бұрын

    So easy to understand ty

  • @mathhacker4764
    @mathhacker47646 ай бұрын

    Thanks sooooo much.

  • @ZeeshanAhmad-xt4pi
    @ZeeshanAhmad-xt4pi6 жыл бұрын

    so nice explanation .

  • @shanthakumar1833
    @shanthakumar18334 жыл бұрын

    Thanks a lot. Searching the answer for asymmetric key cryptography

  • @amazingmanish
    @amazingmanish6 жыл бұрын

    Clear cut explanation.

  • @hilufabebe4721
    @hilufabebe47212 жыл бұрын

    best explanation

  • @readogamer3515
    @readogamer35156 жыл бұрын

    great! great!! great!!! explanation

  • @darkeus57
    @darkeus577 жыл бұрын

    Bro I love you!

  • @shivanineharkar2571
    @shivanineharkar2571 Жыл бұрын

    Dude you have helped alot😇😇😇😇😇😇😇

  • @abhijithbalan5107
    @abhijithbalan51073 жыл бұрын

    Thanks a Lot Sir

  • @trevorholliday9019
    @trevorholliday90198 жыл бұрын

    Just wonderful

  • @feysalimran
    @feysalimran7 жыл бұрын

    Pretty nice tutorial, even after all these years. Sir am wondering, if we had had a positive number instead of a negative one at + 27(-29)...., would we have still subtracted it from 392 or added it instead?

  • @alial-musawi9898

    @alial-musawi9898

    6 жыл бұрын

    Feysal Imraan 27 (mod n > 27) = 27 So you leave the 27 as is.

  • @gabrielsotolongo8407
    @gabrielsotolongo84078 жыл бұрын

    Great tutorial! All this can be avoided by using matrix multiplication which is a faster and easier route to get the multiplicative inverse of 27 mod 392. It is always good to know both ways of course, but like I said, great tutorial! Maybe I should do a tutorial on how to do it using matrices...

  • @jackbinding5587

    @jackbinding5587

    8 жыл бұрын

    +Gabriel Sotolongo Im curious to how you do it with matrices! haha

  • @gabrielsotolongo8407

    @gabrielsotolongo8407

    8 жыл бұрын

    +Jack Binding it is really easy, I could make a video an upload it if you like, anyways there is none here in KZread of that type.

  • @jackbinding5587

    @jackbinding5587

    8 жыл бұрын

    +Gabriel Sotolongo if you do decide to make one defo tell me! Haha

  • @gabrielsotolongo8407

    @gabrielsotolongo8407

    8 жыл бұрын

    +Jack Binding I will try to make the video today (no promises) ;)

  • @jackbinding5587

    @jackbinding5587

    8 жыл бұрын

    haha, im grateful if you upload it any time man! I've just not seen anything modulo been solved with matrices so im just curious!

  • @andreitimofte886
    @andreitimofte8869 жыл бұрын

    Thank you!

  • @logankoester2845
    @logankoester28459 жыл бұрын

    In the step where you calculated 363 by subtracting 29 from 392 (392-29=363) does the negative come from the -29? So if 29 were positive would you add 29 to 392?

  • @waltvanamstel6807

    @waltvanamstel6807

    9 жыл бұрын

    Logan Koester He found the answer to be -29. That is a valid answer, but you will often be asked to find the positive inverse. -29 and 363 are essentially the same number under mod 392.

  • @umeshstudypoint7495
    @umeshstudypoint74953 жыл бұрын

    Very helpful

  • @sjskong
    @sjskong5 жыл бұрын

    Thanks!

  • @philteng760
    @philteng7603 жыл бұрын

    Thank you.

  • @fredrikvensennorum8951
    @fredrikvensennorum89519 жыл бұрын

    Great! thx a lot

  • @Mazloum1000
    @Mazloum10006 жыл бұрын

    better than my indian lecturer will ever explain it with her annoying accent, thank you good sir, and this definitely warrants a subscribe

  • @adzplus1
    @adzplus13 жыл бұрын

    It did help to explain what the textbook had in written words and figures...but it is still difficult because you still have to go through all the numbers on the Euclidean algorithm to get to the bottom of this. So imagine if you have a gcd(80, 98) it would be endless!!

  • @u10100160
    @u10100160 Жыл бұрын

    謝謝你!!!

  • @HighFlyier11
    @HighFlyier117 жыл бұрын

    RESPEK! Every other KZread tutorial should do future students of this a favor and take off their videos. Most clear and concise. Respek once again

  • @EsteBandido_YT
    @EsteBandido_YT5 жыл бұрын

    question, and a really big one. by the equal sign, you mean the congruence, correct?

  • @icookyorice1
    @icookyorice15 жыл бұрын

    thanks lad