Jump to content

Finding a multiple


inshm2016

Recommended Posts

Hi,

 

If I have chosen number 24900 and need to find a number X such that 22133*X - 1 = a multiple of 24900, how do I do it? Is there a certain method? I have tried trial and error but to no avail :/

 

Grateful for replies

 

This problem can be re-formulated like this:

Find 2 integers x and y, such that they satisfy: gif.latex? 22133x - 1 = 24900y \Leftrigh

 

If you have done the Discrete Maths HL option, then you would realize that it's possible to apply the Euclidean Algorithm backwards in order to solve this problem. So let's begin!

 

First, we apply the Euclidean Algorithm using the 2 integers 22133 and 24900 as follows:

Line 1: gif.latex? 24900 = 22133 \times 1 + 2767

Line 2: gif.latex? 22133 = 2767 \times 7 + 2764

Line 3: gif.latex? 2767 = 2764 \times 1 + 3

Line 4: gif.latex? 2764 = 3 \times 921 + 1

 

For line 1, we call 24900 the dividend, 22133 the divisor, 1 the quotient, and 2767 the remainder; Then the Euclidean Algorithm simply tells us to make the divisor of line 1 to become the dividend of line 2, and to make the remainder of line 1 to become the divisor of line 2. Then we'll have to find the quotient and the remainder for line 2. The same process is repeated for line 3 & 4. Euclidean algorithm can only be stopped if you get 1 as the remainder (which is exactly what it is for line 4). I'll leave you there you understand why that must be the case.

 

Now, let's apply the Euclidean Algorithm backwards. From line 4, we have:

gif.latex? 1 = 2764 - 3 \times 921

Our job now is to re write this equation above using only 24900, 22133, and 2 other integers (eventually for x & y) based on the information in line 1, 2, and 3. This might look complicated, but just follow the common sense:

 

gif.latex? 1 = 2764 - 3 \times 921 (from line 4)

