Finding Integer Solutions to Diophantine Equations

  • Thread starter bomba923
  • Start date
  • Tags
    Integer
In summary: I've seen it used for a variety of things, but not for sequences. Personally, I use (..) or <..> for a sequence, but the latter is more common for sequences of formulas.
  • #1
bomba923
763
0
[tex]\begin{gathered}
\forall p,q,r \in \mathbb{N}\;{\text{where }}p > q > 0, \hfill \\
\exists \left\{ {a_0 ,a_1 , \ldots ,a_n } \right\} \subset \left\{ {0,1, \ldots ,p - 1} \right\} \hfill \\
{\text{such that }}r = \sum\limits_{k = 0}^n {a_k \left( {\frac{p}
{q}} \right)^k } \hfill \\
\end{gathered} [/tex]
 
Physics news on Phys.org
  • #2
As stated that looks trivially false. I am assuming that your bracket is the legndre/jacobi symbol, and if so it is plus or minus 1 (or zero), the a_i are a *subset* (sets cannot have repeated elements) of {0,..p-1}, and as such just picking r large will do. The largest that sum could possibly be is 1+2+..+p-1 = (p-1)(p-2)/2
 
  • #3
i think it's true because it's limited to the existential quantifier, and thus we can find at least one sequence of a's which are subset to p-1's.

for example, p=2 q=1 n=2 r=a0+a1*2+a2*4, and thus r is natural, and you can find a combination where {a0,a1,a2} are subset of {0,1} like a0=a1=0 a2=1, etc.
 
  • #4
That is assuming that that symbol means the fraction p/q. As this was a number theory thread I assumed differently.

In anycase, it is still false as stated, and you cannot have the set {a0,a1,a1} as a subset of {0,1} the former has 3 elements the latter has two elements. Sets cannot have repeated elements. {0,0,1} is not a set. But almost certainly that is being too picky.

Replace it with

[tex] a_i \in \{0,..,p-1\}[/tex]

perhaps.
 
Last edited:
  • #5
isn't the set {0,0,1} equivalent to {0,1}?

p.s
i know that repetition doesn't affect the set itself, but i didn't know it wasn't allowed.
 
  • #6
To be honest I forget these days, or rather I would avoid using such ambiguous notation as to avoid having to figure out what was meant. You could well be right.
 
  • #7
The question doesn't make too much sense, it confuses sequences and sets, repetition of elements and the cardinality is somewhat ambiguous. But however you meant it I think this will apply:Pretty trivial proof that it is true for r > 2, let p = q

[tex]r = \sum_{k=0}^n a_k[/tex]

In other words, given an element of the natrual numbers can it be represented by a sum of smaller numbers, e.g 1 + 2 = 3, 1 + 3 = 4. All you have to do is prove that inductively, which is pretty trivial.
 
  • #8
As Matt Grime pointed out, the way it's written, it isn't true (even if it is fractions). Let p=2, q=1, r=100. Then the coefficients a(i) are either 0, 1 or 2, and 100 = a(0) + a(1)*3/2 + a(2)*9/4 cannot be satisfied. It's written as for every p, q, and r.
 
  • #9
Zurtex said:
Pretty trivial proof that it is true for r > 2, let p = q

[tex]r = \sum_{k=0}^n a_k[/tex]

!Zurtex, in the original post, it clearly states "p > q > 0"

You CANNOT have p=q
----------------------------------
matt grime said:
As stated that looks trivially false. I am assuming that your bracket is the legndre/jacobi symbol

No!--it's just the fraction...p/q :redface:!

daveb said:
As Matt Grime pointed out, the way it's written, it isn't true (even if it is fractions). Let p=2, q=1, r=100. Then the coefficients a(i) are either 0, 1 or 2, and 100 = a(0) + a(1)*3/2 + a(2)*9/4 cannot be satisfied. It's written as for every p, q, and r.

WHere did you get the 3/2 & 9/4 ?? If p=2 and q=1, you will have a0*(2/1) + a1*(4/1) + ... etc!

*Daveb, if p=2 and q=1, then p/q = 2 :wink:
And in that case, any ai is either 0 or 1.

