The Formula for K-th Twin Prime - Is There One?

  • Thread starter lokofer
  • Start date
  • Tags
    Prime
In summary: I'm not sure why you would bother though -- it's just a restatement of the same thing that we already know. It's not going to give you an "elementary formula" (in the sense of using a finite number of operations/functions) for the twin primes. It's just not going to happen.
  • #1
lokofer
106
0
k-th "Twin prime"...

Is not there a formula for the k-th "twin prime" ?..as far as i know for the normal primes satisfying "Wilson's theorem":

[tex] (p-1)!+1=mod(p) [/tex] you can get an "exact" (but difficul to compute) formula in the form:

[tex] p_k = \sum_{n=2}^{2^{k}}(\frac{k}{1+\pi(n)})^{1/n} [/tex] or similar..

But Why is not there this formula for the "twin primes" ? in fact they also satisfy a congruence...:grumpy:
 
Physics news on Phys.org
  • #2
If there were a formula for the "nth twin prime" then there would be a proof that there exist an infinite number of twin primes wouldn't there?
 
  • #3
- The question is "hallsoftivy" why you can get a formula for the k-th "normal" prime (see mathworld) from the "congruence" equation but you can't get a similar one for the k-th "twin" prime...:confused:
 
  • #4
lokofer said:
- The question is "hallsoftivy" why you can get a formula for the k-th "normal" prime (see mathworld) from the "congruence" equation but you can't get a similar one for the k-th "twin" prime...:confused:

HallsofIvy was just showing that a solution to your problem would be a solution to a major unsolved problem, and as such
1. It's unsolved
2. It's hard.
 
  • #5
What he's asking for wouldn't necessarily solve the twin prime problem. It's not hard to come up with an elementary looking sum (or rather a sum using only elementary functions) for the counting function of the twin primes, but it's not something that you can work with at all effectively.


You might want to take a moment and prove that the expression you have there for the kth prime works. What known facts about the primes are necessary? Are analagous results known for twin primes?
 
  • #6
- By the way as it happens with "normal" primes... the set of twin primes satisfy a congruence:

[tex] 4((m-1)!+1)+m=0 mod (m(m+2)) [/tex]

EDIT: If I'm not wrong the "twin prme number function " using the expression above is:

[tex] \pi_{2} (n)= A+ \sum_{k=2}^{n}[cos^{2}(\pi)([\frac{ 4((k-1)!+1)+k}{k(k+2)}]- \frac{4((k-1)!+1)+k}{k(k+2)})] [/tex]

[x]=floor function.
 
Last edited:
  • #7
shmoe said:
What he's asking for wouldn't necessarily solve the twin prime problem. It's not hard to come up with an elementary looking sum (or rather a sum using only elementary functions) for the counting function of the twin primes, but it's not something that you can work with at all effectively.

How would that not prove the twin prime conjecture? If there was a formula for the kth twin prime there must be infinitely many, right? Even if the formula is computationally worthless if it's valid it would be enough.

