How to Break Cryptography | Infinite Series

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ธ.ค. 2024

ความคิดเห็น • 476

  • @flymypg
    @flymypg 7 ปีที่แล้ว +101

    Watch straight through.
    Start over. Pause, think, pause, think.
    Watch again. Pause, Google, wikipedia, pause, Google, mathworld.
    Sleep.
    Watch again. Write some Python.
    Peek ahead at Shor's Algorithm.

    • @MFCmashups
      @MFCmashups 7 ปีที่แล้ว +3

      Ah, yes good ol python. Get the anaconda bundle for all the imports you'll ever need

    • @jpkjnn6733
      @jpkjnn6733 7 ปีที่แล้ว +6

      So it's a little after 1:30AM and I've after binge-watching whatever related video popped up next I've been slowly ground by the general terribleness of users on youtube. However, your comment kinda made my day and restored a little faith in humanity.
      So glad that there are people out there who want to learn, actively seek knowledge, thoughtfully contemplate new ideas, experiment with and apply that knowledge and just generally advance the arts and move the whole world along. Thank you!

    • @flymypg
      @flymypg 7 ปีที่แล้ว +6

      I made the comment because it wasn't my usual reaction to a great TH-cam video. Normally, my brain goes: "That's cool! What's next?" This time my brain went: "FEED ME NOW!"

    • @moversti92
      @moversti92 5 ปีที่แล้ว

      ???
      Profit

    • @charliewalker9148
      @charliewalker9148 4 ปีที่แล้ว

      hahhahahha this is me but 3 years after you said it

  • @MD-pg1fh
    @MD-pg1fh 7 ปีที่แล้ว +5

    I would just like to express how much I love that this channel is not afraid of challenging its viewers. Thank you for making content for viewers with a nonzero attention span.

  • @kevinexit9840
    @kevinexit9840 7 ปีที่แล้ว +9

    I studied discrete math in high school and regretted not being math or compsci major in uni. I understand about 40% of this. Shor’s algorithm was new to me. I knew Euclidean algorithm. Thank you for this! I will now study number theory for RSA to fully solidify my understanding! Thanks so much PBS giving me direction on where to study next.

  • @Ajaxify
    @Ajaxify 7 ปีที่แล้ว +151

    OMG! I am so excited for the next episode. I am a computer scientist and have always wanted a good explanation of Shor's algorithm and how it runs on a quantum computer! Thanks PBS Infinite Series!

    • @jasertio
      @jasertio 7 ปีที่แล้ว +21

      Johnathon Schultz shor you are

    • @XxZigiixX
      @XxZigiixX 7 ปีที่แล้ว +11

      labobo Do you even know what your saying??

    • @durnsidh6483
      @durnsidh6483 7 ปีที่แล้ว +6

      labobo quantum computing is rarely ever mentioned in computer science courses since it deals with quantum mechanics and most computers are built on boolean logic.

    • @durnsidh6483
      @durnsidh6483 7 ปีที่แล้ว +2

      Johnathon Schultz What was shown was not Shor's algorithm, that is a quantum algorithm and much more complicated. Here you have to guess numbers for a repeatedly until you find a good result.

    • @marcelo55869
      @marcelo55869 7 ปีที่แล้ว +2

      Quantum computers are good at fourier transformation .
      Fast fourier transformation is O (n*2**n). Quantum fourier transformation is O (n**2).
      if you can reduce your problem to a fourier transformation, then you go from exponential complexity to quadratic.
      Not all algorithms have a step reduceble to a FT so not all of them will enjoy the minimization on complexility to polinomial time.

  • @haflam.
    @haflam. 7 ปีที่แล้ว +33

    1:33 Actually, testing all the primes smaller then square root of 35 will do.

    • @YellowToad
      @YellowToad 4 ปีที่แล้ว +1

      so only 2, 3, and 5

    • @pierfrancescopeperoni
      @pierfrancescopeperoni 3 ปีที่แล้ว

      That's when you have to check if 35 prime, since you will always find a factor less than square root of n is n is not prime. But that is not enough to factorise the number!

    • @pierfrancescopeperoni
      @pierfrancescopeperoni 3 ปีที่แล้ว

      Unless you divide n by the prime factor you found and repeat the procedure.

    • @Schnorzel1337
      @Schnorzel1337 3 ปีที่แล้ว

      @@pierfrancescopeperoni No Hans is right. His argument is the following: If a prime N = p * q is present and p

  • @deannasmith4443
    @deannasmith4443 7 ปีที่แล้ว +6

    as a former cryptographer for the army...
    this was a good video review for RSA.
    well done.

    • @Tadesan
      @Tadesan 6 ปีที่แล้ว

      deanna smith '... We aren't as cool as the Marines.'

  • @stephescobar575
    @stephescobar575 7 ปีที่แล้ว

    She is easily the best non-fiction presenter on youtube. Keep up the good work, PBS. And of course props to Kelsey.

  • @rydohg
    @rydohg 7 ปีที่แล้ว +1

    I've learned more from this channel than I have so far in pre-calculus

  • @keithrobertson7579
    @keithrobertson7579 7 ปีที่แล้ว +2

    Episode suggestion: In RSA cryptography we create a key based on two large primes. You've discussed the difficulty in finding the factors of a large number; it seems even harder to demonstrate that a large number has no factors, i.e. is prime. Yet millions are produced every month. On my computer I can generate a X.509 certificate with its own key nearly instantly (key-pair actually, but irrelevant here), which means it has to find two large primes to form the key. I believe we start by randomly generating a large number, then advancing until we find one that's prime; do this twice, and we have two primes which are unlikely to match those for any other key generated. But during each progression, how do we determine that a large number is prime? I would love for you to discuss the numerical methods used to determine that a large number is prime. And when the process tells us a number is prime, how certain are we it is right? Are we 100% certain or is it "just" highly probable?

  • @Twisol
    @Twisol 7 ปีที่แล้ว +163

    0:44 'q' isn't a digit! (Unless we're using base 27...)

    • @pbsinfiniteseries
      @pbsinfiniteseries  7 ปีที่แล้ว +93

      10 points for attention to detail. Wow!

    • @MrZyroid
      @MrZyroid 7 ปีที่แล้ว +3

      Lol wow

    • @undeadreaper3x
      @undeadreaper3x 7 ปีที่แล้ว +4

      So q is 26?

    • @stumbling
      @stumbling 7 ปีที่แล้ว +8

      Yes, considering that was on screen for roughly q seconds.

    • @snatchngrab8262
      @snatchngrab8262 7 ปีที่แล้ว

      Jonathan Castello Digits are whatever symbol we decide. Q could represent a value in any system, and base 27 (or higher) need not necessarily use Q as a digit.
      Which makes for a better encryption anyway, if only you and the recipient know what the symbols mean. In simpleat form, it is a basic cypher which spells words by using a matched alphabet. a is b, b ia c, d is f
      Just like the cryptograms in newspapers next to the crosswords.
      My only point in posting is to say "never assume", and especially with cryptography.

  • @erikziak1249
    @erikziak1249 7 ปีที่แล้ว +3

    It is scary how much I forgot, but watching this some remote memories popped up again. I never was really into this stuff back then, considered it not that interesting. Now I see so much more, but at the same time forgot even more.

  • @andrasfogarasi5014
    @andrasfogarasi5014 6 ปีที่แล้ว +43

    How to factor huge numbers:
    Step 1: Get a computer that will last a trillion years.
    Step 2: Factor.

    • @dank6617
      @dank6617 5 ปีที่แล้ว +2

      Answer: 42

    • @carlkai9832
      @carlkai9832 3 ปีที่แล้ว

      I dont mean to be offtopic but does any of you know a trick to log back into an Instagram account?
      I was dumb lost my password. I would appreciate any help you can offer me!

  • @alexanderreusens7633
    @alexanderreusens7633 7 ปีที่แล้ว +1

    Just trying something to speed up step 2 a tad.
    You only need to find one to have the other.
    In order to find the smaller of the 2 prime factors of N, you only have to check all the primes up to sqrt(N).
    One prime factor of N is less than sqrt(N), and the other one is greater.
    (Note: there is a possibility that the 2 prime factors are both sqrt(N), however, as we are dealing with encryption, this seems to me a very stupid N to use, so I don't mention it anymore)
    Now p=gcd(A1,N), q=gcd(A2,N) and p>sqrt(N), qsqrt(N)
    r>log(N)/log(a)
    (Note: if p is the smaller prime factor, the result is still valid as than A2>sqrt(N), which comes to the same conclusion)
    As step 2 is the longest step, probably because the periode r can become very large, it would be wise to take the value of a large. It's not a guaranty that r will be smaller, but now at least it is not *necessary* for r to be huge.
    Hope I didn't make any mistakes in my reasoning

  • @13thxenos
    @13thxenos 7 ปีที่แล้ว

    I can't believe how much I love you, and this channel. More than PBSSpaceTime actually.
    I've read this attack in my cryptography class 4 years ago, and I was trying to understand Shor's algorithm for the last two years. Yet just watching this video made me understand it! Without even checking the Shor's paper again!

  • @Reddles37
    @Reddles37 7 ปีที่แล้ว +10

    Wow, I won! I completely forgot the t-shirts were a thing :).
    I love the show by the way, keep up the great work!

    • @xhitiz22
      @xhitiz22 7 ปีที่แล้ว +2

      Congrats mate (Y)
      Though neither i understood the video nor the question. :(

  • @scheimong
    @scheimong 7 ปีที่แล้ว +1

    Thanks so much for this video! I'm a first year computer science student and I am really struggling with discrete maths, and this video really helped.

  • @numankaraaslan
    @numankaraaslan 7 ปีที่แล้ว +4

    Until 5:15 it was elementary math and i was happy. After that, hell of math broke loose and now i feel stupid :D Thx for awesome videos :)

  • @Quacky_Batak
    @Quacky_Batak 7 ปีที่แล้ว

    One of the fav episode ever. Quantum Computing maths awaiting...

  • @KaiKunstmann
    @KaiKunstmann 7 ปีที่แล้ว

    3:00 Actually, the modulo applies to both sides: "A ≡ X (mod N)" reads "A and X are equivalent, modulo N", i.e. "the remainder of A/N is equal to the remainder of X/N" (and not just equal to X), or (likewise and less ambiguous) "the difference A-X of both sides is a multiple of N". For example, "22 ≡ 7 (mod 5)" is true and implies that 5|22-7 (i.e. 22-7=15 is divisible by 5), but it does not imply that the remainder of 22/5 must be equal to 7.

  • @JorgetePanete
    @JorgetePanete 7 ปีที่แล้ว +2

    Her: you should check these steps.
    Me: **watches screen nervously**

  • @shaylempert9994
    @shaylempert9994 7 ปีที่แล้ว

    Came here a few months later.. I am surprised that I understood it this time..
    Now I can truly say that shor is a genius, and this video is great!

  • @Tadesan
    @Tadesan 6 ปีที่แล้ว

    This video travels the path of a rigorous proof with the casual nature of sightseeing.
    By watching it you are seeing more than you are aware of.
    Thank you for your thoughtfulness!
    PS, I love you!

  • @blazingkin
    @blazingkin 7 ปีที่แล้ว

    I'm so glad this channel exists to provide such great explanations of things I thought were out of my reach.

  • @sinithparanga2481
    @sinithparanga2481 7 ปีที่แล้ว

    Great Video. I went along just fine doing all the math in excel. The real clue for step two will be to find a where r is not bigger than X. That would be my approach. Example: If N=1537 and a = 30, then r = 4. Which is nice (r

  • @aliasgeranees8893
    @aliasgeranees8893 7 ปีที่แล้ว +1

    madly in love with this channel....

  • @TheLinkr
    @TheLinkr 7 ปีที่แล้ว +94

    Wow ethan, great moves! Keep it up, proud of you.

  • @markoneal9677
    @markoneal9677 7 ปีที่แล้ว

    This gave me flashbacks to my college differential equations class. The professor would stand at the front of the room and just make giant leaps in logic with almost no way to follow it

  • @xenontesla122
    @xenontesla122 7 ปีที่แล้ว

    1:32 There's a slightly faster method. You can just check all the prime numbers before the square root of 35, since every divisor above the square root can be paired with one below it.

  • @Fran7842
    @Fran7842 7 ปีที่แล้ว +1

    Great lecture! Reminds me of a class I took 6 years ago. Possible topics could include pseudo random number generators, and mathematical flaws in lotteries exploited. I'm not worrying about quantum computing destroying modern society since it was warned of a decade ago.

  • @judeleon8485
    @judeleon8485 3 ปีที่แล้ว

    Wow! You swept me off my feet! Your teaching is excellent, with unbeatable clarity. Thanks

  • @enzogiannotta
    @enzogiannotta 7 ปีที่แล้ว +18

    Nice video number theory is my favourite

  • @jacobsiemons687
    @jacobsiemons687 7 ปีที่แล้ว

    A minor correction: at 5:15 you should say "the smallest POSITIVE number r such that..." because when r=0 then x^r is always 1 mod N. This also makes it obvious why r is the period, because it is congruent to 1 at 0 and r, and nowhere in between.

  • @yamansanghavi
    @yamansanghavi 7 ปีที่แล้ว +1

    I love the background music starting at 0:19. Can anybody tell me its name or where can I get it ?

  • @tylershepard4269
    @tylershepard4269 7 ปีที่แล้ว

    Answer: Use AES... it does not rely on prime numbers at all. It’s quite hard to crack, because it’s addition is mod 2 which ends up being XOR and it’s hard to guess input bits if you know the result of an XOR.

  • @OGUZHANKOSARMD
    @OGUZHANKOSARMD 6 ปีที่แล้ว

    Beyoond shweret. Tackling all of the obstacles. Just as it has been done for the e pie video. Great. 👍🏻👏🏻👏🏻👏🏻

  • @vincent-olivierroch8217
    @vincent-olivierroch8217 7 ปีที่แล้ว

    at 3:06 a == x mod n doesn't mean that x is the remainder of a divided by n, but they do have the same remainder. so the right thing to say would be that n divides (a-x). so we could say in that logic that for all integers x y z n, x == y mod n implies that x == y + zn mod n.
    For example, 5 == 8 mod 3, but 8 is not the remainder of 5 divided by 3

  • @deine1mama92
    @deine1mama92 7 ปีที่แล้ว +18

    Why does the chair has a head? 12:35

    • @ZardoDhieldor
      @ZardoDhieldor 7 ปีที่แล้ว +1

      And two hand to go with it! Spooky!

  • @doodelay
    @doodelay 7 ปีที่แล้ว +4

    God I love this channel
    *Shouts to space*
    I LOVE THIS CHANNEL!

  • @deepjoshi356
    @deepjoshi356 7 ปีที่แล้ว

    Explaining how Diffe-Hellman works is also interesting. RSA looks like a special case of it.

  • @DavidKennyNZL
    @DavidKennyNZL 7 ปีที่แล้ว

    Thought I understood it then blinked. Will have to watch it again with pen and paper.

  • @Mach1Greeble
    @Mach1Greeble 7 ปีที่แล้ว

    Yet another Infinite Series that is above my head. Smart people rule.

  • @michaelleventeris644
    @michaelleventeris644 7 ปีที่แล้ว +4

    Can you please do a video with inaccessible cardinals and ordinals.

  • @reristavi
    @reristavi 7 ปีที่แล้ว

    Wow.. I really have to update myself with maths. Good work girl.. Keep it up Bravo..

  • @thisaccountisdead9060
    @thisaccountisdead9060 7 ปีที่แล้ว

    Reddles37's binary approach to the last video is so cool it is almost cheeky. The consequences of quantum computing are fascinating to encryption and financing because prime numbers become exponentially less frequent as you count up, meaning there is less and less of them to use for encryption - it creates some hard real world dilema's that I think eclipses most issues commonly discussed today.

  • @QuackersForMath
    @QuackersForMath 7 ปีที่แล้ว

    I've just compleated a bunch of coursework on this exact topic - ciphers and encryption.

  • @KnakuanaRka
    @KnakuanaRka 5 ปีที่แล้ว

    1:27 Actually, you only need to check the primes up to the square root of the number being factored; if there were any factors larger than that, then the other factors must all be smaller, and would have been discovered earlier, so you could divide them out and continue to get the full factorization.

  • @aliasgeranees8893
    @aliasgeranees8893 7 ปีที่แล้ว

    plz continue making such good maths videos....really sparks my interest...

  • @ilmbrk6570
    @ilmbrk6570 7 ปีที่แล้ว +23

    Dat moment when you try to do some serius math wilst beeing tired af and english is not your first language.

    • @carlosjavierpalacios6194
      @carlosjavierpalacios6194 6 ปีที่แล้ว +1

      same here :)

    • @rickh3714
      @rickh3714 6 ปีที่แล้ว +1

      That moment when you try to do some serious math(s) whilst being tired as f___ and English IS your first language!

  • @jacoblavin7598
    @jacoblavin7598 5 ปีที่แล้ว +5

    2:30 : okay... seems a little complicated
    2:32 : I'm sorry what?

  • @pablobragato7164
    @pablobragato7164 7 ปีที่แล้ว +1

    amazing! loving u, cant wait for the quantum video, tnkx

  • @Youezor
    @Youezor 7 ปีที่แล้ว

    I like this serie so much. There is nothing similar in my country (as far as I know) so thanks !

  • @PubstarHero
    @PubstarHero 7 ปีที่แล้ว +28

    I take a break from studying for security certs (specifically sections on EC Cryptography). Was not expecting Math to show up on random with youtube in the background.
    I'm done today, my brain just decided to turn off.

    • @Tadesan
      @Tadesan 6 ปีที่แล้ว

      PubstarHero lol, computer people are dumb as rocks.

  • @recklessroges
    @recklessroges 7 ปีที่แล้ว +4

    Love this into to shor's algorithm. The music was a little too loud during the comment reply.

  • @ariel_haymarket
    @ariel_haymarket 7 ปีที่แล้ว +1

    Where can I get the "Let (epsilon) < 0" shirt?

  • @Thaidory
    @Thaidory 7 ปีที่แล้ว

    Can someone explain where does 3Mod10 sequence (3.46) comes from? What is the full operation? Do we divide 3 to the power of K by 10 and the sequence is the remainder?

  • @SHA256HASH
    @SHA256HASH 7 ปีที่แล้ว +1

    Please make a video on the Basel Problem, Euler's solution, and Apery's constant! 🙏🙏🙏

  • @NezumiM
    @NezumiM 7 ปีที่แล้ว +3

    4:31 Should be "2^k mod 7" not "2 mod 7"

  • @juliengrijalva8606
    @juliengrijalva8606 6 ปีที่แล้ว

    a mod x = b means if you divide a by x you get b. a congruent b mod x means a and b have the same remainder when dividing by x.

  • @nonameforyouokpeterrodney9051
    @nonameforyouokpeterrodney9051 6 ปีที่แล้ว

    Here are 2 mathematical expressions:
    1. P= round(.25*(((3+(2*sqrt(2)))^n)+((3-(2*sqrt(2)))^n))^2)-2 (n=positive integer >=1)
    2. Factors = sqrt(((1+T(sqrt(P)))^2)+P) +/- T(sqrt(P)) +/- 1 (P=composite integer,T=truncation operator)
    The 1st expression above generates Composite integers whose size (no. of digits) grows at an exponential rate with increasing n. The amazing thing about the 1st expression above is that it produces composites that is factorable by the 2nd expression above! Try it! but remember to set the precision for calculation high enough so that the 2 expressions above produce integers as output!

  • @bitcoindaddy748
    @bitcoindaddy748 3 ปีที่แล้ว

    9:28
    can anybody explain this part? why does p MUST divide one of the factors on the left? and q MUST divide another factor on the left? does this mean that a^(4/2) - 1 should be divisible by p without a reminder? and how do we know it to be true just by looking at the quasion?

  • @trava4156
    @trava4156 3 ปีที่แล้ว

    annnndddd my brain melted. still better explanation than my profs.

  • @afsharalithegreatiranian9777
    @afsharalithegreatiranian9777 7 ปีที่แล้ว +3

    Great explanation!!!

  •  7 ปีที่แล้ว

    This is awesome that modular arithmetic is just what i need it.

  • @maiprue
    @maiprue 2 ปีที่แล้ว

    I did follow the idea and figured out the arithmetic, but representation at 3:50 to 4:00 (3mod10 and 2mod7) is confusing. I thought the number in front of mod is the remainder, in this case should have been 3 and 2.

  • @nonameforyouokpeterrodney9051
    @nonameforyouokpeterrodney9051 6 ปีที่แล้ว

    The solution to factoring any composite integer is equivalent to determining the non-trivial, positive real-value of a variable (k) I call the 'Coefficient of factorization' used in a unique, integer-factorization expression of mine which I've termed the 'Transformula'.

  • @georgeandrews2839
    @georgeandrews2839 5 ปีที่แล้ว

    I wrote an encryption method for messages that quantum computers can’t break.
    It doesn’t use keys and doesn’t allow you to know exactly when a encoded message stops or starts in the output.

  • @youteubakount4449
    @youteubakount4449 7 ปีที่แล้ว

    An episode about finitist mathematics? It feels much more beautiful and rational (heh) than mathematics introducing infinites

  • @shanelstevens
    @shanelstevens 7 ปีที่แล้ว

    Loved this episode so much! 👍 Kesley is brilliant!

  • @javahaxxor
    @javahaxxor ปีที่แล้ว

    Wow. I wish someone showed us real world applications for math when I was a student.

  • @shortcutDJ
    @shortcutDJ 7 ปีที่แล้ว +3

    Speaking about encryption makes you look so attractive, and i imagine you must get this alot. But it's true.

  • @SFKelvin
    @SFKelvin 7 ปีที่แล้ว

    How many large prime numbers are there in the keyspace? With computers all around the world finding them, is a dictionary of large primes being created?

  • @happyman_smiling
    @happyman_smiling 7 ปีที่แล้ว

    If N = p * q then you could create a rectangle using p as length and q as breadth and N as area using computer, you could extend the rectangle until area of rectangle is N and know p and q.

  • @Cr42yguy
    @Cr42yguy 7 ปีที่แล้ว +1

    Great video as always, but sometimes the background music is just extremely loud and distracting. In the after credits it's even louder than Kelsey's voice.

  • @JohnSafranek
    @JohnSafranek 7 ปีที่แล้ว

    Any chance for a video on elliptic curves?

  • @botix2
    @botix2 7 ปีที่แล้ว

    looking forward to the next episode! 🙂👍

  • @deadalnix
    @deadalnix 7 ปีที่แล้ว +12

    Well yes and no, today most cryptography uses eliptic curves.
    You can also check all prime number up to sqrt(35) not 35 ;)
    Overall, good job. You dumbed RSA down enough so it can be understood without oversimplifying.

    • @JM-us3fr
      @JM-us3fr 7 ปีที่แล้ว +4

      deadal nix Yes, and technically the general number field sieve takes even less steps than trial division, but we've only got 15 minutes man

    • @deadalnix
      @deadalnix 7 ปีที่แล้ว

      :)

    • @paulthompson9668
      @paulthompson9668 7 ปีที่แล้ว

      What if I want to spell-check prime numbers?

  • @aqualeung
    @aqualeung 7 ปีที่แล้ว

    Question, is there a reason to use the congruent comparison when using mod rather than equals?

    • @benjaminprzybocki7391
      @benjaminprzybocki7391 7 ปีที่แล้ว

      Kevin Leung Equals means two things are the exact same, while congruent means two things have the same remainder when divided by the modulus. In the relation 12 ≡ 2 (mod 5), 12 and 2 are not equal to each other (since they are different numbers). Rather, they both have the same remainder when divided by 5 (i.e., congruent modulo 5).
      In computer science, modulo is actually an operator, so the equals sign is used there (which can lead to confusion).

  • @YouTubist666
    @YouTubist666 7 ปีที่แล้ว

    Great explanation. And what a surprise to learn this is Shor's algorithm, which I first heard of in an episode of Big Bang Theory.

  • @SlimThrull
    @SlimThrull 7 ปีที่แล้ว

    I use mod 86400 for keeping track of time. I'm hoping to go metric sometime soon, though.

  • @cem_kaya
    @cem_kaya 3 ปีที่แล้ว +1

    Ahh i remember this video i was at high school back then and now i am studying for my cryptography exam in university and still do not intuitively understand any number theory

  • @docthorium1562
    @docthorium1562 7 ปีที่แล้ว

    How do you do this for numbers with multiple prime factors?

  • @josesaldivar655
    @josesaldivar655 6 ปีที่แล้ว

    Kelsey, what is the integral of one over the squared root of a log .(a x), DX How do you do that

  • @iannjan
    @iannjan 7 ปีที่แล้ว

    Serious question: How can I cite your videos in academic discourse? What is your opinion, I mean. You gave me a -huge- idea... I don't want to not work on it because of this technicality.

  • @user-DongJ
    @user-DongJ 7 ปีที่แล้ว

    This is a great video on fundamentals of math application. I hope they can also show-discuss some other aspects of math like Incompleteness Theorem, Halting problem, Impossibility Theorem, Shannon's Entropy, etc. &/or applications in card counting, poker/casino games, finanicial investments, index movements, voting systems/flaws, etc. so as to clarify the "myths" from the facts😁

  • @michaelyadchuk4989
    @michaelyadchuk4989 7 ปีที่แล้ว +1

    This question is not about the video, but I just had a question regarding mathematics. Is there a limit to a number of different songs that can be created? Is there a limit to how many different notes that can be arranged at different frequencies to produce a musical piece?

    • @jh-wq5qn
      @jh-wq5qn 7 ปีที่แล้ว +2

      If you're following the typical 12 note musical system, and let's say it's limited to 5 octaves, that means 60 options for each note (61 if you consider the lack of a note a note, which for this we will and then 62 for continuation of that note). If you then assume that all music can be cut up with standardized time signatures and what not, let's just simplify it down to to 1/32nd notes (a pretty standard highest-speed note). Let's forgot about odd time signatures, triplets, tempo, and then things line tone and the actual sound of the instrument, and let's even set the standard amount of time to 5:00. At 120 bpm across the board for every song in this scenario, that means 8 beat possibilities per second, or 2400 time slots for each of those 62 options, given our criteria. Using some basic combinatorics, it becomes clear that this is equal to 62^2400 ~=
      NOTE:THIS IS LONG SO FEEL FREE TO SKIP TO BOTTOM
      _________________________________________________________549 610 214 910 621 437 189 488 551 962 500 154 576 272 999 772 508 872 170 141 911 603 900 898 852 415 433 977 710 366 103 375 830 102 149 185 577 929 972 357 769 341 511 196 414 304 749 632 357 779 734 355 709 488 612 862 091 194 127 294 880 073 277 699 150 565 429 467 496 996 958 779 743 272 220 076 348 594 180 597 707 318 187 551 446 468 345 234 151 894 294 028 382 273 477 446 771 268 659 926 181 348 263 086 203 148 316 169 606 155 302 598 524 324 237 961 447 139 159 888 291 393 791 764 571 773 165 075 078 716 119 893 422 925 278 853 342 646 888 100 190 544 735 633 787 496 553 695 870 654 215 935 198 140 278 110 380 565 641 135 299 916 018 128 277 271 837 967 431 487 438 014 442 595 159 053 655 885 211 711 006 749 189 589 798 817 021 130 442 604 161 798 061 902 319 215 653 388 577 993 592 902 252 773 351 820 995 149 940 957 747 249 917 876 793 006 993 049 524 628 289 537 970 462 619 837 990 918 873 877 268 169 993 349 315 680 411 121 423 409 126 463 570 670 857 965 306 364 595 202 565 732 133 330 258 487 440 674 200 970 161 787 611 270 960 369 783 165 357 806 887 174 034 327 102 753 590 208 122 017 661 383 055 762 326 152 795 730 995 592 524 193 722 816 270 173 115 083 727 124 749 087 576 732 398 242 763 434 063 555 381 814 019 858 980 179 867 978 764 502 693 363 186 403 652 346 276 796 659 570 810 556 264 856 877 663 675 243 237 416 042 789 795 151 548 397 173 341 401 279 437 213 642 782 683 880 034 522 739 970 581 448 742 832 241 181 228 001 364 957 717 225 474 756 986 958 673 943 905 036 401 065 229 705 637 990 789 564 035 008 953 556 449 653 838 471 926 188 785 688 312 309 107 127 859 789 917 920 864 267 203 825 637 065 241 627 534 559 589 881 384 606 314 406 910 145 409 150 318 102 700 495 917 672 358 347 508 367 551 365 026 283 086 156 733 312 025 512 127 015 554 040 797 924 653 384 256 583 085 688 423 542 403 040 134 134 249 797 128 912 707 055 914 844 831 345 479 622 367 395 059 414 709 131 788 919 680 313 815 014 268 310 743 168 047 854 452 514 577 919 289 883 019 574 799 631 377 298 682 811 820 980 880 791 535 666 546 047 897 021 214 076 358 619 753 506 713 126 205 353 409 191 702 162 934 302 411 868 301 798 952 915 200 070 121 142 341 397 022 957 694 409 444 577 230 918 114 849 553 394 095 883 031 324 462 603 813 493 912 887 920 904 478 896 787 009 143 876 876 006 482 190 181 299 324 690 842 485 758 706 013 963 999 393 269 182 253 161 562 231 585 493 133 123 324 764 649 350 899 422 909 979 335 018 877 973 564 942 642 712 986 263 312 520 677 704 519 888 151 075 302 102 536 264 590 828 228 991 778 374 675 059 279 423 752 422 266 610 920 019 343 870 935 353 249 701 717 083 565 403 237 418 975 422 798 330 198 905 246 290 765 654 819 546 106 456 500 764 894 017 489 862 432 973 249 002 241 727 647 326 821 337 096 001 053 474 607 542 899 204 856 164 029 399 976 584 685 908 774 326 254 649 279 004 398 714 167 201 953 394 106 289 789 553 621 375 957 240 939 617 061 620 178 964 230 749 954 231 313 357 007 128 849 411 067 285 773 174 666 257 057 024 836 539 341 489 557 783 211 612 430 011 534 760 182 887 070 883 648 316 965 253 593 976 665 952 097 515 422 119 734 853 779 592 368 846 898 153 031 422 437 263 675 572 299 529 203 284 100 049 199 605 753 034 946 740 205 378 274 754 412 309 282 679 840 832 983 754 043 392 082 991 256 209 141 480 265 180 757 315 991 988 627 409 133 555 669 730 958 219 208 856 530 219 577 704 983 189 102 457 864 699 091 084 576 375 512 727 387 235 808 752 912 576 092 745 220 491 775 088 799 047 887 778 173 131 242 477 912 724 967 730 771 334 977 906 567 563 302 442 879 274 217 309 974 897 687 257 525 163 586 620 561 079 245 135 446 386 305 553 475 460 674 975 298 274 462 777 351 644 845 783 714 304 923 281 193 701 214 544 693 983 554 872 645 751 283 450 498 679 757 627 429 159 713 246 499 816 251 860 714 824 663 419 934 115 010 042 876 119 316 900 116 832 811 335 628 179 693 340 009 580 982 478 132 038 430 912 600 376 412 448 843 436 442 391 417 907 739 448 835 179 325 155 219 391 469 060 877 589 696 168 560 556 290 395 976 653 850 142 613 881 670 374 690 755 919 213 908 275 678 497 538 839 566 771 471 243 021 166 867 180 425 892 838 202 920 159 760 038 500 700 696 839 410 774 829 443 373 230 478 692 077 692 328 893 234 692 682 949 900 612 889 244 530 909 600 636 893 342 320 536 408 430 922 106 532 986 990 854 048 741 571 434 829 213 276 712 779 036 042 915 530 565 351 041 560 738 559 880 771 915 047 293 646 117 679 688 640 805 905 672 933 941 049 670 528 937 104 493 833 269 108 557 549 151 042 994 239 868 007 582 474 680 849 642 083 395 371 631 608 273 230 474 915 445 102 522 223 230 676 260 840 328 274 931 926 340 794 835 994 912 299 685 964 562 052 140 652 179 725 701 287 796 274 310 676 216 894 654 746 904 862 659 255 832 527 390 239 036 378 321 555 769 338 347 432 884 522 058 963 140 622 160 275 248 616 217 072 989 397 491 184 873 954 510 696 772 819 831 947 727 992 837 786 214 303 617 460 351 756 434 976 420 202 087 240 939 014 550 752 797 612 133 922 619 294 951 882 180 944 041 434 652 929 592 538 669 504 016 909 081 700 936 533 983 091 586 241 346 685 928 280 612 044 290 578 150 665 837 275 168 811 989 153 670 043 476 132 168 822 101 061 928 078 499 098 602 437 674 059 307 695 610 846 415 461 357 957 759 439 598 404 587 188 466 280 004 374 858 650 460 556 080 050 819 718 638 596 913 659 428 197 968 055 270 523 604 981 406 962 427 248 475 657 022 756 860 203 086 247 248 402 221 934 927 034 202 531 541 120 409 031 493 228 003 655 423 775 810 891 129 085 371 038 189 539 144 797 644 394 150 660 071 644 041 447 300 539 300 443 472 898 574 544 717 613 170 619 256 713 830 078 294 505 047 655 624 582 286 319 558 738 811 984 656 933 997 251 163 154 829 327 778 020 579 557 155 113 795 066 188 005 376
      _________________________________________________________
      Based on our limited criteria, this is how many options there are, but in reality there are exponentially more factors, leading to a number probably not conceivable by modern home computers. So it is in fact limited as long as there is a finite number of features, and each feature has a finite number of options, but we may as well just call it infinite. We could never understand that large of a number. And, it actually would become infinite if you had no maximum length of a song! As someone could hypothetically add on another 1/32nd note at the end (aka multiply the above number by 62 again) and create a distinctly, measurably different piece of music. And, to top it all of, this is assuming just one instrument! Multiply the end result of whatever equation you get times the number of instruments. So in the end, it comes down to how specific you want to be about infinite and whether you set a limit to the length of the song, but regardless, there is no chance that we will be running out of musical options in any human's lifetime ;)

  • @321Mohan
    @321Mohan 4 ปีที่แล้ว

    Finding th eperiod is the key. How many Qbits quantum computer is needed to find factors for SHA256 encryption in six month time?. So we can rotate the keys before it reaches sixmonth and let them try for another six months. Unless new algorithm comes to find the factor faster.

  • @nicktheoregonian
    @nicktheoregonian 7 ปีที่แล้ว

    Would a similar solution be possible if you took more than 2 large primes and multiplied them together to form the key? Essentially, if you used more than two large primes, could the hitch be a period-calculation which could leverage quantum computing capabilities?

  • @izzi532
    @izzi532 6 ปีที่แล้ว

    when you explained modular counting I am confused because in one example you included 0 and in another you didn't. does modular counting include 0 or not?

  • @luismt555
    @luismt555 7 ปีที่แล้ว

    I saw the "let" word before a variable name followed by a an equal sine and some value (let [variable name] = [some value]) in this video and I have seen it in other places too and my idea is that it is used to declare constants. Can someone please tell me what "let" stands for or/and why it was chosen to declare constants?

  • @davidwilliams9948
    @davidwilliams9948 7 ปีที่แล้ว

    Love these videos. You should collaborate with numberphile

  • @felixfourcolor
    @felixfourcolor 6 ปีที่แล้ว

    Is there a formula to calculate the period of a mod n?

  • @kingphantom7284
    @kingphantom7284 5 ปีที่แล้ว

    This helped me understand cryptography a bit better!

  • @stumbling
    @stumbling 7 ปีที่แล้ว +3

    Can anyone help me with this…? For the function, y_n = x^(y_{n-1}), as n approaches infinity y_n approaches e for values of x ≤ e^{1/e}, but y_n approaches positive infinity where x > e^{1/e}. Can someone explain what this means? I randomly discovered it messing around with my calculator. I know it is just e saying hello but I don't quite understand it.

    • @petrzenisek3667
      @petrzenisek3667 7 ปีที่แล้ว

      Well if x > e^{1/e}, it's pretty obvious you are powering bigger and bigger numbers so it's going to infinity, for second inequality read en.wikipedia.org/wiki/E_(mathematical_constant)#Exponential-like_functions

    • @TheManxLoiner
      @TheManxLoiner 7 ปีที่แล้ว

      I am not sure that is correct. Just to check, is the sequence
      b_1 = a
      b_2 = a^a
      b_3 = a^(a^a)
      b_4 = a^(a^(a^a)), etc.
      If so, then I tried starting with a=1.4, and it seems to approach 1.8866633062433...
      Graphically, I think what is happening is as follows:
      Plot a graph of y=x and of y=a^x on the same axis. If these graphs intersect, then the sequence approaches the point of intersection. Doing some googling reveals that this is indeed the case, and it even has a name: `cobwebbing' or `cobweb diagrams'.

  • @leocelente
    @leocelente 7 ปีที่แล้ว

    Can't wait to the next episode!

  • @mrinmoybanik5598
    @mrinmoybanik5598 4 ปีที่แล้ว

    At its heart this algorithm exploits the efficiency of Euler's algo to find G.C.D.

  • @Robertwardrip
    @Robertwardrip 7 ปีที่แล้ว

    around 4:38 you say the last number in the period in 1, but would that be the first number in the period? shouldn't the sequence start @ 2^0 = 1

    • @zairaner1489
      @zairaner1489 7 ปีที่แล้ว

      No, because we start n with 1. Otherwise, the period would always be 0

  • @pairot01
    @pairot01 7 ปีที่แล้ว +54

    This notation is so confusing because in computing 'mod' is a function. So you would say 8 mod 7 = 1, or 5 mod 3 = 2

    • @vorpalneko
      @vorpalneko 7 ปีที่แล้ว +31

      It's confusing because the video oversimplifies. a mod N is the remainder, but a ≡ x (mod N) means that a and x have the *same* remainders, not that x is the remainder (or that N divides a-x). Those are different things, so it makes sense to have different notations for them.

    • @Twisol
      @Twisol 7 ปีที่แล้ว +9

      It is a bit confusing, but it's standard mathematical notation. It's better if you read `a = b mod m` as `a (= mod m) b`, that is, the modulus is part of the equals/congruence sign. In English, "a and b are congruent mod m".

    • @Twisol
      @Twisol 7 ปีที่แล้ว +6

      Yes, but *relations* are much less common (hello, Prolog!), and what we're dealing with here is actually mathematical notation for a relation. The fact that there's a handy function corresponding to this relation is irrelevant to the fact that this notation has the relation in mind.

    • @TheManxLoiner
      @TheManxLoiner 7 ปีที่แล้ว +3

      An analogy which might be useful: Saying `10 ≡ 19 mod 3' is notationally similar to saying `10.412 = 10.399 to 1 decimal place'. It turns out that the `mod' idea is very useful and has lots of nice properties, unlike the `to 1 decimal place' idea.

    • @unvergebeneid
      @unvergebeneid 7 ปีที่แล้ว

      I think if the notation had been introduced in the video with one of the great explanations given in this thread, I would have found it much less confusing and distracting. I'd probably have to watch the video again now so I can focus on the steps instead of mentally pausing to unpack the (to me) weird mod notation.

  • @viniciusdesouzamaia
    @viniciusdesouzamaia 7 ปีที่แล้ว +1

    I feel so dumb
    That's why I love this show. it was the same thing when I started watching space time. But I know, if I put in the effort, I'll be breezing through this soon.

  • @dumbledoor9293
    @dumbledoor9293 6 ปีที่แล้ว

    Thank you for making a non-mathematician understand a complicated subject such as breaking cryptography 👍 Also is prime number product the only way to make reliable cryptography?

  • @Petch85
    @Petch85 7 ปีที่แล้ว

    Grate video can't wait for next week.
    I might have misunderstood, but ...
    Are we really using N = p1 * p2 (where p1 and p2 are primes).
    I through we used N = p1^k1 * p2^k2 *... pn^kn. (all p's prime)
    (k - you can reuse primes)
    Can this method be generalized to work for N = p1 * p2 *... pn?
    even if you do not know n?
    Can you tell me all the p's that create 315?

    • @zairaner1489
      @zairaner1489 7 ปีที่แล้ว

      Yes we only used numbers with two prime factors. I guess the cryptography uses these?