But...let's take your example, where p=2, q=1, and r=100.
The sequence {a0,a1,...,an} = {0,0,1,0,0,1,1}
as
0(1) + 0(2) + 1(4) + 0(8) + 0(16) + 1(32) + 1(64) = 100Or, take the example where p=3, q=2, and r=100, in which case any ai is indeed 0,1, or 2. The sequence {a0,a1,...,an} = {1,0,2,1,0,0,2,1,2}
as
1(1) + 0 + 2(3/2)2 + 1(3/2)3 + 0 + 0 + 2(3/2)6 + 1(3/2)7 + 2(3/2)8 = 100*Just one more example: let p=7, q=4, and r=23.
The sequence {a0,a1,...,an} = {2,5,4}
as
[tex]2 + 5\left( {\frac{7}{4}} \right) + 4\left( {\frac{7}{4}} \right)^2 = 23 [/tex]

Btw, q=1 and r ≤ p are just the trivially true cases.
matt grime said:
To be honest I forget these days, or rather I would avoid using such ambiguous notation as to avoid having to figure out what was meant. You could well be right.

No problem! I'll rewrite this less ambiguously:

[tex]\begin{gathered}
\forall p,q,r \in \mathbb{N}\;{\text{where }}p > q > 0, \hfill \\
\exists \left\{ {a_0 ,a_1 , \ldots ,a_n } \right\}\;{\text{where }}\forall k \geqslant 0,\;a_k \in \left\{ {0,1, \ldots ,p - 1} \right\}, \hfill \\
{\text{such that }}r = \sum\limits_{k = 0}^n {a_k \left( {\frac{p}
{q}} \right)^k } \hfill \\
\end{gathered} [/tex]

Now, true or false?
 
Last edited:
  • #10
Why do you insist on writing the a_i as a set?

[tex]\exists a_i, 0\leq i \leq n, a_i \in \{0,\ldots,p-1\}[/tex]
 
  • #11
matt grime said:
Why do you insist on writing the a_i as a set?

[tex]\exists a_i, 0\leq i \leq n, a_i \in \{0,\ldots,p-1\}[/tex]
I don't. I intend to write it as a finite sequence of integers, each of which is between 0 (zero) and p-1 inclusively. Doesn't {a0,a1,...,an} denote a finite sequence?

*If not, how would you denote a finite sequence?
 
Last edited:
  • #12
*If not, how would you denote a finite sequence?

See the second line of his post?
 
  • #13
[tex] (a_i)_{i=0}^{i=n}[/tex]

is how you more formally write sequences: round brackets with the limits marked top and bottom, though it is not usually necessary.
 
  • #14
shouldn't they be curled brackets {}?
 
  • #15
I wouldn't have thought so. Curly braces are reserved for sets, and sets are neither ordered, nor allow repetition, unlike sequences.
 
  • #16
[tex] \{a_i \}_{i=0}^{n}[/tex] is sometimes used to denote an ordered sequence, though not always. Sometimes <> are used. Sometimes () are used. There's no universal notation here.
 
  • #17
bomba923 said:
!Zurtex, in the original post, it clearly states "p > q > 0"

You CANNOT have p=q

Sorry, I mis-read that as p > 0 and q > 0.

Trivial Proof 2

n = 0
p > q > r > 0
a0=r

Think you can complete the rest.
 
  • #18
bomba923 said:
WHere did you get the 3/2 & 9/4 ??...Or, take the example where p=3, q=2, and r=100
That's what I meant to write...oops. As Matt pointed out, {...} is generally for sets, especially since you initially wrote it as one being a subset (rather than a sequnce) of the other. The way you rewrote it now makes more sense.
 
  • #19
Zurtex said:
Sorry, I mis-read that as p > 0 and q > 0.

Trivial Proof 2

n = 0
p > q > r > 0
a0=r

Think you can complete the rest.
Zurtex,
I never said r MUST be less than p!
Again, q=1 and r<p are just the trivially true cases!

What about q > 1 and r > p ? :bugeye:

loop quantum gravity said:
shouldn't they be curled brackets{}?
Apparently not, but that's what I thought! :shy:
matt grime said:
[tex] (a_i)_{i=0}^{i=n}[/tex]
is how you more formally write sequences: round brackets with the limits marked top and bottom, though it is not usually necessary.
Alright, I'll rewrite the statement again (hopefully for the last time! unless other problems with semantics occur):

