ramsey2879 said:
Could'nt we also do it this way?
Rewrite the equation as [itex]32n+3 = kp[/itex]. Rewrite that as
(1) [tex]kp - 32n = 3[/tex]
Now this linear diophantine equation has solution (n,p) only when k is relatively prime to 32. The rrs mode 32 is {1,3,5,7,9,11,13,15,19,21,23,25,27,29,31}. Let one of these be denoted by r.
[tex](32t+r)p - 32n = 3[/tex]
So for any prime P and reduced residue of 32, R we have
[tex]Pt - n = \frac {3-RP}{32}[/tex]
Which can be shown either to exist or not as a diophantine equation depending on whether 32|(3-RP).
So although this is not your typical closed form solution you can check easily to see if a given residue and a given prime allow a solution. When 32|(3-RP) we know that there is at least one solution t=3-RP and [itex]n = P(3-RP)-\frac {3-RP}{32}[/tex]<br />
<br />
Then we can write all of them as<br />
<br />
t = 3-RP + s<br />
[tex]n = P(3-RP)-\frac {3-RP}{32} - s[/tex]<br />
<br />
s is an integer of our choosing.<br />
<br />
This is interesting in that it shows us that while t and n are discrete linear in the residues, t discrete linear in the primes but n is discrete quadratic in the primes. That begs the follwing question, clearly<br />
<br />
[tex]-RP^2+(3 -\frac {R}{32})P-(\frac {3}{32} +s+n)=0[/tex]<br />
<br />
So since s can be any integer, for every s there is a correspondence established between the set of primes and some subset of the integers, represented by n. If one were searching for a prime in a given interval this last equation could be used with n as a search parameter. The question is will all integer P be prime or will there be pseudo-primes? For a given interval and value for s any primes found should be denoted s-primes. So then are there intervals for which no primes are found unless s is very very large? We would not want to use this equation to search for primes on intervals where the number of possible values for s or n became very large. Those questions would have to be addressed.<br />
<br />
Another question I find interesting here is this. Is it true that<br />
[itex]\{z|z=\frac {3-RP}{32}, r \in rrs mod 32, P - prime\}[/itex] is actually the set of integers? Is it further true that [itex]\{z|z=\frac {3-RP}{B}, r \in rrs mod B, P - prime, gcd(B,P)=1\}[/itex] is actually the set of integers.[/itex]