Solving linear congruences -- Number Theory 10

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

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

  • @criskity
    @criskity 3 ปีที่แล้ว +29

    I like to call the congruence sign (triple equals sign) "threequals". So, "a threequals b mod n".

    • @samuelmarger9031
      @samuelmarger9031 3 ปีที่แล้ว +11

      Not gonna lie, that's a pretty cute name.

    • @2070user
      @2070user 3 ปีที่แล้ว +4

      @@samuelmarger9031 Cute and cool but not professional lol

    • @anonymous_4276
      @anonymous_4276 3 ปีที่แล้ว +14

      How about calling the equals sign "two thirds congruence"?

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

      @@anonymous_4276 lol

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

      Whole like one and a half equal signs

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

    Solving linear congruences? More like “Super learning video this is!” Even though I have to go back through things to try to understand them, I really appreciate everything Michael has done for the community on TH-cam.

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

      this video section helps a lot to understand Number Theory books!!!! Michael helps us a lot with this kind of material

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

      @@danielfarias1154 I never took a formal class in number theory, but I definitely enjoy learning about it as a hobby. There’s tons of great information on YT if one knows where to look…

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

      @@PunmasterSTP yes!! , me too hahah, is funny to learn Number Theory, is a good hobby where you can learn a lot

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

    holy crap thank you so much im literally like 2 days away from my exam and linear congruences were really really reaaaallly hard for me to visualise but ur video is helping me make a load of sense !!!

  • @goodplacetostop2973
    @goodplacetostop2973 3 ปีที่แล้ว +18

    17:48 Homework
    18:04 Good Place To Stop

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

    Thanks a ton! Feeling bad for your left hand. Wish you a quick recovery.

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

    Video request: Find the general form of the indefinite integral
    \int dx/[a+b(cot(x))] and substitute in (a,b)=(0,1) to simplify the expression down to the well known integral of tan(x).

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

    In the reduced equation 13x + 21y = 4, the algo takes some time to stop, because 13 and 21 are Fibonacci numbers. Fibonacci numbers makes Euclidean types of algorithm take the longest time.
    .
    btw, my algo is a modified Euclidean algorithm where you start with 1,0 and 0,1 and run forward only. No back-substitution is necessary in this version of the Euclidean algorithm.

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

    Love all your videos! Keep on going, unless it is a good place to stop.

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

    Given 143x = 44 (mod 231) ---------- [0]
    this is equivalent to
    143x + 231y = 44 ---------- [1]
    where we look for your x (ex)
    but don't care so much about y (why)
    dividing through by 11 = gcd(143, 231) gives
    13x + 21y = 4 ---------- [2]
    We can solve this (see my Python program output below).
    Note the slight differences:
    for [0], solutions are unique up to modulo 231.
    for [1], solutions are unique up to modulo lcm(143,231)=3003, whereas
    for [2], solutions are unique up to modulo lcm(13,21)=273
    Solving 143x + 231y = 44
    143 231 | 44
    --------------------
    1 0 | 143
    0 1 | 231
    --------------------
    1 0 | 143 , q=0
    -1 1 | 88 , q=1
    2 -1 | 55 , q=1
    -3 2 | 33 , q=1
    5 -3 | 22 , q=1
    10 -6 | 44
    Particular solution: x=10, y=-6
    General solution
    x=10 -21*t
    y=-6 + 13*t
    Solutions are unique up to modulo lcm(143,231)=3003
    Solving 13x + 21y = 4
    13 21 | 4
    --------------------
    1 0 | 13
    0 1 | 21
    --------------------
    1 0 | 13 , q=0
    -1 1 | 8 , q=1
    2 -1 | 5 , q=1
    -3 2 | 3 , q=1
    5 -3 | 2 , q=1
    10 -6 | 4
    Particular solution: x=10, y=-6
    General solution
    x=10 -21*t
    y=-6 + 13*t
    Solutions are unique up to modulo lcm(13,21)=273

  • @lvl5popcap
    @lvl5popcap 4 หลายเดือนก่อน

    I'm getting 10+21m for the second example, like a couple of other comments have pointed out too, instead of 199+21m

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

    9:11, I don't understand why gcd(n/d, n)=1, but it seems that we didn't use it later...

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

      It isn’t; he made a mistake
      a = 5
      n = 25
      d = gcd(a, n) = gcd(5, 25) = 5
      n/d = 5
      gcd(n/d, n) = gcd(5, 25) = 5 ≠ 1

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

    Love this series

  • @Happy_Abe
    @Happy_Abe 3 ปีที่แล้ว +6

    What about showing there aren’t any other solutions besides these d solutions

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

      I was also thinking the same thing

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

      There are (n/d-1) other values for b that each have d solutions, so, of the n incongruent options for x, (n-d) of them are congruent to a value incongruent to b and aren't solutions.

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

    Fantastic video. How do you work your videos with your students?

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

    Number theory 10 comes out half a day after 13.
    I wonder if Michael knows that the natural nos are sometimes called counting numbers? ;)

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

      All videos till 20th had came, they are unlisted, you can find them on playlist

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

    143x = 44 (mod 231)
    Devide by the gcd(143,231)= 11
    13x = 4 ( mod 21)
    Check a mutiple of 21 that you can add to 4 to make the total multiple of 13 ( it is 126)
    13x = 130 (mod 21)
    x = 10 (mod 21)
    x = 10 + 21k

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

      False. You should check your answer by substituting the solution back into the original congruence.
      Take x=10+21(0), k=0
      143(10) is not congruent to 44 mod 231
      Take x=10+21(1), k=1
      143(31) is also not congruent to 44 mod 231
      But that was a good try nonetheless

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

      Letting k=6 give you 199 which Mr Penn get first.

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

      143*10=6*231+44 is true so skw is right. The other 10 solutions are also correct mod 231.

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

    Cheers

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

    6:45 I'm not sure that you have shown that all the solutions to ax=b modn must have the form x_0 + l(n/d) for any integer l and a particular solution x_0.
    Let x be any solution, then x = x_0 + r for some integer r and particular solution x_0. Plugging in we get ax-b= ax_0+ar - b. Since n|ax_0 - b, we must have n|ar which means n/d | (a/d)r.
    Since gcd(n/d, a/d) = 1 we have n/d | r so x = x_0 + l(n/d) for some integer l.
    Furthermore, we can create more solutions by adding multiples of n onto x, so x_0 + l(n/d) + kn is easily shown to be a solution as
    x_0 + l(n/d) + kn = x_0 + (l+kd)(n/d). We can also show that this solution is congruent to x_0 + m(n/d) for some m between 0 and d-1 by using division algorithm on l to get
    x_0 + (qd+m+kd)(n/d) = x_0 + m(n/d) + (q+k)n = x_0 + m(n/d) (modn)

  • @BOO_BOP_
    @BOO_BOP_ 10 หลายเดือนก่อน

    2:50 in what video did you prove it?

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

    The homework made me realize that the gcd(F_n, F_(n+1)) = 1, where F_n is the n-th Fibonacci number.

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

    thanks from the zhushikou flyover in beijing

  • @marc-andredesrosiers523
    @marc-andredesrosiers523 3 ปีที่แล้ว

    Great video. Like the proofs. Would have been nice to provide intuition with an integer lattice torus with the drawn lines. Especially, if it is to become a stand-alone video. Keep it up.

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

    10:46 idk how gcd of (12,20) is 4. Can someone explain please… even if I do like 20= 12*2 - 4… so should I just think 4 as positive?

  • @johnriverz
    @johnriverz 9 หลายเดือนก่อน

    I thought it was n divides a-b?

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

    Nice

  • @abdallahal-dalleh6453
    @abdallahal-dalleh6453 2 ปีที่แล้ว

    In the first example 12x = 8 (mod 20), 24, 29, 34, etc. are all solutions. In other words, doesn't continuously adding 5 gives us a solution? Why the limitation for the # solutions to be

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

      It's because having just one more solution would mean that one of the solutions that we already have is congruent to the new one IN THE MODULO WE'RE IN.
      For example, for 12x=8(mod20) we have gcd(20,12)=4 distinct solutions IN MODULO 20. In fact, 4 is congruent to 24 mod 20, 9 is congruent to 29 or -11 mod 20... so you can really choose your soultions, as long as they're distinct in that modulo, and your set of solutions could be {4, 9, 14, 19}, but also {24, -11, 54, -1}

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

      Typically they tell you which solutions to take, for example in competitions you could get "the number wanted is the sum of the first 5 positive solutions" or "the first 10 negative incongruent solutions (among a set of 12 for ex)"

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

    Ps .Iam professor my name is Marcos. Lili and pepe are my sons...lol

  • @nickw-dt7jz
    @nickw-dt7jz 3 ปีที่แล้ว +1

    Can you post some videos for 2-D plane geometry problem?

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

      He does have some videos from 2-D Co-ordinate Geometry on his channel

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

    Do the examples before the proof.

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

    The theorem at the start of the video could be proven using powers of complex numbers

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

      Yes and no.
      If following the order that number theory builds up from its axioms, at this stage we don't have complex numbers so it would introduce a circular dependency to use that "proof", which therefore becomes more of a consistency check between different parts of number theory

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

      @@trueriver1950 You don't need any number theory to define the complex numbers so there is no circular reasoning. The complex numbers can be defined simply as pairs (a, b) (written a+bi) which add componentwise as (a, b)+(c, d) := (a+c, b+d) and multiply as (a, b)(c, d) = (ac-bd, ad+bc), from which one can easily verify the field axioms, although it is a bit tedious. more abstractly the complex numbers can be defined as the quotient ring R[x]/ which is automatically a field because is a maximal ideal of R[x]
      (because x^2+1 has no roots in R so is a nonzero prime ideal, and every non-zero prime ideal in R[x] is maximal as R[x] is a principal ideal domain since R is a field)