[tex]\begin{gathered}
\forall p,q,r \in \mathbb{N}\,{\text{ where }} \, p > q > 0, \hfill \\
\exists \left( {a_k } \right)_{k = 0}^n \,{\text{ where }}\,\forall k \geqslant 0,\;a_k \in \left\{ {0,1, \ldots ,p - 1} \right\}, \hfill \\
{\text{such that }}r = \sum\limits_{k = 0}^n {a_k \left( {\frac{p}
{q}} \right)^k } \hfill \\
\end{gathered} [/tex]

~Now, true or false?
 
  • #20
bomba923 said:
Alright, I'll rewrite the statement again (hopefully for the last time! unless other problems with semantics occur):

[tex]\begin{gathered}
\forall p,q,r \in \mathbb{N}\,{\text{ where }} \, p > q > 0, \hfill \\
\exists \left( {a_k } \right)_{k = 0}^n \,{\text{ where }}\,\forall k \geqslant 0,\;a_k \in \left\{ {0,1, \ldots ,p - 1} \right\}, \hfill \\
{\text{such that }}r = \sum\limits_{k = 0}^n {a_k \left( {\frac{p}
{q}} \right)^k } \hfill \\
\end{gathered} [/tex]

~Now, true or false?
The question is still a little ill-posed, I'm not exactly sure what you want. Is the question:

Can you generate any natural number r for every pair (p,q)?Edit: made a mistake, deleted itYour question seemed to me to be, can you generate a pair (p,q) to satisfy any given natural number r. Which I can prove in several trivial cases, and I 've shown the other question to be false with a trivial counter example, so what do you want?!?
bomba923 said:
Zurtex,
I never said r MUST be less than p!
Again, q=1 and r<p are just the trivially true cases!

What about q > 1 and r > p ? :bugeye:
I never said you said that, however it is also trivially true in the case of:

q = anything
and
p > r

With a little more work that can be broadened a little to an easy proof (almost trivial) for:

q= anything
and
p > r or p = r

Hmm, I think I may of misunderstood you though, when you say: "q=1 and r<p" are you referring to 2 different cases? It really doesn't look like it, but it is also trivially true of the case of:

q = 1
 
Last edited:
  • #21
Zurtex, it still works trivially if r < p since you can dictate that a(0) = r and then take all other a(k) = 0.
 
  • #22
This can be handled using the Euclidean algorithm, similar to integer base expansions.

Define [tex]r_1,a_0[/tex] by [tex]r=pr_{1}+a_0[/tex], where [tex]0\leq a_0 \leq p-1[/tex] and [tex]r_{1}\geq 0[/tex] (the Euclidean algorithm). Note [tex]r_1 < r[/tex]

In general define [tex]r_{k+1},a_{k}[/tex] by [tex]qr_{k}=pr_{k+1}+a_{k}[/tex], where [tex]0\leq a_k \leq p-1[/tex] and [tex]r_{k+1}\geq 0[/tex]. Note again that [tex]r_{k+1}<r_{k}[/tex] as q<p and [tex]a_{k}\geq 0[/tex].

Therefore this algorithm terminates eventually with [tex]qr_{n}=p0+a_{n}[/tex], say.

Work backwards,

[tex]r_{n}=a_{n}\frac{1}{q}[/tex]
[tex]r_{n-1}=a_{n}\frac{p}{q^2}+a_{n-1}\frac{1}{q}[/tex]
...
[tex]r_{1}=a_{n}\frac{p^{n-1}}{q^n}+\ldots+a_{1}\frac{1}{q}[/tex]
[tex]r=a_{n}}\frac{p^{n}}{q^n}+\ldots+a_{1}\frac{p}{q}+a_{0}[/tex]

the a's are the coefficients you wanted to prove existed.
 
Last edited:
  • #23
daveb said:
Zurtex, it still works trivially if r < p since you can dictate that a(0) = r and then take all other a(k) = 0.
I know, I stated that.
o.k, I think I can gather from the responces give, it's a bit difficult to guess what the person is actually asking!.

So, let's examine:
bomba923 said:
[tex]\begin{gathered}
\forall p,q,r \in \mathbb{N}\,{\text{ where }} \, p > q > 0, \hfill \\
\exists \left( {a_k } \right)_{k = 0}^n \,{\text{ where }}\,\forall k \geqslant 0,\;a_k \in \left\{ {0,1, \ldots ,p - 1} \right\}, \hfill \\
{\text{such that }}r = \sum\limits_{k = 0}^n {a_k \left( {\frac{p}
{q}} \right)^k } \hfill \\
\end{gathered} [/tex]

