Euler's totient function | Journey into cryptography | Computer Science | Khan Academy

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ม.ค. 2025

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

  • @renecapistran484
    @renecapistran484 ปีที่แล้ว +13

    Wow, crazy how hard it was to find a solid explanation that was easy to grasp. Not to mention in little over 2 minutes! Well done.

  • @hammar324
    @hammar324 2 ปีที่แล้ว +21

    You just helped explain an entire cryptography chapter in 2 minutes. Thank you!

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

      0:12 what is meant by breakability of a number?

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

      @@sumittete2804 how many times you can factor it i presume

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

      @@dacho707 Thanks 🙏

    • @twopiebytwo
      @twopiebytwo 2 หลายเดือนก่อน

      NO he didn't

  • @ThefamousMrcroissant
    @ThefamousMrcroissant 8 ปีที่แล้ว +73

    Keep in mind phi is multiplicative only when both factors are coprime. Otherwise a very clean explanation.

    • @mykingdom2060
      @mykingdom2060 8 ปีที่แล้ว

      thanks man

    • @MikhailFederov
      @MikhailFederov 2 ปีที่แล้ว +3

      2:02 This is mentioned in the video. P1 and P2 are prime, and therefore coprime

    • @amethystklintberg7436
      @amethystklintberg7436 8 หลายเดือนก่อน +1

      The tricky case is phi(p^k), when we’re multiplying p to itself.
      For example,
      phi(3)=(3-1)=2, but
      phi(3*3)=phi(9)=6, which is different from the answer 2*2 we might expect.
      For phi(p^k), we can start with all the natural numbers from 1 to p^k and then weed out all the natural numbers that share a factor with p^k.
      Since prime factorization is unique, and p^k is already in prime factorized form (hooray!), we can see that the only natural numbers we need to weed out are the multiples of p, up to the natural number p^k itself. There are (p^k)/p many of them.
      We get:
      phi(p^k) = p^k - (p^k)/p
      Simplified, this works out to a formula that fits the phi(p) formula we already know!
      Punchline:
      phi(p^k) = (p^(k-1))*(p-1)

  • @bas56
    @bas56 11 หลายเดือนก่อน

    To the point and very clear. Finally a video that doesn't need to be watched at 2x speed for efficiency, but one that clearly explains everything efficiently. Hats off!

  • @GoddamnAxl
    @GoddamnAxl 28 วันที่ผ่านมา

    The greatest two minutes on the entire internet

  • @amihartz
    @amihartz 10 ปีที่แล้ว +12

    Phi is only multiplicative if the two numbers are prime. phi(20*34) doesn't equal phi(20)*phi(34).

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

      +Amelia Hartman I think you mean co-prime? e.g. phi(49) = 42 however phi(7)*phi(7) = 36

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

    :54 "Look at this graph"

  • @sakinano99
    @sakinano99 9 ปีที่แล้ว +60

    thumbs down for incorrect statement. phi function is only multiplicative if the two numbers are coprime

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

      the first example that comes to my mind is phi(4) which is equal to 2 (1, 3) and 4 is equal to 2 * 2 so phi(4) would be (2 - 1)*(2 - 1) which is 1.

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

      i think he said if a number is product of two different primes!

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

      he said product of two primes

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

      That's self explainable

    • @SkillUpMobileGaming
      @SkillUpMobileGaming 2 ปีที่แล้ว +3

      @@lassekoivisto4422 Which is a false statement. Phi(25) != Phi(5) * Phi(5)

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

    Could you please help? How do we find n, from fi(n)=20, for example? I mean by pen and paper.

    • @khldomar
      @khldomar 9 ปีที่แล้ว

      +Petr Fedosov 8

    • @qwerty.760
      @qwerty.760 4 ปีที่แล้ว

      find factors of numbers less than 20 and see how many of them have no factor common with 20.

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

    0:12 what is meant by breakability of a number?

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

      late but it means if or not it can be broken down into factors. Eg 10 can be 5 x5, 15 is 5x3 etc

  • @geraldinesanchez4203
    @geraldinesanchez4203 8 ปีที่แล้ว +6

    But why is that the phi(121) = 110? Shouldn't it be 100 since phi(11*11) = 10 * 10???

    • @geraldinesanchez4203
      @geraldinesanchez4203 8 ปีที่แล้ว +16

      Oh, I get it. 11 and 11 are not coprime. :)

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

      ​@@geraldinesanchez4203 you could have deleted your comment

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

    So solve Fermat's little theorem faster ?

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

    0:54 nickel back

    • @GuitarheroWWEduh
      @GuitarheroWWEduh 9 หลายเดือนก่อน +1

      Every time it makes me laugh! xD

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

    So totient of a product of 2 different primes is always divisible by 4

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

    May I know why 1 isn't counted? Like 1 and 8 shares the common factor of 1 isn't it?

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

      It doesn't matter, even if you multiply one you'll still get the same answer.

  • @jordanengstrom3152
    @jordanengstrom3152 10 ปีที่แล้ว

    What about phi(25)?
    phi(25)=phi(5*5). Since 5 is prime, we should be able to say phi(25)=phi(5*5)=(5-1)(5-1)=16, but phi(25)=20.

    • @khldomar
      @khldomar 9 ปีที่แล้ว

      +Jordan Engstrom should gcd(n,m)=1

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

      Jordan Engstrom because p^n = p^n - p^(n-1)

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

      Phi(n)=p-1*q-1 where p and q are prime and p!=q

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

      th-cam.com/video/vpJrPYIT9Hc/w-d-xo.html

  • @user-um7tw6kx4r6
    @user-um7tw6kx4r6 3 ปีที่แล้ว

    Have watched this video several times and I always enjoy it

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

      0:12 what is meant by breakability of a number?

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

      ​@@sumittete2804how many factors it can be broken into.

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

    background music was creepy as hell

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

    good