How do I solve this Diophantine equation using modulo?

  • MHB
  • Thread starter Petrus
  • Start date
In summary: Did you use a calculator to solve for \(k\) or did you use a method of solving diophantine equations? If you used a calculator to solve for \(k\), please describe the method you used.
  • #1
Petrus
702
0
Hello MHB,
I have hard understanding what we doing when we solve
\(\displaystyle 35y \equiv 13(mod\ 97)\)
I understand we can rewrite that as
\(\displaystyle 35y = 13+97m\)
if we replace \(\displaystyle m=-x\) we got
\(\displaystyle 97x+35y=13\)
I get \(\displaystyle gcd(97,35)=1 \) that means we will have one soloution.
and the diophantine equation got soloution for \(\displaystyle y=-468+97k
\) and what shall I do next?

Regards,
 
Mathematics news on Phys.org
  • #2
Hello MHB,
I finally saw what I did wrong! for people who is interested the soloution will be \(\displaystyle k=5 <=> y=17\)
What have we exactly calculated?
this is what we calculated:
\(\displaystyle 35y \equiv 13(mod\ 97)\)
if we \(\displaystyle 35*17=595\) with other words if we take away 13 from 595 and divide by 97 we will get a integer as result so
\(\displaystyle 595-13= 582\) and now to se we get no rest with divide by 97.
\(\displaystyle \frac{582}{97}=6\) so we solved it correctly!
Regards,
 
Last edited:
  • #3
Petrus said:
Hello MHB,
I finally saw what I did wrong! for people who is interested the soloution will be \(\displaystyle k=5 <=> y=17\)
What have we exactly calculated?
this is what we calculated:
\(\displaystyle 35y \equiv 13(mod\ 97)\)
if we \(\displaystyle 35*17=595\) with other words if we take away 13 from 595 and divide by 97 we will get a integer as result so
\(\displaystyle 595-13= 582\) and now to se we get no rest with divide by 97.
\(\displaystyle \frac{582}{97}=6\) so we solved it correctly!
Regards,

Given the first order diophantine equation...

$\displaystyle 35 \cdot y \equiv 13\ \text{mod}\ 97$ (1)

... a standard way to solve it is to multiply both members by the multiplicative inverse of 35, if that multiplicative inverse do exists, obtaining...

$\displaystyle y \equiv 35^{-1} \cdot 13\ \text{mod}\ 97$ (2)

If n is prime, then any number mod n different from zero has one and only one multiplicative inverse. In Your case 97 is prime and the multiplicative inverse of 35 is 61 because $\displaystyle 35 \cdot 61 = 2135 = 97 \cdot 22 + 1$, so that the solution is...

$\displaystyle y = 61 \cdot 13 = 793 \equiv 17\ \text{mod}\ 97$ (3)

Kind regards

$\chi$ $\sigma$
 
  • #4
Hello, Petrus!

Solve: .\(\displaystyle 35y \,\equiv\, 13\text{ (mod 97)}\)

We have: .. .[tex]35y \:\equiv\:13\text{ (mod 97)}[/tex]

. . . . . . . . . [tex]35y \:\equiv\:-84\text{ (mod 97)}[/tex]

Divide by 7: .[tex]5y \:\equiv\:-12\text{ (mod 97)}[/tex]

Then: .[tex]5y \:=\:-12 + 97k[/tex]

Hence: .[tex]y \:=\:\frac{97k-12}{5} \:=\:19k-1 + \frac{2k-7}{5}[/tex]

Since [tex]y[/tex] is an integer, [tex]2k-7[/tex] must be a multiple of 5.
This happens when [tex]k = 1.[/tex]Therefore: .[tex]y \:=\:19(1) - 1 + \frac{2(1)-7}{5} [/tex]

. . . . . . . . .
[tex]y \:=\:17\text{ (mod 97)}[/tex]
 
  • #5
chisigma said:
Given the first order diophantine equation...

$\displaystyle 35 \cdot y \equiv 13\ \text{mod}\ 97$ (1)

... a standard way to solve it is to multiply both members by the multiplicative inverse of 35, if that multiplicative inverse do exists, obtaining...

$\displaystyle y \equiv 35^{-1} \cdot 13\ \text{mod}\ 97$ (2)

If n is prime, then any number mod n different from zero has one and only one multiplicative inverse. In Your case 97 is prime and the multiplicative inverse of 35 is 61 because $\displaystyle 35 \cdot 61 = 2135 = 97 \cdot 22 + 1$, so that the solution is...

$\displaystyle y = 61 \cdot 13 = 793 \equiv 17\ \text{mod}\ 97$ (3)

Kind regards

$\chi$ $\sigma$
Hello,
I wounder if it's anything wrong with the way I solve it? I just feel safe with it and I think that is the way we are supposed to solve it, well that is what I did and get correct answer.

Regards,
 
  • #6
Petrus said:
Hello,
I wounder if it's anything wrong with the way I solve it? I just feel safe with it and I think that is the way we are supposed to solve it, well that is what I did and get correct answer.

Regards,

The great scope of Math is not to solve day by day the occasional problems one meets but to supply instruments to solve specific problems no matter how complex they are. In the modern cryptography diophantine equations similar to one You have proposed but with n a very large prime number are usual and some powerful algorithms for 'fast' discovery of the inverse multiplicative inverse of a number mod n with n very large prime have been found... Kind regards $\chi$ $\sigma$
 
Last edited:
  • #7
Petrus said:
Hello,
I wounder if it's anything wrong with the way I solve it? I just feel safe with it and I think that is the way we are supposed to solve it, well that is what I did and get correct answer.

Regards,

Hi Petrus, :)

To know whether you solved using a correct method that applies to any Diophantine equation we need some more details. In your post #1, you haven't actually written down how you obtained, \(y=-468+97k\).
 

Related to How do I solve this Diophantine equation using modulo?

1. What is a Diophantine equation?

A Diophantine equation is a type of polynomial equation in which the variables and coefficients are restricted to be integers. It is named after the ancient Greek mathematician Diophantus.

2. What is the role of modulo in Diophantine equations?

Modulo, or modular arithmetic, is used in Diophantine equations to restrict the solutions to a specific set of integers. This allows for easier analysis and solution of the equations.

3. Can all Diophantine equations be solved?

No, not all Diophantine equations have solutions. In fact, the problem of determining whether a Diophantine equation has a solution is undecidable in general, meaning there is no algorithm that can solve all Diophantine equations.

4. Are there any practical applications of Diophantine equations?

Yes, Diophantine equations have practical applications in fields such as cryptography, coding theory, and number theory. They are also used in solving real-world problems involving integer quantities.

5. How can I solve a Diophantine equation?

The method for solving a Diophantine equation depends on the specific equation. In some cases, it may be possible to use algebraic techniques or trial and error to find solutions. In more complex cases, advanced mathematical methods such as modular arithmetic, number theory, and algebraic geometry may be required.

Similar threads

  • General Math
Replies
24
Views
5K
Replies
3
Views
819
  • Calculus and Beyond Homework Help
Replies
4
Views
1K
Replies
4
Views
2K
  • Calculus and Beyond Homework Help
Replies
3
Views
1K
Replies
10
Views
5K
  • Math POTW for University Students
Replies
1
Views
1K
Replies
21
Views
4K
Replies
2
Views
2K
Back
Top