Now a n&s condition wouldn't be enough, of course; I presume that's what jose claims this formula is. (It's clearly necessary, but I can't quite prove to myself that it's sufficient -- could there be other roots getting involved? It seems to work just fine, though.)
 
  • #8
lokofer said:
- The question is "hallsoftivy" why you can get a formula for the k-th "normal" prime (see mathworld) from the "congruence" equation but you can't get a similar one for the k-th "twin" prime...:confused:
Precisely which formula are you talking about. There are several, none of which can be written in "closed" form. For that matter- "mark off each prime while counting until you reach k. The number you just marked off is the kth prime" is a perfectly valid formula. Of course, that assumes that there is a "kth" prime.

In order to have a similar or any formula for the "kth twin prime", you would have to first know that there is always a "kth twin prime". In other words, that there are an infinite number of twin primes.
 
  • #9
CRGreathouse said:
How would that not prove the twin prime conjecture? If there was a formula for the kth twin prime there must be infinitely many, right? Even if the formula is computationally worthless if it's valid it would be enough.

I'm saying that you can't make any claims about something that you don't even have. Of course if you have any function that outputs a strictly increasing infinite sequence of twin primes then you'd be done. Maybe I'm being too liberal in what I'd consider a formula for twin primes.

CRGreathouse said:
Now a n&s condition wouldn't be enough, of course; I presume that's what jose claims this formula is. (It's clearly necessary, but I can't quite prove to myself that it's sufficient -- could there be other roots getting involved? It seems to work just fine, though.)

the wilson's theroem like mod condition he gave is necessary and sufficient, attributed to Clement, and not too difficult to prove.
 
  • #10
lokofer said:
EDIT: If I'm not wrong the "twin prme number function " using the expression above is:

[tex] \pi_{2} (n)= A+ \sum_{k=2}^{n}[cos^{2}(\pi)([\frac{ 4((k-1)!+1)+k}{k(k+2)}]- \frac{4((k-1)!+1)+k}{k(k+2)})] [/tex]

[x]=floor function.

The function you posted looks right to me and bears out experimentation, and shmoe says it's by Clement and true.

The expression you posted for finding the n-th twin prime isn't right as written -- what did you mean to take the cosine of? What's A? Maybe once you change this we can test it. I look forward to that.
 
Last edited:
  • #11
- Sorry to all "forumers" posting here the expression was:

[tex] \pi_2 (n)=-1+\sum_{k=2}^{n}[Cos^{2}\pi[\frac{4((k-1)!+1)+k}{k(k+2)}]] [/tex]

the problem is to "invert" this function to obtain the "latest" (if exist) "twin prime"..is clearer now? A=-1 (constant) and [x], (x)! are the floor function and the factorial...

- For the case of "normal primes" they managed to get an expression involving: [tex] | \frac{n}{1+\pi (k)} |^{1/n} [/tex] (inside a sum ) to get the p(n) prime but can the same be made for "twin primes"?
 
Last edited:
  • #12
lokofer said:
- For the case of "normal primes" they managed to get an expression involving: [tex] | \frac{n}{1+\pi (k)} |^{1/n} [/tex] (inside a sum ) to get the p(n) prime but can the same be made for "twin primes"?

Have you tried to prove this sum gets the k-th prime as I suggested before? Not because I don't believe it's true, but because you will learn something about what known facts about the primes were needed in the proof. Then ask why the same thing won't work with the current knowledge of twin primes.
 
  • #13
We can build an algorithm that outputs the kth pair of twin primes, so why not a mathematical expression? I think there ought to be a mathematical expression that outputs the kth pair of twin primes, though it would be meaningless because it's not going to tell us anything new. For example, we wouldn't know if a kth pair of twin primes exists, so the math function could just go on forever, searching in vain.
 
  • #14
If we had that "twin prime " theorem fails then, we could amazingly find an exact expression as a "Eigenfunction expansion" let be the integral:

[tex] \frac{logZ(s)}{s}-\frac{Kh(s)}{1}=\int_{a}^{\infty}dt \frac{E_{2}(t)-K}{e^{st}-1} [/tex] [tex] E_{2}(t)=\pi_{2}(e^{t}) [/tex] where a=ln(2)=0.69314718..

With [tex] Z(s)=\prod_{p,p+2}(1-p^{-s})^{-1} [/tex] product extended to all "twin primes" ) and [tex] h(s)=\int_{a}^{\infty}dt (exp(st)-1)^{-1} [/tex] [tex] E_{2} (p_{k})=K [/tex] where "p_k" would be the "last" twin prime.

Then the function [tex] \pi_{2} (t)-K [/tex] would be on L^2 (a,oo) space, and the Kernel inside the Integral equation is symmetric hence we could obtain a set of orthonormal eigenfunctions and real eigenvalues for K(s,t) the "solution" for teh density of "twin primes" (if there are just a finite number of them is)

[tex] E_{2} (t)-K= \sum_{n} \lambda _{n} C_{n} \phi_{n} (t) [/tex]

and [tex] C_{n} = (\frac{logZ(s)}{s}-\frac{Kh(s)}{1}, \phi_{n} )[/tex] scalar product.

Of course from this you could "obtain" Brunn's constant in the form:

[tex] \sum_{n}^{\infty} \lambda _{n}C(n)d(n)= B_{2} [/tex]

B2=1.902160583104..

Of course unless "twin prime" is correct and the sum above does not converge to Brun's constant [tex] d(n)= (exp(-x), \phi_{n} (x) ) [/tex]

EDIT: I have corrected the "wrong" terms..hope now it's understandable.
 
Last edited:

1. What is the formula for K-th twin prime?

The formula for K-th twin prime is 6K+1 and 6K-1, where K is a positive integer.

2. How is the formula derived?

The formula is derived from the prime number theorem and the fact that twin primes are separated by a multiple of 6. By setting up the equation 6K+1 = prime number and 6K-1 = prime number, we can find values of K that result in twin primes.

3. Does the formula work for all values of K?

No, the formula only works for values of K where 6K+1 and 6K-1 are both prime numbers. It is believed that there are infinitely many twin primes, but this has not been proven.

4. Are there any exceptions to the formula?

Yes, there are a few exceptions to the formula. For example, when K=1, the formula gives 5 and 7 as the twin primes, but 5 is not a twin prime. Additionally, there are some cases where 6K+1 or 6K-1 is not a prime number, breaking the twin prime pattern.

5. Why is the formula important?

The formula for K-th twin prime is important because it helps in the search for twin primes, which are important in number theory and cryptography. It also provides a pattern to follow, making it easier to identify potential twin primes and possibly discover new ones.

Similar threads

  • Linear and Abstract Algebra
Replies
2
Views
852
  • Precalculus Mathematics Homework Help
Replies
17
Views
2K
  • Linear and Abstract Algebra
Replies
1
Views
773
  • Precalculus Mathematics Homework Help
Replies
2
Views
1K
  • Math Proof Training and Practice
Replies
0
Views
879
Replies
1
Views
894
  • Calculus and Beyond Homework Help
Replies
9
Views
1K
  • Linear and Abstract Algebra
Replies
11
Views
2K
  • Linear and Abstract Algebra
Replies
2
Views
947
  • Linear and Abstract Algebra
Replies
2
Views
1K
Back
Top