All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Numbers
Multiply Together, Get Cubic (Posted on 2007-06-21) Difficulty: 4 of 5
Determine all possible integer pairs (p,q) such that p+q²+s³=pqs, where s=gcd(p,q) and gcd denotes the greatest common divisor.

See The Solution Submitted by K Sengupta    
Rating: 4.0000 (2 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
early results -- no proof | Comment 1 of 8

For positive p and q, where p+q is under 21,000, only

 (4,  2)
 (5,  2)
 (5,  3)
 (4,  6)

work.

10 for tot = 3 to 1000000
20 for p=1 to tot-1
30 q=tot-p
40 s=gcd(p,q)
50 if p+q*q+s*s*s = p*q*s then  print p;q
60 next
70 next


  Posted by Charlie on 2007-06-21 09:49:24
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (13)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information