Тёмный

Solve a Linear Congruence using Euclid's Algorithm 

Maths with Jay
Подписаться 39 тыс.
Просмотров 451 тыс.
50% 1

How to solve 17x ≡ 3 (mod 29) using Euclid's Algorithm. If you want to see how Bézout's Identity works, see • Bézout's Identity, usi...
0:00 A linear congruence...
0:30 ....is not an equation, but...
1:18 Multiplicative inverse
4:40 Euclid's Algorithm
5:58 Make the remainder the subject in each line
7:10 Backwards substitution
12:20 Multiply both sides of congruence by the multiplicative inverse
13:20 Check

Опубликовано:

 

10 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 361   
@ullassrivastava396
@ullassrivastava396 7 лет назад
On this topic, this is arguably the best explanation. Thank you.
@MathsWithJay
@MathsWithJay 7 лет назад
Brilliant! Thank you very much
@deandrelab4584
@deandrelab4584 3 года назад
can someone explain to me how the 4 is removed?
@WoodzCo
@WoodzCo 8 лет назад
Best with 1.25 speed :)
@MathsWithJay
@MathsWithJay 8 лет назад
+Moontego :)
@randomworksstudios9241
@randomworksstudios9241 6 лет назад
Better than best with 2.00 speed, a whiteboard, and lots of pausing.
@geraldillo
@geraldillo 4 года назад
Very likely, it took Euclid a bit longer than 15 minutes to invent this brilliant algorithm. I am thankful that I can learn his algorithm in under 15 minutes, thoroughly explained and easy to understand. Thanks you for that, Math with Jay.
@MathsWithJay
@MathsWithJay 4 года назад
My pleasure, geraldillo
@y.z.6517
@y.z.6517 4 года назад
@@geraldillo "it took Euclid a bit longer than 15 minutes to invent this brilliant algorithm." Citation? It took ~15 minutes to run through 1 example. Presumably, he needed longer to come up with a general solution, check it, and prove it?
@seireen938
@seireen938 7 лет назад
I searched so long for a proper explanation to this topic and you literally made me understand one week of college classes in 15 minutes! Keep up the good work and thank you kindly! 😊
@MathsWithJay
@MathsWithJay 7 лет назад
Excellent. So glad that you found this useful!
@terra3665
@terra3665 Год назад
Thank you so much! It always baffles me that teachers such as yourself can explain things this clearly and concisely, whilst others would take weeks to convey the same message.
@MathsWithJay
@MathsWithJay Год назад
You're very welcome!
@AndrewBryant288
@AndrewBryant288 7 лет назад
Thank you for the clear explanation of this. I'm taking a discrete math class currently and the book did not explain very well.
@MathsWithJay
@MathsWithJay 7 лет назад
Thanks a lot for your useful feedback.
@PrashantKumar-ou9wt
@PrashantKumar-ou9wt 2 года назад
Damn! I searched every playlist, saw nearly every video on this topic, and when I watched this one. I knew something extraordinary struck my mind! The question was solved!! A HUGE THANKS to you. The way you taught and explained each process is mesmerizing! I got each and every step so easily that I won't be forgetting it for a decade or such!
@MathsWithJay
@MathsWithJay 2 года назад
@Prashant: Thank you so much for this lovely feedback. It's great to know that you found this video so useful.
@brianocasio4585
@brianocasio4585 7 лет назад
Precisely explained; my Discrete Mathematics professor is basically useless. I'll be finding myself in this channel quite often through out the rest of the semester.
@MathsWithJay
@MathsWithJay 7 лет назад
Welcome to Maths with Jay!
@jonathanharoun5247
@jonathanharoun5247 4 года назад
I didn't learn this in Discrete Math.
@415HolyGuyArt
@415HolyGuyArt 7 лет назад
Very Nice. Brilliantly explained, and nice and slow!! Thank you!!
@MathsWithJay
@MathsWithJay 7 лет назад
Thank you, Lewis. Glad you found it useful!
@IslamElshobokshy
@IslamElshobokshy 8 лет назад
A GREAT explanation, easy to follow while writing what you're saying. Thank you for it, love ya!
@MathsWithJay
@MathsWithJay 8 лет назад
+Islam Elshobokshy Thank you so much for your positive feedback. It's great to know that you found this so useful. Jay
@tondekush
@tondekush 7 лет назад
this what I call a top notch explanation, thank you
@MathsWithJay
@MathsWithJay 7 лет назад
Thank you so much for your positive feedback
@hannes9594
@hannes9594 3 года назад
I'am german and i never understand a german Video about Linear Congruence. Now i understand it... Awesome work! :)
@MathsWithJay
@MathsWithJay 3 года назад
Glad to hear that! I speak a little German, but not enough to explain maths!
@allaboutxperience
@allaboutxperience 8 лет назад
Great explanation. Keep up the good work (Y)
@MathsWithJay
@MathsWithJay 8 лет назад
+Siddhant Sharma Thank you for your positive feedback; it is much appreciated. Jay
@kwamebohulu6975
@kwamebohulu6975 6 лет назад
Thanks Jay! most useful 14 minutes ever!
@MathsWithJay
@MathsWithJay 6 лет назад
Thank you!
@josnic33
@josnic33 6 лет назад
Thank you for this video It was just so clear...I got it now.
@MathsWithJay
@MathsWithJay 6 лет назад
Thank you!
@silveriofex
@silveriofex 6 лет назад
I love this explanation, thank you very much. Hugs from México!
@MathsWithJay
@MathsWithJay 6 лет назад
@Goa: Many thanks! Greetings to México from London!
@fred8835
@fred8835 6 лет назад
Which method is the most efficient in solving the linear congruence?
@tj9382
@tj9382 3 года назад
Excellent explanation, the best on here by a long way.
@MathsWithJay
@MathsWithJay 3 года назад
Glad you think so!
@kathleesi
@kathleesi 6 лет назад
I dont even study in English but couldn't find an Explanation in my language. Thanks so much for uploading this. Finally understood why we can Change it into a linear equation!!
@MathsWithJay
@MathsWithJay 6 лет назад
Thank you! What is your language?
@kathleesi
@kathleesi 6 лет назад
German :)
@MathsWithJay
@MathsWithJay 6 лет назад
Danke!
@simonecapone1923
@simonecapone1923 4 года назад
I can't find the word to explain how good this video was! Thank you so much! (I'm not english sorry for my mistakes)
@MathsWithJay
@MathsWithJay 4 года назад
@Simone: Thank you very much! Your English is very good.
@renanrosa5527
@renanrosa5527 6 лет назад
Excellent explanation, thank you!
@MathsWithJay
@MathsWithJay 6 лет назад
Thank you very much!
@adilsadigov
@adilsadigov 7 месяцев назад
This is the 4th video on this topic and I finally understood it.. thank you
@MathsWithJay
@MathsWithJay 7 месяцев назад
You're very welcome!
@priscillachen2634
@priscillachen2634 7 лет назад
Thank you for posting this! very helpful :)
@MathsWithJay
@MathsWithJay 7 лет назад
Many thanks for your feedback. It is really appreciated.
@muhammadhussain6117
@muhammadhussain6117 5 лет назад
I love you! seriously you saved me
@MathsWithJay
@MathsWithJay 5 лет назад
@Muhammad: Thank you!
@hemptg
@hemptg 8 лет назад
Your voice is really smooth, i like it!
@xyzzyx9357
@xyzzyx9357 3 года назад
Finally found the best explanation, thank you very much
@MathsWithJay
@MathsWithJay 3 года назад
You are welcome!
@Splunchy
@Splunchy 5 лет назад
Thank you very much. Your video helped me ace an exam.
@MathsWithJay
@MathsWithJay 5 лет назад
@Splunchy: Excellent. Thank you for letting us know.
@umapathibalijapelli1028
@umapathibalijapelli1028 7 лет назад
excellent explaination...slow and steady
@MathsWithJay
@MathsWithJay 7 лет назад
Thank you; it's good to know that you've found this useful.
@jenc5371
@jenc5371 2 года назад
You are so helpful, Ma'am! Thank you!
@MathsWithJay
@MathsWithJay 2 года назад
@Jen, you are so welcome!
@cipherunity
@cipherunity 6 лет назад
Nicely explained as usual
@MathsWithJay
@MathsWithJay 6 лет назад
Thank you for your positive feedback.
@gajendraprasaddas5785
@gajendraprasaddas5785 5 лет назад
Very much helpful to students in secondary levels.
@MathsWithJay
@MathsWithJay 5 лет назад
@GajendraPrasad Das: Thank you! What age are those students and in which country?
@DenzoY
@DenzoY 8 лет назад
Should call it maths with bae
@Onnethox
@Onnethox 3 года назад
12:36 Im so confused how 12*17x = x?? I understand thats what weve found for Bezut, but I just dont get how this works to isolate x? Is there some implicit thing we must assume about the 12? Because outright 12*17x could never give x.
@MathsWithJay
@MathsWithJay 3 года назад
We found that 12*17=1 on the LHS of the screen
@hsn_asiri6939
@hsn_asiri6939 7 лет назад
What is the program that you write the equations
@KOT_AMV
@KOT_AMV 4 года назад
wow this really helped me get it! thanks!
@MathsWithJay
@MathsWithJay 4 года назад
@S L: Thank you!
@Patrick-to5fl
@Patrick-to5fl 7 лет назад
Amazing!!! you made the process very simple.
@MathsWithJay
@MathsWithJay 7 лет назад
Great to have your feedback. Thank you.
@fadhilsugiharto5650
@fadhilsugiharto5650 5 лет назад
very easy to understand thank you
@MathsWithJay
@MathsWithJay 5 лет назад
@Fadhil Sugiharto: Excellent! Thank you!
@kamleshsaini6600
@kamleshsaini6600 7 лет назад
how to solve the same equations in two variables.can we split the va riables in single variables equations.?
@ivyzheng8681
@ivyzheng8681 3 года назад
Thank you! I finally understand this topic.
@MathsWithJay
@MathsWithJay 3 года назад
You are welcome!
@Malt3s3rKot
@Malt3s3rKot 4 года назад
Thank you for this!
@MathsWithJay
@MathsWithJay 4 года назад
@tader: Thank you!
@crystalcove99
@crystalcove99 4 года назад
Thank you very much for this explanation; it was very helpful. :D
@MathsWithJay
@MathsWithJay 4 года назад
You're very welcome!
@eme5986
@eme5986 3 года назад
Thank you!!!! so much this was a really clear explanation.
@MathsWithJay
@MathsWithJay 3 года назад
Glad it was helpful!
@DivoRomyo
@DivoRomyo 6 лет назад
Thank you so much from Belgium
@MathsWithJay
@MathsWithJay 6 лет назад
Thank you!
@Aaronmx12
@Aaronmx12 9 месяцев назад
Exceptional video! I like how each step is mentioned, by far the best video I've seen. @3:07 in the video I believe the side equation should read: 17v = 1 + 29w --> 17v - 29w = 1. Otherwise, the equation doesn't equate to 1.
@MathsWithJay
@MathsWithJay 6 месяцев назад
Thank you for your feedback. We have 17v = 1 - 29w ...but a different sign in front of the 29w just means that we would find w has a different sign.
@asdgqgqwe
@asdgqgqwe 6 лет назад
Perfect! Thank you!
@MathsWithJay
@MathsWithJay 6 лет назад
Thank you Andrei...and guess what? I also have a samson go mic! Fabulous isn't it?!
@asdgqgqwe
@asdgqgqwe 6 лет назад
Agree! It's a steal for the money you pay ! Please keep posting videos, you are really making an impact in many peoples lives! Studying these days will either make or break your career.
@carmelitabraga9297
@carmelitabraga9297 Год назад
absolutely loved it
@MathsWithJay
@MathsWithJay Год назад
Thank you!
@graceyujun
@graceyujun 6 лет назад
Your video was amazing thank you very much! Just one quick question, let's say that in the end, the result was x congruent 14 (mod 19). Would x be equal to 14 or 5 (as 19-14= 5 but it is not arranged in that order)?​
@MathsWithJay
@MathsWithJay 6 лет назад
Thank you for your feedback, Aimee. You can add or subtract multiples of 19 from 14, so the best answer is 14, but 14 - 19 = -5 is also an answer. 5 is not congruent to 14 (mod 19).
@antiscorbutic2091
@antiscorbutic2091 2 года назад
Thanks so much the explanation was on point ☺️
@MathsWithJay
@MathsWithJay 2 года назад
You’re welcome 😊
@vijay023
@vijay023 2 года назад
thank you finally, after hours of searching
@MathsWithJay
@MathsWithJay 2 года назад
Glad I could help
@capri2673
@capri2673 Год назад
Thanks for the explanation. Do we have to do one of these in the MST125 exam by any chance? As I may just run out of time! :)
@MathsWithJay
@MathsWithJay Год назад
The more practice you get, the faster you will be!
@amphiaraos
@amphiaraos 4 года назад
Very helpful, thank you.
@MathsWithJay
@MathsWithJay 4 года назад
@Amphiaraos: Thank you!
@Goopie48
@Goopie48 8 лет назад
Very helpful! Thanks for making this.
@MathsWithJay
@MathsWithJay 8 лет назад
And thanks for your feedback; it is appreciated.
@reubenwilliammpembe667
@reubenwilliammpembe667 6 лет назад
thank you Maths with Jay #Respect
@MathsWithJay
@MathsWithJay 6 лет назад
Many thanks Reuben!
@patelav21
@patelav21 5 лет назад
I have one more question, I am doing a RSA encryption problem. and I want to know how to solve bigger number modular without fast modulation. For ex: 2015^17 mod (3233) how would I break down the number and exponentials?
@MathsWithJay
@MathsWithJay 5 лет назад
@ImDHML: One way to start on a similar example: If we want 2018^19 (mod 3104), this would be congruent to (-1086)^19 (mod 3104), then it might help to write 1086 as 2x3x181, ...
@nazcaengineering3052
@nazcaengineering3052 3 года назад
Thank you so much! I have been trapped on this for weeks..
@MathsWithJay
@MathsWithJay 3 года назад
Glad I could help!
@richardblack1588
@richardblack1588 7 лет назад
omg why do i go to lecture when i can come here. THANK YOU JAY
@MathsWithJay
@MathsWithJay 7 лет назад
Thanks a lot :)
@DaiMoscv
@DaiMoscv 2 года назад
I was stuck with why the multiplication if x*n becomes just x, but now I understand why, I just couldn't see it because my professor thinks it's obvious matter. Thank you!
@MathsWithJay
@MathsWithJay 2 года назад
You're very welcome!
@ChrisHamberg-ok2cz
@ChrisHamberg-ok2cz 7 лет назад
This is the only explanation of this that makes sense.
@MathsWithJay
@MathsWithJay 7 лет назад
Thanks for letting us know.
@mattkizer7514
@mattkizer7514 2 года назад
What if the left hand side has subtraction or addition like 3x − 5 ≡ 4 (mod 7)?
@MathsWithJay
@MathsWithJay 2 года назад
You can treat it like a normal equation, so add 5 to both sides
@joaquinipar6133
@joaquinipar6133 5 лет назад
jay te amo mas que a euclides gracias!!
@MathsWithJay
@MathsWithJay 5 лет назад
Gracias!
@patriciathomas9873
@patriciathomas9873 5 лет назад
Thank you!! this was easy to follow. Great voice, patient.
@MathsWithJay
@MathsWithJay 5 лет назад
@Patricia: Thank you so much!
@Onnethox
@Onnethox 3 года назад
3:08 why is it minus 29??
@MathsWithJay
@MathsWithJay 3 года назад
It could be plus or minus...if you try it with plus, w will end up having the opposite sign
@eenis1281
@eenis1281 4 года назад
right at the end, congruent to 1. whats that mean? how does 12(17x) = x?
@MathsWithJay
@MathsWithJay 4 года назад
@Colin: Multiply 12 by 17...this gives 204....divide by 29....what is the remainder?
@smnoel
@smnoel 2 года назад
Great video!
@MathsWithJay
@MathsWithJay 2 года назад
Thank you!
@moisesdiaz9827
@moisesdiaz9827 3 года назад
Thank you!, excellent video
@MathsWithJay
@MathsWithJay 3 года назад
Glad it helped!
@moonreachersag
@moonreachersag 3 года назад
Better than my cryptography textbook thanks so much!!
@MathsWithJay
@MathsWithJay 3 года назад
Wow, thanks!
@zekeguo2889
@zekeguo2889 5 лет назад
Great explanation
@MathsWithJay
@MathsWithJay 5 лет назад
@Zeke Kwok: Thank you!
@seno3863
@seno3863 3 года назад
Great video, but just one question(I'm dumb), as the result of x congruent 7(mod 29), wouldn't that means x-7=29k?(k is a random number that representing the times of 29), I'm kinda confused cuz the way you check the result is kinda like taking "x=7" instead of "x congruent 7"
@MathsWithJay
@MathsWithJay 3 года назад
If you have an answer of 7, then 7 plus or minus a multiple of 29 should work too
@seno3863
@seno3863 3 года назад
@@MathsWithJay Got to say I'm surprised by the fact that there's actually a reply for a video that existed for so long, I'm really grateful, ty!
@SUPERGOOSE-LLC
@SUPERGOOSE-LLC 5 лет назад
Can also solve with 17x-3 = 29k. Try different values of k, i.e. 0,1,2,... until you get an integer solution for x. With k=4, then x=7. Much easier for small values of k. Otherwise, not practical without a computer.
@jaunathang
@jaunathang 3 года назад
You just healed my headache
@MathsWithJay
@MathsWithJay 3 года назад
A new medication for headache?!
@jaunathang
@jaunathang 3 года назад
Yep! It's called "explaining complex concepts with few clear steps instead of throwing a bunch of formulas and hoping your students will figure it out". Altought, you can't find it in drug stores. It's quite rare...
@MathsWithJay
@MathsWithJay 3 года назад
Thank you!
@donsunnyj
@donsunnyj 7 лет назад
Hi I want to ask what steps would be taken if the result of v after using the extended algorithm was a negative integer. would you still proceed using the outlined steps??
@MathsWithJay
@MathsWithJay 7 лет назад
It's easier to answer this kind of question if you give an example. If you are not sure if the method works, try it, then check the answer at the end.
@donsunnyj
@donsunnyj 7 лет назад
thanks for your response here is the problem I was trying to solve 56x is congruent to 100 mod 236.
@MathsWithJay
@MathsWithJay 7 лет назад
The first stage here is to divide through by the common factor. Then v will will be negative, so x will also be negative, but you can then add on a positive multiple of the mod so that your final answer is a small positive value. You can then check that it solves the given congruence. What do you get for v?
@donsunnyj
@donsunnyj 7 лет назад
thanks for your help thus far these the values i got for v and w : v=-21 and w=5. so i'm confused on how to proceed from there because of the presence of the negative sign.
@MathsWithJay
@MathsWithJay 7 лет назад
You are doing fine: you now know that 14x is congruent to 25 (mod 59), and 1 = 5x59 - 21x14, so (-21) multiplying both sides of your linear congruence gives x= -525. Add 9x59 to this to get a small x value. Or if you don't like (-21), you could add 59 to it to get 38 and use that instead....then you'd get 950 before subtracting a multiple of 59. Both methods give the same value for x...and check this in your original congruence.
@michaelmerkle2662
@michaelmerkle2662 6 лет назад
doing the matrix version of Euclid's algorithm will cut out having to do that back substitution part.
@matteovarano6179
@matteovarano6179 7 лет назад
grazie signora inglese e grazie anche alla sua pronuncia grazie alla quale ho capito le congruenze
@MathsWithJay
@MathsWithJay 7 лет назад
Grazie
@spencershrek1491
@spencershrek1491 6 лет назад
I have to do 13x+5=6x+15 (mod 20) anything special I have to do to deal with the integer addition?
@MathsWithJay
@MathsWithJay 6 лет назад
I could have started with 20x + 1 ≡ 3x + 4, and then subtracted 3x and 1 from both sides. I could check the answer in 20x + 1 ≡ 3x + 4..and see that it works.
@syamalchattopadhyay2893
@syamalchattopadhyay2893 3 года назад
Outstanding video lecture.
@MathsWithJay
@MathsWithJay 3 года назад
Glad you liked it!
@venchlim2185
@venchlim2185 3 года назад
this does not work on every linear congruent right? I mean.... I tried the method yes, but I also used the "Linear Congruence Calculator" and they have different results, idk why and idk which is correct or not.
@humayunahmed3544
@humayunahmed3544 8 лет назад
when you said 17v is congruent to 1 (mod 29), is that true because 29 is prime, in other words if it was 17x is congruent to 3 (mod 30), would it still be correct to write 17v is congruent to 1 (mod 30)?
@MathsWithJay
@MathsWithJay 8 лет назад
17v is congruent to 1 (mod 29) because we worked out that 17x12 - 7x29 = 1. If you want to use mod 30, you need to start at the beginning again, using 30 instead of 29.
@reyalcaraz6473
@reyalcaraz6473 3 года назад
so we were using euclids algorithm basically if the a and n are laege odd numbers?
@MathsWithJay
@MathsWithJay 2 года назад
or do you mean prime?
@anamsoha2863
@anamsoha2863 3 года назад
You explain excellent
@MathsWithJay
@MathsWithJay 3 года назад
Glad you think so!
@ianenricolucas2018
@ianenricolucas2018 5 лет назад
How did we leave with just only x at the last bit please rep thanks
@MathsWithJay
@MathsWithJay 5 лет назад
@Ian: At what time in the video please
@RameshKnowledgeIndex
@RameshKnowledgeIndex 5 лет назад
At 2:46 how did you write 17v=1-29w
@icgaming9280
@icgaming9280 4 года назад
I don’t understand that too
@MathsWithJay
@MathsWithJay 4 года назад
Think about what mod 29 means...
@academiclectures4558
@academiclectures4558 4 года назад
Good work.
@MathsWithJay
@MathsWithJay 4 года назад
Thanks! You may also like: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-zIFehsBHB8o.html
@ankitb3954
@ankitb3954 5 лет назад
Wish youtube had a 3x button.😂. Great video though
@MathsWithJay
@MathsWithJay 4 года назад
@ANKIT BATCHALI: Thank you! Recent videos are faster.
@moshekuby3537
@moshekuby3537 8 лет назад
very nice :) .. but what if i have something like 21x=11mod3 (by = i means to congruent) so (21,3) dos not divide 1 . but this linear congruent is a part of Chinese remainder theorem problem..
@MathsWithJay
@MathsWithJay 8 лет назад
Do you really mean mod 3? If so, 21 is congruent to 0, and 11 is not, so there is no possible value for x.
@aqsayounus6236
@aqsayounus6236 4 года назад
How would you do it for both negative solutions?
@MathsWithJay
@MathsWithJay 4 года назад
Do you have an example in mind?
@aqsayounus6236
@aqsayounus6236 4 года назад
Maths with Jay it doesn’t exactly have two negative solutions, but solving 5x congruent to 9mod8 gave me v = -3 and w = 2, so I’m a bit confused how to solve the last part (the part after we calculate v and w ) and how to check the answer if the v is negative
@MathsWithJay
@MathsWithJay 4 года назад
You could make v positive by adding on 8 because you are using mod 8. (You could also make the question simpler by subtracting 8 from 9) Both should give the same answer.
@iskhwa
@iskhwa 4 года назад
Thanks, this helped.
@MathsWithJay
@MathsWithJay 4 года назад
@Ismail Wahdan: Thank you!
@sheenvaleriepontila5110
@sheenvaleriepontila5110 7 лет назад
thankyou for this.
@MathsWithJay
@MathsWithJay 7 лет назад
Thank you - I'm glad that you found this useful.
@abbyraeellen2403
@abbyraeellen2403 4 года назад
How to solve linear congruence questions using maple software?
@MathsWithJay
@MathsWithJay 4 года назад
www.maplesoft.com/support/help/Maple/view.aspx?path=Task%2FSolveEqnModuloN
@joelcarter9264
@joelcarter9264 Год назад
How does 12 x 17x change to be just x in the last step?
@MathsWithJay
@MathsWithJay Год назад
We are rearranging the previous line where there was a 1 on the LHS.
@JustAGuy-iv5vg
@JustAGuy-iv5vg 5 лет назад
Thank you so much
@MathsWithJay
@MathsWithJay 5 лет назад
@Donovan: Thank you!
@angeliquaserenity5009
@angeliquaserenity5009 4 года назад
OK. I am lost at the last step. How did you go from X is congruent to 36 (Mod29) to Xi s congruent to 7 (Mod29)? Please show steps when responding. Thank you.
@J3FFR3Y08
@J3FFR3Y08 4 года назад
36-29 = 7
@100nb6
@100nb6 4 года назад
why didn't you just shift the inverse of 17 to the other side and take the modulo of it?
@RexxSchneider
@RexxSchneider 3 года назад
Well, it's an interesting algorithm, but intuitively, it doesn't feel right unless you have a grasp of the underlying arithmetic. Everybody should try at least once to solve the equivalent Diophantine equation by the usual method - you'll find that the amount of computation is the same, and you'll feel more confident with the Euclidean Algorithm. In this case, we want to solve the Diophantine equation 17x = 29a + 3 where x, a are integers. We proceed by consecutive substitutions, each one of which is an integer. Notice how the denominator reduces in size at each step: x = (29a+3)/17 = a + (12a+3)/17 then let b = (12a+3)/17 which must be an integer if x and a are integers as we require. Then we rearrange: a = (17b-3)/12 = b + (5b-3)/12 then let c = (5b-3)/12 b = (12c+3)/5 = 2c + (2c+3)/5 then let d = (2c+3)/5 c = (5d-3)/2 = 2d - 1 + (d-1)/2 [_For the final step I'll use n as the integer (because e might cause confusion)_] then let n = (d-1)/2 which gives d = 2n+1 Each consecutive integer n will then generate solutions. So we can now substitute for d to get c in terms of n, then express b in terms of n, and a in terms of n and finally x in terms of n: c = (5d-3)/2 = (5(2n+1)-3)/2 = 5n+1 b = (12(5n+1)+3)/5 = 12n+3 a = (17(12n+3)-3)/12 = 17n+4 x = (29(17n+4)+3)/17 = 29n+7 Notice how the arithmetic is equivalent to that presented when following Euclid's Algorithm in the video. The solutions are just the same and you can of course check by trying values of n from 0, 1, 2 ... etc. which will each generate a value for x that when multiplied by 17 and divided by 29 will leave a remainder of 3. Working through this kind of "primitive" method may well have been the basis for Euclid's insight into the deeper properties of congruence arithmetic.
@MathsWithJay
@MathsWithJay 3 года назад
Thank you for taking the time to give such a detailed response to this video
@oluwaseunosisiogu2064
@oluwaseunosisiogu2064 6 лет назад
Thank you very much
@MathsWithJay
@MathsWithJay 6 лет назад
Thank you!
@detacreations1999
@detacreations1999 4 года назад
Very much thanks
@MathsWithJay
@MathsWithJay 4 года назад
@Chakraborty Gaming zone: Thank you!
@anotherone2398
@anotherone2398 4 года назад
Here is what i did 17x ≡3(mod29) -12x ≡3(mod29) -3 and 29 are coprime 4x ≡-1(mod29) 4x ≡28(mod29) 4 and 29 are coprime x ≡7(mod29)
@MathsWithJay
@MathsWithJay 4 года назад
@Mehdi _,: Excellent! Thank you for sharing!
@koleth1
@koleth1 6 лет назад
What happen to the 4 during backwards induction? It just seemed to dissappear for no reason.
@MathsWithJay
@MathsWithJay 6 лет назад
Where is the 4?
@koleth1
@koleth1 6 лет назад
9:27, when it says "5-2x12+4x5"
@MathsWithJay
@MathsWithJay 6 лет назад
Oh yes, I see where it is. What happens is that 5 + 4 x 5 = 5 x 5.
@koleth1
@koleth1 6 лет назад
ah ok. understood thanks.
@icgaming9280
@icgaming9280 4 года назад
Thank you (math with jay) 😓👍💯
@MathsWithJay
@MathsWithJay 4 года назад
@Eng Menghong: Thank you!
@mohammedkameh9317
@mohammedkameh9317 2 года назад
You don't realize how big of a weight you just lifted off of my shoulders.
@MathsWithJay
@MathsWithJay 2 года назад
Thank you!
@ouraghyoussef5612
@ouraghyoussef5612 8 лет назад
Bonjour, Solving such equations are much more simply by the pattern of Ouragh . Indeed for the equation treated in the video this scheme is as following .....29........17........12.........5.........2.........1 ..................-1.........-1.........-2........-2 .................12.........-7..........5........-2.........1 and so we have x is congruent to 12 * 3 [ 29] is x = 7 [29] Cordially.
@user-st5bi1sh6o
@user-st5bi1sh6o 2 года назад
How we can show that 89 | 2^44 - 1 ????
@MathsWithJay
@MathsWithJay 2 года назад
Is that a congruence?
Далее
Solving Linear Congruences, Modular Arithmetic
11:33
Просмотров 166 тыс.
Chinese Remainder Theorem
13:15
Просмотров 434 тыс.
Extended Euclidean Algorithm (Solved Example 1)
10:16
Просмотров 236 тыс.
Extended Euclidean Algorithm Example
14:50
Просмотров 306 тыс.
EUCLIDEAN ALGORITHM - DISCRETE MATHEMATICS
10:02
Просмотров 267 тыс.
The Extended Euclidean algorithm
12:11
Просмотров 491 тыс.
Navier-Stokes Equations - Numberphile
21:03
Просмотров 1,1 млн
The Chinese Remainder Theorem (Solved Example 1)
14:22
Просмотров 513 тыс.