gif.latex? = (22133 - 2767 \times 7) - ( (from line 2 & 3)

gif.latex? = 22133 - 2767 \times 7 - 276

gif.latex? = 22133 - 2767 \times 928 + 2

gif.latex? = 22133 - (24900 - 22133) \ti (from line 1 & 2)

gif.latex? = 22133 - 24900 \times 928 +

gif.latex? = 22133 \times 1850 - 24900 \

gif.latex? = 22133 \times 1850 - 24900 \ (from line 1)

gif.latex? = 22133 \times 1850 - 24900 \

gif.latex? = 22133 \times (1850 + 6447)

 

gif.latex? = 22133 \times 8297 - 24900 \

 

Clearly, from the result above, we know that gif.latex? x = 8297 and gif.latex? y = 7375

Check that using your calculator, and you'll see the magic result. Feel free to ask if you have further questions!

Link to post
Share on other sites

 

Hi,

 

If I have chosen number 24900 and need to find a number X such that 22133*X - 1 = a multiple of 24900, how do I do it? Is there a certain method? I have tried trial and error but to no avail :/

 

Grateful for replies

 

This problem can be re-formulated like this:

Find 2 integers x and y, such that they satisfy: gif.latex? 22133x - 1 = 24900y \Leftrigh

 

If you have done the Discrete Maths HL option, then you would realize that it's possible to apply the Euclidean Algorithm backwards in order to solve this problem. So let's begin!

 

First, we apply the Euclidean Algorithm using the 2 integers 22133 and 24900 as follows:

Line 1: gif.latex? 24900 = 22133 \times 1 + 2767

Line 2: gif.latex? 22133 = 2767 \times 7 + 2764

Line 3: gif.latex? 2767 = 2764 \times 1 + 3

Line 4: gif.latex? 2764 = 3 \times 921 + 1

 

For line 1, we call 24900 the dividend, 22133 the divisor, 1 the quotient, and 2767 the remainder; Then the Euclidean Algorithm simply tells us to make the divisor of line 1 to become the dividend of line 2, and to make the remainder of line 1 to become the divisor of line 2. Then we'll have to find the quotient and the remainder for line 2. The same process is repeated for line 3 & 4. Euclidean algorithm can only be stopped if you get 1 as the remainder (which is exactly what it is for line 4). I'll leave you there you understand why that must be the case.

 

Now, let's apply the Euclidean Algorithm backwards. From line 4, we have:

gif.latex? 1 = 2764 - 3 \times 921

Our job now is to re write this equation above using only 24900, 22133, and 2 other integers (eventually for x & y) based on the information in line 1, 2, and 3. This might look complicated, but just follow the common sense:

 

gif.latex? 1 = 2764 - 3 \times 921 (from line 4)

gif.latex? = (22133 - 2767 \times 7) - ( (from line 2 & 3)

gif.latex? = 22133 - 2767 \times 7 - 276

gif.latex? = 22133 - 2767 \times 928 + 2

gif.latex? = 22133 - (24900 - 22133) \ti (from line 1 & 2)

gif.latex? = 22133 - 24900 \times 928 +

gif.latex? = 22133 \times 1850 - 24900 \

gif.latex? = 22133 \times 1850 - 24900 \ (from line 1)

gif.latex? = 22133 \times 1850 - 24900 \

gif.latex? = 22133 \times (1850 + 6447)

 

gif.latex? = 22133 \times 8297 - 24900 \

 

Clearly, from the result above, we know that gif.latex? x = 8297 and gif.latex? y = 7375

Check that using your calculator, and you'll see the magic result. Feel free to ask if you have further questions!

 

OMG THANK YOU!! :D

Link to post
Share on other sites

 

Hi,

 

If I have chosen number 24900 and need to find a number X such that 22133*X - 1 = a multiple of 24900, how do I do it? Is there a certain method? I have tried trial and error but to no avail :/

 

Grateful for replies

 

This problem can be re-formulated like this:

Find 2 integers x and y, such that they satisfy: gif.latex? 22133x - 1 = 24900y \Leftrigh

 

If you have done the Discrete Maths HL option, then you would realize that it's possible to apply the Euclidean Algorithm backwards in order to solve this problem. So let's begin!

 

First, we apply the Euclidean Algorithm using the 2 integers 22133 and 24900 as follows:

Line 1: gif.latex? 24900 = 22133 \times 1 + 2767

Line 2: gif.latex? 22133 = 2767 \times 7 + 2764

Line 3: gif.latex? 2767 = 2764 \times 1 + 3

Line 4: gif.latex? 2764 = 3 \times 921 + 1

 

For line 1, we call 24900 the dividend, 22133 the divisor, 1 the quotient, and 2767 the remainder; Then the Euclidean Algorithm simply tells us to make the divisor of line 1 to become the dividend of line 2, and to make the remainder of line 1 to become the divisor of line 2. Then we'll have to find the quotient and the remainder for line 2. The same process is repeated for line 3 & 4. Euclidean algorithm can only be stopped if you get 1 as the remainder (which is exactly what it is for line 4). I'll leave you there you understand why that must be the case.

 

Now, let's apply the Euclidean Algorithm backwards. From line 4, we have:

gif.latex? 1 = 2764 - 3 \times 921

Our job now is to re write this equation above using only 24900, 22133, and 2 other integers (eventually for x & y) based on the information in line 1, 2, and 3. This might look complicated, but just follow the common sense:

 

gif.latex? 1 = 2764 - 3 \times 921 (from line 4)

gif.latex? = (22133 - 2767 \times 7) - ( (from line 2 & 3)

gif.latex? = 22133 - 2767 \times 7 - 276

gif.latex? = 22133 - 2767 \times 928 + 2

gif.latex? = 22133 - (24900 - 22133) \ti (from line 1 & 2)

gif.latex? = 22133 - 24900 \times 928 +

gif.latex? = 22133 \times 1850 - 24900 \

gif.latex? = 22133 \times 1850 - 24900 \ (from line 1)

gif.latex? = 22133 \times 1850 - 24900 \

gif.latex? = 22133 \times (1850 + 6447)

 

gif.latex? = 22133 \times 8297 - 24900 \

 

Clearly, from the result above, we know that gif.latex? x = 8297 and gif.latex? y = 7375

Check that using your calculator, and you'll see the magic result. Feel free to ask if you have further questions!

 

Jesus christ man. The time you have as a post IB university student!

Link to post
Share on other sites

Feel free to ask if you have further questions!

 

Really, a big thanks for the help. Assisted me very much in my project.

I have one last question before finishing my work: Why is the mutiplicative order always a divisor of p-1? I thought that it only had to be less or equal to p-1. This question pertains to finding primitive roots :)

Link to post
Share on other sites

Jesus christ man. The time you have as a post IB university student!

 

Lol, posting on IBS takes way less time compared to all those philosophical debates that I have with you haha.

 

Really, a big thanks for the help. Assisted me very much in my project.

I have one last question before finishing my work: Why is the mutiplicative order always a divisor of p-1? I thought that it only had to be less or equal to p-1. This question pertains to finding primitive roots :)

 

Uhm... I think this question should belong to this thread of yours instead. Anyway, the answer is quite simple if you use Fermat's Little Theorem together with some intuitions when working with modulo.

 

So we know that if gif.latex?k is to be the primitive root of gif.latex?a \pmod{p}, then gif.latex?k must be the smallest positive integer that satisfies gif.latex?a^k \equiv 1 \pmod{p} . This means that gif.latex? a^{nk} \equiv 1 \pmod{p} in which gif.latex? n = 1, 2, 3, \dots . And in addition to that, since gif.latex?k is the smallest positive integer, we know from our intuition that all powers of gif.latex?a that are congruent to gif.latex?1 \pmod{p}must be of the form gif.latex? a^{nk} .

 

Now, Fermat's Little Theorem states that for a prime number gif.latex?p, it is true that gif.latex?a^{p-1} \equiv 1 \pmod{p} . This, together with the result of the above paragraph, tells us that gif.latex? a^{p-1} must be of the form gif.latex? a^{nk}, which simply implies that gif.latex?k is a factor of gif.latex?p-1. And that's it!!!

Tell me if you have any problems understanding my explanation.

Link to post
Share on other sites

 

Jesus christ man. The time you have as a post IB university student!

 

Lol, posting on IBS takes way less time compared to all those philosophical debates that I have with you haha.

 

Really, a big thanks for the help. Assisted me very much in my project.

I have one last question before finishing my work: Why is the mutiplicative order always a divisor of p-1? I thought that it only had to be less or equal to p-1. This question pertains to finding primitive roots :)

 

Uhm... I think this question should belong to this thread of yours instead. Anyway, the answer is quite simple if you use Fermat's Little Theorem together with some intuitions when working with modulo.

 

So we know that if gif.latex?k is to be the primitive root of gif.latex?a \pmod{p}, then gif.latex?k must be the smallest positive integer that satisfies gif.latex?a^k \equiv 1 \pmod{p}. This means that gif.latex? a^{nk} \equiv 1 \pmod{p} in which gif.latex? n = 1, 2, 3, \dots. And in addition to that, since gif.latex?k is the smallest positive integer, we know from our intuition that all powers of gif.latex?a that are congruent to gif.latex?1 \pmod{p}must be of the form gif.latex? a^{nk}.

 

Now, Fermat's Little Theorem states that for a prime number gif.latex?p, it is true that gif.latex?a^{p-1} \equiv 1 \pmod{p}. This, together with the result of the above paragraph, tells us that gif.latex? a^{p-1} must be of the form gif.latex? a^{nk}, which simply implies that gif.latex?k is a factor of gif.latex?p-1. And that's it!!!

Tell me if you have any problems understanding my explanation.

 

THANK YOU SO MUCH. I really appreciate the time you spent helping me. Finally done with the IA :D :D

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...