Modular exponentiation

Sdílet
Vložit
  • čas přidán 27. 10. 2014
  • Using the repeated squaring algorithm to calculate 2^300 mod 50.
  • Jak na to + styl

Komentáře • 174

  • @VFXCommander
    @VFXCommander Před 8 lety +231

    Perfect explanation, despite the twitching.

  • @fzndn-xvii
    @fzndn-xvii Před 7 lety +97

    When a CZcams video explains explains better than your professor. Thanks!

  • @outlaws9295
    @outlaws9295 Před 7 lety +33

    Besides the occasional issues with the video itself, this was a very great demonstration. Excellent job!

  • @rcollins0618
    @rcollins0618 Před 8 lety +71

    Such a simple demonstration really beats trying to learn this from just reading formal notation. thank you very much! (I often have this trouble with discrete math - it's not hard stuff, I just get caught up in keeping all the variables in my head).

    • @outlaws9295
      @outlaws9295 Před 7 lety +7

      Exact same issue here, man. I took one look at this process (or at least a very similar one) in my textbook and it made little to no sense. Once I saw this video, the process became crystal clear. I know that the formal notation is mathematically correct, but it's usually not the best way to demonstrate a concept for the first time.

  • @jsteezeful
    @jsteezeful Před 4 lety +10

    This is so good it also makes me question my professor and their pathetic book that tries to explain this in 2 paragraphs.

  • @alexisreynolds4277
    @alexisreynolds4277 Před rokem

    Finally a good example! I looked at so many videos that didn't help before finding this one. Thank you!

  • @amarthya.t9842
    @amarthya.t9842 Před 6 měsíci

    Even after 9 years of upload this is just great demonstration. thank you mate.

  • @joshuagroeschl7001
    @joshuagroeschl7001 Před 2 lety +4

    This is most stupendous indeed, I was struggling with this conceptually for some time before stumbling across this video. I appreciate you for taking the time to curate these works! Excellent example and explanation.

  • @FRANCISCORODRIGUEZ-vq2jj
    @FRANCISCORODRIGUEZ-vq2jj Před 6 lety +41

    my professor wasn't able to teach me in a 3 hour class period what you just taught me in 11 min and 36 seconds. thank you so much!

    • @ZacMitton
      @ZacMitton Před 4 lety

      Or 5 minutes at 2x speed

    • @ianchen1962
      @ianchen1962 Před 4 lety

      @@ZacMitton haha

    • @ko-Daegu
      @ko-Daegu Před 2 lety

      @@ZacMitton I watched at 1.5 while skipping

    • @MyOneFiftiethOfADollar
      @MyOneFiftiethOfADollar Před 9 měsíci +1

      The difference is you did not sleep during this video AND of course it was your professor's fault for not being able to keep you awake.
      Be accountable for your own learning outcomes rather than blaming others.

  • @deano50z
    @deano50z Před 5 lety

    Excellent video, followed along with a notepad and pen and understood it less than 10 mins later. Thanks pal!!

  • @terriblast8076
    @terriblast8076 Před 7 lety +1

    One of the best tutorial I've watch..You discuss well

  • @sampugh6404
    @sampugh6404 Před 5 lety +3

    This just saved me on security homework. Thank you so much. Very cool concept

  • @psychedelicfungi
    @psychedelicfungi Před 9 lety +26

    One very helpful video! Thanks!
    (Unfortunately the screen flicker was really distracting)

  • @alexrobert4614
    @alexrobert4614 Před 5 lety

    Best tutorial out there. My prof sucks. Took me 2 days to understand fully. Thank you

  • @yaggikjalan
    @yaggikjalan Před 3 lety

    This helped me so much for rsa algorithm questions!
    Thanks a million ☺

  • @simonliu2268
    @simonliu2268 Před 7 lety +1

    Amazing thank you very much, I didn't understand my professors abbreviation of this, but you did a very VERY good job.

  • @NOSHEDMANTIS
    @NOSHEDMANTIS Před 7 lety +1

    Great Video, clear explanation and good audio quality (essential).

  • @tonychen1083
    @tonychen1083 Před 7 lety +1

    Thank you for your excellent explanation!

  • @monowar6723
    @monowar6723 Před 6 lety +1

    Thanks a lot ! i will remember this video for the rest of my life.

  • @shinwoo_park
    @shinwoo_park Před 4 lety +1

    it helps me a lot! thank you sir. What a nice lecture

  • @memento_mori6019
    @memento_mori6019 Před 5 lety

    Excellent breakdown. Thank you.

  • @SpookyRumi
    @SpookyRumi Před 2 lety

    Amazing! You saved me so much time with this

  • @JoseSanchez-vv1zd
    @JoseSanchez-vv1zd Před 7 lety

    Great job! Thanks for the clear explanation! :)

  • @stea27
    @stea27 Před 7 lety +2

    Very informative, easy to understand it in your demonstration. Thank you!

  • @kdpoint4221
    @kdpoint4221 Před 5 lety

    it took 3h to get a perfect explanation..... thanks a lot

  • @harley3514
    @harley3514 Před rokem

    Thank you, other videos on this were not making sense for me, but this did

  • @user-vq1ef8kn9m
    @user-vq1ef8kn9m Před 6 lety

    That was an awesome explanation. Solved my problem~.

  • @sebastianrauch2758
    @sebastianrauch2758 Před 3 lety +1

    Thanks for the good explanation. Realy helped a lot. :D

  • @ianchen1962
    @ianchen1962 Před 4 lety

    dang that's so cool. Learned a lot from this

  • @aries3690
    @aries3690 Před 2 lety

    Thank you so much for your clear explanation!

  • @EndietheEnderman
    @EndietheEnderman Před 5 měsíci

    Helped heaps! Thanks

  • @costerchimbwanda3936
    @costerchimbwanda3936 Před 9 lety +11

    saw the screen flickering..thought t was a problem with my pc..anyway was a great illustration

  • @Th1sUsernameIsNotTaken

    Thank you for this! other video's I've seen just completely skip steps or don't explain. Can't get a meeting with my teacher for a few days (online learning) and the book didn't explain any of the random jumping it was doing (didn't do steps, just jumped to the "solved" part). Now I can actually practice lol.

  • @RobinDuda
    @RobinDuda Před 2 lety

    Beautiful.

  • @hardinrami8500
    @hardinrami8500 Před 4 měsíci

    Thank you for the explanation! It took me a while to get it though.

  • @DVRhm25
    @DVRhm25 Před 2 lety

    I watched this drunk. It all makes sense. Nice work prof!

  • @vineet1034
    @vineet1034 Před 8 lety +4

    what happen if base is 132 or bigger

  • @stephaniagambaroff820
    @stephaniagambaroff820 Před 5 lety

    excellent explanation! Thank you.

  • @KhandkarAsifHossain
    @KhandkarAsifHossain Před 5 lety +2

    Awesome video. But I am having trouble finding the mod with high base number such as
    26^37 mod 77
    can u help with that.
    26^8 seems to pose a problem.

  • @krgaming1650
    @krgaming1650 Před 4 lety

    Thank you, you saved my grade on today's exam.

  • @anhminhtran3438
    @anhminhtran3438 Před 5 lety

    Very well explained. Thank you

  • @priyankmungra29
    @priyankmungra29 Před 3 lety

    nice explanation. Thank you for your efforts.

  • @kriswalsh1020
    @kriswalsh1020 Před 2 lety

    On the step where you do 200+128+64+8 how'd you get the 64 and 8. I have a question similar but it's 221.

  • @SitWithItBob
    @SitWithItBob Před 2 lety

    This helped a lot, thanks!

  • @jonty3551
    @jonty3551 Před 4 lety

    Great explanation man..... appreciate it🤝👍

  • @Sahandkeshavarz
    @Sahandkeshavarz Před 6 lety

    how would i do that if my exponent is greater than 255 then i wont be able to convert to binary

  • @b34amanahmed
    @b34amanahmed Před 9 měsíci

    He is brilliant and excellent
    Once look into this u will find ur solutions

  • @rafsanjanimuhammod309
    @rafsanjanimuhammod309 Před 8 lety

    Really Nice One, Sir !!!

  • @MichelleVo
    @MichelleVo Před 9 lety

    How did you figure out the binary for 200 from scratch?

  • @KoksMOks
    @KoksMOks Před 3 lety

    that alg is amazing AF

  • @shailendrakumar3130
    @shailendrakumar3130 Před 5 lety

    Thanks man, searching for this information from mornimg

  • @rajatsingh8143
    @rajatsingh8143 Před rokem

    best explanatioon in the world
    saved me for exam

  • @dialamark7863
    @dialamark7863 Před 4 lety

    I loved it. Thank you

  • @tinkerbajwa
    @tinkerbajwa Před 2 lety

    wow I understood it right away!
    Thankyou so much...

  • @ericstroud1
    @ericstroud1 Před 6 lety

    Great video!

  • @matkenis3013
    @matkenis3013 Před 5 lety

    I was looking for modular exponentiation explanation all over youtube and it all pretty much was garbage. Thank you for actually explaining things ffs :)

  • @Chriib
    @Chriib Před 6 lety

    Cool trick. I will use this trick on my exam today.

  • @mdmuktadirmazumder284
    @mdmuktadirmazumder284 Před 3 lety

    love you 3000mod3000

  • @ninjanothing8343
    @ninjanothing8343 Před 3 lety

    Thank you very much! Very helpful

  • @owaisali995
    @owaisali995 Před 4 lety

    really thankfull for this video.. great explanantion...

  • @navyakakarlapudi6126
    @navyakakarlapudi6126 Před 6 lety

    Nice explanation sir.Thank u so much......

  • @jiaxinli1674
    @jiaxinli1674 Před 4 lety +1

    Thanks for saving my ICS 6D

  • @haideralfadhel8431
    @haideralfadhel8431 Před dnem

    Thank you!

  • @stanger8992
    @stanger8992 Před 5 lety

    Ok that is kinda obvious but i have an exam soon where i will have to calculate 30 of such numbers without using calculator, and it has to take max 10 min because it's one of 18 excersises on that exam. How do i go about solving for example 33^350 mod 7 in 20 seconds, using only pen and paper?

  • @subizsunuwar7068
    @subizsunuwar7068 Před 5 lety

    thanks sir ....it's help me, while calculating encryption of msg.

  • @Just_an_alien1
    @Just_an_alien1 Před 5 lety

    Helped me a lot thank you

  • @meysamamini9473
    @meysamamini9473 Před 3 lety

    Was very vary useful Thanks a Lot !

  • @directx872
    @directx872 Před 4 lety

    This is so fucking awesome. I now have *the power to compute*

  • @ramkumarnj7617
    @ramkumarnj7617 Před 6 lety

    Excellent!

  • @lilbpack2100
    @lilbpack2100 Před 5 lety

    brilliant. thank you!!

  • @swordclash6618
    @swordclash6618 Před 5 lety +1

    The explanation is A+ but the screen flickering almost made me go nuts.

  • @ketanbhalerao1795
    @ketanbhalerao1795 Před 6 lety

    Damn Good ! Thanks a Bunch, man !!

  • @DanielVazquez
    @DanielVazquez Před 5 lety +1

    Is there a shorter way? I mean, I just had a test and I was expected to solve 2^75 (mod 73) in one minute or so.

  • @nikhilchoudhary277
    @nikhilchoudhary277 Před 4 lety

    WOOOOOWWWWW! What an Explainantion

  • @EasiestTutor
    @EasiestTutor Před 9 měsíci

    thank you rhabk you i was struggling this was best and easiest

  • @larsmees4952
    @larsmees4952 Před 4 lety +1

    Wouldn't it be faster to first perform a modular division using the same value (50) on the exponent? 2^(200 mod 50) = 2^0 = 1
    Or is this just a coincidence?

  • @hungryghost5589
    @hungryghost5589 Před 5 lety

    great video, thanks

  • @zanonymousruiz9697
    @zanonymousruiz9697 Před 3 lety

    This saved my entire ass- Thanks!

  • @iuseyoutubealot
    @iuseyoutubealot Před rokem

    u are a legend

  • @rishabhbharti7491
    @rishabhbharti7491 Před 6 lety

    Crystal clear.

  • @urensoft6662
    @urensoft6662 Před 8 lety

    you are just awesome...

  • @beasty45
    @beasty45 Před 9 lety

    Thank you , Thank you, Thank you!!!!

  • @TariqAbdulGhani-kt1nk

    very helpful thank u🙂

  • @zaferkhourdaji1958
    @zaferkhourdaji1958 Před 6 lety

    Best Explanation

  • @sindisiwemncube4665
    @sindisiwemncube4665 Před 4 lety

    How did you get that binary number? 11001000?

  • @syednawaid6980
    @syednawaid6980 Před 8 lety +1

    nice explanation.....

  • @MotorHeadTech
    @MotorHeadTech Před 8 lety

    I don't get the 31 and 11 parts I get everything else tho please help

  • @diegoi1313
    @diegoi1313 Před 6 měsíci

    Thanks!

  • @abhigyanraha5620
    @abhigyanraha5620 Před 5 lety

    wow! amazing.

  • @ayaanpuri5697
    @ayaanpuri5697 Před 5 lety +1

    lots of really large exponents' modulos are equal to 1 by fermat's little theorem

  • @salounik.2894
    @salounik.2894 Před 7 lety

    AMAZING!!!!!!

  • @AlexandrBorschchev
    @AlexandrBorschchev Před 4 lety

    Im grade 9 learning this for a math contest. It looks crazy useful and really really cool, i want to know how to master this. Thank you for the video.

  • @dominikchynoradsky4228

    amazing, thanks

  • @figurativelyrazzmatazz7656

    I don't understan why you replaced the 3^8 with 31, why are they the same?

  • @cbabrunal
    @cbabrunal Před rokem

    In a few minutes you explain what my university professor couldn't in months

  • @SHIVASURYA
    @SHIVASURYA Před 8 lety

    really useful one :)

  • @skurt21
    @skurt21 Před 9 měsíci

    I found a problem, and since nobody mentioned it in 9 year, it's probably on my side.
    I follow the remainders or moduli (?sorry) for powers up to 32.
    But according to my calculations 5 to the power of 64 mod 50 is 20 and not 31 as you mention.
    Am I really wrong?
    I calculated it in powershell

    • @skurt21
      @skurt21 Před 9 měsíci

      yep, I'm the problem, sorry.
      I have no idea what I did wrong, but I'm getting the same numbers as you do now. Sorry (y)

  • @epicglitchtv7092
    @epicglitchtv7092 Před 3 měsíci

    Awesome

  • @jeffryyapin1399
    @jeffryyapin1399 Před 9 lety

    One Question
    How about if the exponent was smaller then 128. for example 120 did we need to know the 128bit??

    • @sgut1947
      @sgut1947 Před 9 lety

      +Jeffry Yapin No, you don't need the 128, because 120 = 64+32+16+8 (binary 1111000). In general, you only need up to the power of two that's less than the required exponent.

  • @camille7044
    @camille7044 Před 9 měsíci

    Good video. TY!