~Now, true or false?
Lets try the question in words to make more sense:For all p,q and r in the natrual numbers where p > q
(The author doesn't seem to realize that all natrual numbers are greater than 0)
Does there exist a sequence of length n + 1, such that all elements of the sequence are less than p and the sequence can be used as co-efficents of the sum from 0 to n of powers of p/q and that is equal to r.Read over that a couple of times and get it clear in your head, you'll see the question can be written more clearly and mathematically like so:[tex]\text{Given }p, q, r \in \mathbb{N} \, \text{and} \, p > q [/tex]

[tex]\text{Does there exist a sequence of integers} \, \left(a_i \right)_{i=0}^{n} \, \text{such that} \, 0 \leq a_i < p [/tex]

[tex]\text{and} \, r = \sum_{i=0}^n a_i \left( \frac{p}{q} \right)^i \, \text{?}[/tex]Which if you think about is proven to be true by shmoe, it's really a sum of powers of rational numbers, just like out decimal system, because they don't need to approach any irrational number then they can do it in a finite sum.

I would have guessed something like (p,q,r)=(4,3,10) might of needed an infinite sum, but seemingly not, learn something new every day.
 
Last edited:
  • #24
Zurtex said:
The question is still a little ill-posed, I'm not exactly sure what you want.

I'll write it out simply:

For any natural numbers p,q,r where p>q>0,

there exists a sequence {a0, a1,...,an} whose terms (i.e., ALL ai) are all integers between zero(0) and p-1

such that
[tex]r = \sum\limits_{k = 0}^n {a_k \left( {\frac{p}
{q}} \right)^k }[/tex]
------------------------------
Zurtex said:
Can you generate any natural number r for every pair (p,q)?

In which case, no, take the pair (p,q) = (4,1) and take the r = 3. There exists no way you can generate 3 from that pair and it's easy to show.

And here is why this assertion is incorrect:

Let p = 4 and q = 1. You have the pair (4,1). The sequence corresponding to r=3 is simply {3} :wink:

Because:

1) All elements sequence are integers between zero and p-1 inclusively.

2) '3' is an integer inclusively between zero(0) and p-1. In other words,
[tex] 3 \in \left[ {0,p - 1} \right] \cap \mathbb{Z} \Rightarrow 3 \in \left[ {0,3} \right] \cap \mathbb{Z}[/tex]

3) The sequence a0=3 (a sequence with one term) satisfies
[tex]r = \sum\limits_{k = 0}^n {a_k \left( {\frac{p}
{q}} \right)^k }[/tex]
when p=4, q=1, and r=3. Why? Because:
[tex]\sum\limits_{k = 0}^0 {a_k \left( {\frac{p}{q}} \right)^k } = a_0 \left( {\frac{4}{1}} \right)^0 = 3\left( 1 \right) = 3 [/tex]

Zurtex said:
I never said you said that, however it is also trivially true in the case of:

q = anything
and
p > r

With a little more work that can be broadened a little to an easy proof (almost trivial) for:

q= anything
and
p > r or p = r

Hmm, I think I may of misunderstood you though, when you say: "q=1 and r<p" are you referring to 2 different cases? It really doesn't look like it, but it is also trivially true of the case of:

q = 1

Zurtex, the statement is trivially true when r <= p or q=1.

But, have you considered when BOTH r > p and q > 1 ?
Or to put it briefly, when r > p > q > 1 ? :wink:
-----------------------------------------------
Here are some examples where r > p > q > 1:

1) p=7, q=4, r=39. Thus, the sequence is {4,6,1,4}, as
[tex]4 + 6\left( {\frac{7}{4}} \right) + 1\left( {\frac{7}{4}} \right)^2 + 4\left( {\frac{7}{4}} \right)^3 = 39 [/tex]

2) p=13, q=10, r=29. Thus, the sequence is {3,7,10}, as
[tex]3 + 7\left( {\frac{{13}}{{10}}} \right) + 10\left( {\frac{{13}}
{{10}}} \right)^2 = 29 [/tex]

3) p=17, q=11, r=94. Thus, the sequence is {12,4,16,11}, as
[tex]9 + 4\left( {\frac{{17}}{{11}}} \right) + 16\left( {\frac{{17}}{{11}}} \right)^2 + 11\left( {\frac{{17}}{{11}}} \right)^3 = 94 [/tex]
daveb said:
...it still works trivially if r < p since you can dictate that a(0) = r and then take all other a(k) = 0.
It seems as though people here are still preoccupied with the trivially true cases :rolleyes:

