[Discrete Mathematics] Modular Arithmetic

Поділитися
Вставка
  • Опубліковано 8 січ 2025

КОМЕНТАРІ • 98

  • @syremusic_
    @syremusic_ 4 роки тому +50

    This is not a bad video. It just requires a little bit of prior knowledge. Very useful for reviewing. Thank you

  • @river9a
    @river9a 5 років тому +150

    "If you learn anything in Discrete Math, make sure its this." *throws out terms and formulas without going over first*. Now majorly confused.

  • @panickp
    @panickp Рік тому +2

    I think the last two minutes are the most valuable, at least for me, that's when I actually got it. Thanks for the video!!

  • @patrickmayer9218
    @patrickmayer9218 2 роки тому +7

    That moment when you realize you've been incorrectly assuming what the equivalence symbol means related to mod. arithmetic for the entire semester. XD
    Thanks so much for the video! Great stuff!

  • @KDLieutenant
    @KDLieutenant 4 роки тому +24

    Sometimes even the textbook makes more sense

  • @terriblast8076
    @terriblast8076 8 років тому +73

    not so clear

  • @That_One_Guy...
    @That_One_Guy... 4 роки тому +4

    Generalization : a mod b = a - b.floor(a/b); works even for a < b

  • @pedrofyury1420
    @pedrofyury1420 3 роки тому +1

    You are litteraly saving my semester

  • @castlefrank1724
    @castlefrank1724 6 років тому +151

    this is the first time your lecture is as bad as my professor's hahaha

  • @hoony30
    @hoony30 3 роки тому +5

    after reading the book named Discrete mathematics and its application from Rosen, this video makes sense, even though there are some mistakes that trev has made haha Thank you

  • @briefcasemanx
    @briefcasemanx 8 років тому +76

    very confused. isn't 18 mod 3 equal to 0?

    • @adrianmarkelov3470
      @adrianmarkelov3470 7 років тому +8

      It's congruent though to all other numbers that also mod 3 = 0. All of these numbers are congruent and form a "congruence class". Also note that the union of all of the congruence classes partitions the original set in this case it partitions the integers

    • @bossinator_gaming7382
      @bossinator_gaming7382 7 років тому +15

      He was mistaken. 18 is CONGRUENT to 12(mod3) meaning 3|(18-12), which is denoted by a triple-dash sign rather than an equals sign.

    • @evancornish656
      @evancornish656 6 років тому +2

      Yeah this explanation is VERY imprecise. Don't take this video very seriously. The video from MIT open courseware is better.

    • @xenialxenagogue5978
      @xenialxenagogue5978 3 роки тому

      Ya it also is 0, it's a class of 0

  • @iangriffith7327
    @iangriffith7327 7 років тому +25

    You say equal, but you mean are equivalent to right? They don't equal each other but have equivalent congruencies.

  • @luisriveragonzalez9052
    @luisriveragonzalez9052 2 роки тому +2

    1:08 should be 18 is CONGRUENT to 12(mod3)

  • @MSneberger
    @MSneberger 7 років тому +2

    at 4:09 you say "one divided by four is going to have a remainder of 1." Given the discussion after, and that (0 * 4) + 1 = 1, I am guessing you meant to phrase that differently since 1/4 does not have a remainder of 1. {EDIT} Oops! I see no that 4 goes into 1 zero times but that leaves a remainder of 1!

  • @thenvsnowtv1811
    @thenvsnowtv1811 6 років тому +45

    I'v been following all your cources and i love your way of teaching in all of your videos. But i can sadly say that this video was'nt as good as you usually are. I know you can do much better man :)

    • @ram-tv5701
      @ram-tv5701 6 років тому +2

      Exactly!

    • @pianoforte17xx48
      @pianoforte17xx48 3 роки тому +4

      I never found his videos helpful anyway. He never goes to the concept. He just explains how to use the rules.

  • @Leo-ig6yl
    @Leo-ig6yl Рік тому

    I am confuse on 4:32, for -3/4, isn't the remainder is -3? Why it is under set [1] ?

  • @kaylahjones2230
    @kaylahjones2230 2 роки тому

    This video was so helpful, thank you so much

  • @nicolaevasiliu9430
    @nicolaevasiliu9430 Рік тому

    Thank you so much! Clearly explained! Great!

  • @jonathantosiocello
    @jonathantosiocello 4 роки тому +4

    My professor's explanation of this is still way worse than this, if it makes you feel better, TrevTutor

  • @outofbody4788
    @outofbody4788 7 років тому +2

    At 1:00 it should be 18 = 12 mod 3

    • @178890905
      @178890905 6 років тому

      Ikr?

    • @xenialxenagogue5978
      @xenialxenagogue5978 3 роки тому

      It can be what he wrote as well, cuz even if there's that -ve sign, it'll still be divisible by 3, cuz 3(-2)=-6

  • @einnorw
    @einnorw 6 років тому +9

    ok i thought i was the only one who found this vid super confusing and not helpful until i read the comments lol . jfc.

  • @samlowe2926
    @samlowe2926 5 років тому +3

    Ok so when you say a- b and you assign those letters by defining it as 3/(18-12) you make 18 a. But when you converted it to modulus form you put 12 where a should go?

    • @samlowe2926
      @samlowe2926 5 років тому +1

      Never mind, my impatient brain couldnt wait the 2 seconds to 1:16 to see you correct it lol

  • @xenialxenagogue5978
    @xenialxenagogue5978 3 роки тому

    Unlike most, I loved this one, kinda helped me a lot to understand how we calculate remainders in big cases, I'll just make the ap, and find the number I need eehehe

  • @doctorscalling9479
    @doctorscalling9479 4 роки тому

    Very well explained

  • @Hi_im_metric
    @Hi_im_metric 9 років тому +3

    hey Trev, we did congruent mods in our course is there a quick video on that? or is it a natural extension of what you've said in this video? We do a few proofs using congruent mods. Love the videos :)

  • @khadijahflowers5566
    @khadijahflowers5566 7 років тому +1

    Hey,
    If anyone has an answer, please let me know, but the question is this:
    When solving a linear congruence, how do you determine how many solutions it has? Someone told me that if we have something of the form:
    ax =(pretend this is the equivalence sign) b (mod m) then the amount of solutioms was determined by the gcd of a and m. Is that right?

    • @xenialxenagogue5978
      @xenialxenagogue5978 3 роки тому

      I don't really know but with an example I found, it seems it is wrong, again not sure though,
      take a=5, b=3 and m as 2, like u see, a and m hav gcd=1
      Now, m|ax-b for the solution, means 2| 5x-3, now this is true for all odd values of x (obviously, since odd-odd is even)
      Now, if it is like gcd≠1, then let a= 10, b=7 and m=4
      So, 4| 10x-7, now this is false for all integer values of x, since 10x-7 will always give a number ending with 3 or with 7 (for x as -ve)
      So, with 2 very basic examples I think your statement is wrong, maybe it was something different but similar

    • @giomik9400
      @giomik9400 Рік тому +2

      I know I'm late, but...
      Proposition:
      Let ax ≡ b (mod n) be a linear congruence.
      ax ≡ b (mod n) has solution ⟺ GCD(a, n) | b
      Proof:
      The congruence ax ≡ b (mod n) has solution ⟺
      ∃ x ∈ Z such that ax ≡ b (mod n) ⟺
      ∃ x ∈ Z such that n | ax - b ⟺
      ∃ x ∈ Z such that nh = ax - b ⟺
      ∃ x, h ∈ Z such that ax + n(-h) = b ⟺
      the equation ax + by = b has solution ⟺
      MCD(a, n) | b □
      Notes:
      - Every solution of a linear congruence is also called "particular solution".
      - If a particular solution exists, then an infinite amount of solutions exists.

  • @Madskillzzhc
    @Madskillzzhc 6 років тому +1

    Now this is all very easy examples. Let me hit you with the question from my exam: (5+55+101)*(576*555 + 100000000002) mod 5 is equal to?
    Possible answers 0, 1, 2, 3, 4. I cannot use a calculator, only use pen and paper. What to do?

    • @n0handles
      @n0handles 6 років тому +7

      The answer is 2
      You can apply the (mod 5) to each of the terms.
      So:
      ( 5 (mod 5) + 55 (mod 5) + 101 (mod 5) ) * ( 576*555 (mod 5) + 100000000002 (mod 5) )
      and then equate each of the terms' values
      ( 0 + 0 + 1) * ( 0 + 2 )
      which equals 2
      576*555 is one term, so the modulus is applied to both as a whole.
      Multiplying the last two digits, will give the last digit in the product, in this case it is zero (6*5 is 30).
      When there's mod 5, you just have to look at the last digit, and if it ends in a multiple of 5 (5 or 0).

    • @leafslizer2376
      @leafslizer2376 4 роки тому

      @@n0handles thx I tried solving it without your answer but I got tricked by the '576*555' your explanation were a blessing

    • @xenialxenagogue5978
      @xenialxenagogue5978 3 роки тому

      This question is also as easy as the examples😂, see 567*555 gives a number with last digit = 5, now if 1000....2 is added, then last digit comes out to be 7, now then u multiplied a number 55+5+101, so last digit is 1, now two numbers multiplied, one with last digit 7, one with last digit 1, so last digit comes out 7 again, we divide by 5, then remainder will come 7-5=2
      :) So answer is 2

  • @armans47
    @armans47 5 років тому +6

    the video wasnt as clear as all your other ones :(

  • @CeCegurrrl258
    @CeCegurrrl258 4 роки тому +6

    Our lord and savior during these times of corona virus making discrete math classes online when you have a bad teacher

  • @juliep1122
    @juliep1122 4 роки тому +2

    So I’m more confused now than I was before...

  • @ephoenix7
    @ephoenix7 5 років тому +1

    How does 1/4 have remainder 1? 4:10

    • @ayanaxhye
      @ayanaxhye 2 роки тому

      4 divides 1 zero times with a remainder of 1.
      essentially 4 cannot go into 1. hope that makes sense

  • @olyadmulisa6825
    @olyadmulisa6825 8 років тому +33

    more clarity please, you can do better

  • @Grantmadeachannel
    @Grantmadeachannel 8 років тому

    I think at 4:50 you want [1] {-5, -3, 3, 5}
    the one shouldn't be there?

    • @sarabeatrizschwarz215
      @sarabeatrizschwarz215 8 років тому +1

      It is supposed to be there. 1 = 4*0 + 1, so 1 is the remainder.

  • @hajrahissaniti
    @hajrahissaniti 4 роки тому +4

    thank u loved the way you explained 9 mod 4. i wish if you had shown anything for negative numbers too. say -97 mod 11. also if we have to find a huge number like in thousands or hundreds, writing all numbers will take forever. is there a quicker way?

  • @carlossantillana8058
    @carlossantillana8058 8 років тому +1

    Thank you so much, you cleared it up for me!

  • @thetimephysician8589
    @thetimephysician8589 9 місяців тому

    this is not an introductory video on modular arithmetic lmao, but I se it's video 78 in the playlist, so I'm not sure if you need to watch all 78 videos before this. but you prob should have mentioned that at the beginning

  • @Thebourrin777
    @Thebourrin777 Рік тому

    Sorry but this was very confusing. I had to find another explaination on Google to finally get it. Maybe you should have started with the modulo operator ?
    Then you could have drawn the parallel between a (mod b) and a mod b.
    From your example, 9 (mod 4) ≡ [1], I would also have 9 mod 4 = 1

  • @breakdancemedia3229
    @breakdancemedia3229 5 років тому

    Thank you very much...

  • @TheRoddie16
    @TheRoddie16 4 роки тому +1

    12 = 18 mod 3? Am I missing something?????

  • @isam3l3
    @isam3l3 4 роки тому

    thanks, loved the explanation

  • @YacineBenkirane
    @YacineBenkirane 8 років тому

    Isn't q = r in most, if not all, cases?

    • @aryanjoshi3342
      @aryanjoshi3342 2 роки тому

      Not at all, he just happened to pick exaples where q=r

  • @dbella804
    @dbella804 7 років тому

    Thank you

  • @zhhhh01
    @zhhhh01 3 роки тому

    very confusing how you introduce modular in the beginning

  • @ecneics7660
    @ecneics7660 4 роки тому

    I can't realize where u r writing

  • @Firoz-s3d
    @Firoz-s3d 8 місяців тому

    After 3:47 cant understand anything. Man why did you asume we already know this? Seriously this lecture was bad for me. Had to learn basics from somewhere else then came here again to learn the rest.

  • @philperry6564
    @philperry6564 2 роки тому

    12 is certainly not 18 mod 3, nor the other way round.

  • @kevinsibiya
    @kevinsibiya 3 роки тому

    Went from 0 to 100

  • @tabrissss
    @tabrissss 9 років тому

    What's the name of the book you mentioned?

    • @Trevtutor
      @Trevtutor  9 років тому

      Jonatham Vicens Either "The Book of Proof" which you can find on google, or a text written by a dude named Grimaldi which you can probably find illegally as well. Not sure where I mentioned it, but those are the books I'm using for this series.

    • @Trevtutor
      @Trevtutor  8 років тому

      +shadowofforms I know. I said "or" :)

  • @shamirabbas7706
    @shamirabbas7706 4 роки тому +1

    sorry.....but I can't understood.

  • @hohtz
    @hohtz 8 років тому +14

    Useless and not clear.

  • @pointer7pl
    @pointer7pl 2 роки тому

    i do not catch it

  • @Anwaar.m.a
    @Anwaar.m.a 8 років тому +5

    Am I the only one here who hates mods.. -_-

    • @bananabananae
      @bananabananae 8 років тому +1

      Anwar Al-Amrad Yes, you are the only one :-)

    • @ai378
      @ai378 7 років тому +2

      No, you aren't :3

  • @juicyrush10
    @juicyrush10 6 років тому +1

    I have no idea what your saying

  • @noitnettaattention
    @noitnettaattention 4 роки тому +5

    Actual MATH is most important for us, keep your proofs to your "heavenly" demigods residing in untouchable Olymp called Professors...

  • @lazor6526
    @lazor6526 Рік тому

    this video confused me more. i have to watch another video

  • @ethannetumala2073
    @ethannetumala2073 5 років тому +1

    tangina wala ako naintindihan

  • @yousifakram7981
    @yousifakram7981 11 місяців тому

    what

  • @shainatodi9123
    @shainatodi9123 Рік тому

    now

  • @marsabun
    @marsabun 2 роки тому

    sorry

  • @ganeshgump5034
    @ganeshgump5034 Рік тому

    Not one of your better videos you kinda rushed through the topic w/o much explanation

  • @amalfi615
    @amalfi615 2 роки тому

    not explained very well at all and full of errors

  • @trava4156
    @trava4156 4 роки тому

    ok.... and this is important WHY?!

  • @zstar8397
    @zstar8397 Рік тому

    Hey hope you are doing alright just I wanna say that
    GOD loved the world so much he sent his only begotten
    son Jesus to die a brutal death for us so that we can have eternal life and we can all accept this amazing gift this by simply trusting in Jesus, confessing that GOD raised him from the dead, turning away from your sins and forming a relationship with GOD. Nice vid btw

  • @mohammadminhaziftekhar4074
    @mohammadminhaziftekhar4074 5 років тому +1

    not so clear..