Math Help Forum

Math Help Forum Feed Site Feed

Go Back   Math Help Forum > University Math Help > Number theory
Reply
 
Thread Tools Display Modes
  #1  
Old November 4th, 2009, 01:48 AM
Bacterius's Avatar
Member
 
Join Date: Nov 2009
Location: Albany
Posts: 145
Country:
Thanks: 3
Thanked 28 Times in 26 Posts
Bacterius is on a distinguished road
Send a message via MSN to Bacterius
Post Sum and product of factors of a semiprime

Hi all, I'm new on this forum (it is great )

I have a maybe-hard maybe-easy question, which is the following (I have worked quite a lot on it but can't find a way around it) :

Say n = pq, with p and q [non-trivial] primes (so n is semiprime)
Now say m = p + q (same values of p and q obviously)

I know "n", but I need "m" (I don't know p or q). Is there a way around this, or is it just impossible ? Isn't there some kind of relation between the product and the sum of the factors of any semiprime ?

Regards.
Reply With Quote
Advertisement
 
  #2  
Old November 4th, 2009, 06:23 AM
MHF Contributor
 
Join Date: Oct 2009
Posts: 1,172
Thanks: 54
Thanked 400 Times in 378 Posts
tonio is just really nicetonio is just really nicetonio is just really nicetonio is just really nicetonio is just really nice
Default

Quote:
Originally Posted by Bacterius View Post
Hi all, I'm new on this forum (it is great )

I have a maybe-hard maybe-easy question, which is the following (I have worked quite a lot on it but can't find a way around it) :

Say n = pq, with p and q [non-trivial] primes (so n is semiprime)
Now say m = p + q (same values of p and q obviously)

I know "n", but I need "m" (I don't know p or q). Is there a way around this, or is it just impossible ? Isn't there some kind of relation between the product and the sum of the factors of any semiprime ?

Regards.

I wouldn't say "impossible" but as close to it as you can imagine, in particular if the number n is big, and it must be big if you can't find more or less easily its two prime divisors, EVEN after being said it only has two!
This is the reason why we can have some security when paying, working and having fun with a computer: some codes are based precisely in that (for example, the Public one): you can know the number n, but only the receiver of a message knows its prime divisors.
Just for fun, find the prime divisors of 251646847 (i - this is a product of two primes, ii -don't even dream in trying to find a prime that divides this number by hand, lest you'll get a severe hand-and-brain tiredness)

Tonio
Reply With Quote
  #3  
Old November 4th, 2009, 08:15 AM
Bruno J.'s Avatar
Generous Contributor
 
Join Date: Jun 2009
Posts: 444
Country:
Thanks: 94
Thanked 154 Times in 137 Posts
Bruno J. has a spectacular aura aboutBruno J. has a spectacular aura about
Default

If you knew m, then you could just solve the quadratic equation x^2-mx+n=0 to get p and q. Solving a quadratic is very easy, so finding m is definitely as difficult as finding the two factors p and q from just n.

Last edited by Bruno J.; November 4th, 2009 at 11:17 AM.
Reply With Quote
  #4  
Old November 4th, 2009, 12:01 PM
Bacterius's Avatar
Member
 
Join Date: Nov 2009
Location: Albany
Posts: 145
Country:
Thanks: 3
Thanked 28 Times in 26 Posts
Bacterius is on a distinguished road
Send a message via MSN to Bacterius
Default

Oh I see. Well ... that's too bad because I was actually trying to avoid factorization

PS : Tonio, 251646847 = 9697 x 25951 on a basic quadratic sieve (no matrix, just the sieving) that I did for fun. But thanks for the info.

But anyway, isn't there a way mathematically to express that a number is square ? Example, if I know that (x² - 84) for example gives a square for 2 values only ? I can find the first one easily (x = 84/4 + 1), but the second one is x = 10 but I can't make an equation to find both solutions cleanly.

Last edited by Bacterius; November 4th, 2009 at 12:02 PM. Reason: Typo
Reply With Quote
  #5  
Old November 4th, 2009, 01:04 PM
Bruno J.'s Avatar
Generous Contributor
 
Join Date: Jun 2009
Posts: 444
Country:
Thanks: 94
Thanked 154 Times in 137 Posts
Bruno J. has a spectacular aura aboutBruno J. has a spectacular aura about
Default

I can find another integer solution, namely 22^2-84=20^2, and infinitely many rational solutions, for example (19/2)^2-84=(5/2)^2.
Reply With Quote
  #6  
Old November 4th, 2009, 01:21 PM
Bacterius's Avatar
Member
 
Join Date: Nov 2009
Location: Albany
Posts: 145
Country:
Thanks: 3
Thanked 28 Times in 26 Posts
Bacterius is on a distinguished road
Send a message via MSN to Bacterius
Default Reply

Well I knew the 22, since 84/4 + 1 = 22. And I'm only considering perfect squares. There is x = 10 too, since 100 - 84 = 16. But how can I mathematically find the 10 ? (since the 22 is a trivial solution)
Reply With Quote
  #7  
Old November 4th, 2009, 02:22 PM
Bruno J.'s Avatar
Generous Contributor
 
Join Date: Jun 2009
Posts: 444
Country:
Thanks: 94
Thanked 154 Times in 137 Posts
Bruno J. has a spectacular aura aboutBruno J. has a spectacular aura about
Default

I wrote x^2-84=y^2, and factored it as (x-y)(x+y)=84. Now if you factor 84 as 84=AB, and set x-y=A, x+y=B, you'll find that x,y are integers if and only if both A,B are even or both are odd. Clearly both cannot be odd, and the only way for both to be even is to have A=2, B=42, or A=14, B=6. If you then solve for x=(A+B)/2,y=(A-B)/2 you will find the two solutions (10,4),(22,20).
Reply With Quote
  #8  
Old November 4th, 2009, 02:30 PM
Bacterius's Avatar
Member
 
Join Date: Nov 2009
Location: Albany
Posts: 145
Country:
Thanks: 3
Thanked 28 Times in 26 Posts
Bacterius is on a distinguished road
Send a message via MSN to Bacterius
Default Reply

But you still get to factorize 84, so the whole point is lost.
So does this show that factorization is necessary to solve this type of problem ? But factorizing the sum of the two prime factors wouldn't it be easier than factorizing the semiprime itself (since the sum is obviously a lot smaller and even) ? There might be a way around this ?
Reply With Quote
  #9  
Old November 5th, 2009, 09:54 PM
Bacterius's Avatar
Member
 
Join Date: Nov 2009
Location: Albany
Posts: 145
Country:
Thanks: 3
Thanked 28 Times in 26 Posts
Bacterius is on a distinguished road
Send a message via MSN to Bacterius
Default Reply

Ok I'll try to explain this as well as I can :
I have a function :

f(x) = x^2 - 4n

Where n is a known constant.

Is there a "quick" way to find the two distinct values of x when f(x) is a perfect square ?

I can find one easily : if you let x = (n + 1), then you get :

f(n + 1) = (n + 1)^2 - 4n
f(n + 1) = n^2 + 2n + 1 - 4n
f(n + 1) = n^2 - 2n + 1
f(n + 1) = (n - 1)^2

Which obviously is a square. The problem is, this solution is somewhat trivial, and there is only one other solution which is non-trivial and that I need, but I can't find an algebraic way to solve it ...

Last edited by Bacterius; November 6th, 2009 at 04:53 PM.
Reply With Quote
Reply

Tags
factors, prime, product, semiprime, sum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -7. The time now is 11:53 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 ©2008, Crawlability, Inc.
©2005 - 2009 Math Help Forum


Math Help Forum is a community of maths forums with an emphasis on maths help in all levels of mathematics.
Register to post your math questions or just hang out and try some of our math games or visit the arcade.