So, I'll rewrite this statement to remove ALL trivially true cases :approve::

[tex]\begin{gathered}
\forall p,q,r \in \mathbb{N}\;{\text{where }}r > p > q > 1, \hfill \\
\exists \left( {a_k } \right)_{k = 0}^n \;{\text{where }}\forall k \geqslant 0,\;a_k \in \left\{ {0,1, \ldots ,p - 1} \right\}, \hfill \\
{\text{such that }}r = \sum\limits_{k = 0}^n {a_k \left( {\frac{p}
{q}} \right)^k } \hfill \\
\end{gathered} [/tex]

~Now, true or false?
 
Last edited:
  • #25
Zurtex---I see you've edited your post! :smile:
 
  • #26
I've tried to clear a bit in my above post, but because you can't preview LaTeX it didn't come out right, refresh the page and it should be fine now.

Also I made a mistake in an above post that I removed at the same time someone else was quoting, which is where the inconsistency comes from.

Well, all done now, question answered, that was a headache. Well done shmoe :smile:
 
  • #27
Zurtex said:
I would have guessed something like (p,q,r)=(4,3,10) might of needed an infinite sum, but seemingly not, learn something new every day.
Just a sum of three terms:
[tex]2 + 2\left( {\frac{4}{3}} \right) + 3\left( {\frac{4}{3}} \right)^2 = 10[/tex]
:biggrin:
-----------------------------------
*A final question:

Now that we know the statement is true,
is there a non-brute force method (formula or algorithm)
of finding the sequence, given (p,q,r) ?

In particular, I'm trying to find the (21,20,200) sequence
 

Attachments

  • Brute Force.txt
    2.8 KB · Views: 219
Last edited:
  • #28
bomba923 said:
Now that we know the statement is true,
is there a non-brute force method (formula or algorithm)
of finding the sequence, given (p,q,r) ?

Yes, see post 22. If that counts as brute force to you, you're going to have to explain what you mean by "brute force".
 

1. What is a Diophantine equation?

A Diophantine equation is a mathematical equation in which the solutions are restricted to integers, meaning that the solutions must be whole numbers. These types of equations are named after the ancient Greek mathematician Diophantus, who first studied them.

2. How do you find solutions to Diophantine equations?

There is no general method for finding solutions to all Diophantine equations. However, there are some specific techniques that can be used depending on the type of equation. These include factoring, modular arithmetic, and the use of advanced mathematical concepts such as Pell equations and elliptic curves.

3. Can all Diophantine equations be solved?

No, not all Diophantine equations have integer solutions. Some equations have no solutions at all, while others may have an infinite number of solutions. It is also possible for an equation to have a finite number of solutions, but they are impossible to find using current mathematical techniques.

4. What are some real-world applications for Diophantine equations?

Diophantine equations have been used in a variety of fields, including cryptography, coding theory, and number theory. They are also used in computer science to create random number generators and in physics for modeling certain physical phenomena. Some famous examples of Diophantine equations include Fermat's Last Theorem and the Riemann Hypothesis.

5. Are there any open problems or ongoing research related to Diophantine equations?

Yes, there are still many unsolved problems and ongoing research related to Diophantine equations. Some of these include finding general solutions to certain types of equations, determining which equations have a finite number of solutions, and proving the existence or non-existence of solutions for specific equations. Additionally, there is ongoing research into the connections between Diophantine equations and other areas of mathematics, such as algebraic geometry and representation theory.

Similar threads

  • Linear and Abstract Algebra
Replies
10
Views
1K
  • Linear and Abstract Algebra
Replies
4
Views
958
  • Linear and Abstract Algebra
Replies
8
Views
760
  • Linear and Abstract Algebra
Replies
15
Views
1K
  • Linear and Abstract Algebra
Replies
3
Views
1K
  • Linear and Abstract Algebra
Replies
15
Views
4K
  • Linear and Abstract Algebra
Replies
3
Views
981
  • Linear and Abstract Algebra
Replies
1
Views
774
  • Linear and Abstract Algebra
Replies
4
Views
916
  • Linear and Abstract Algebra
Replies
2
Views
959
Back
Top