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

Home > Just Math
Prime power pair (Posted on 2023-10-08) Difficulty: 3 of 5
Solve the equation in prime numbers

p3-q5=(p+q)2

No Solution Yet Submitted by Danish Ahmed Khan    
No Rating

Comments: ( Back to comment list | You must be logged in to post comments.)
Some Thoughts I found ... (completeness not proven) | Comment 1 of 2
(p,q) = (7,3) and (0,-1) are the only solutions I found.

----------------------------
for q in range(-1000,1000):
    if q == 0:
        continue
    q5 = q**5
    sign = q5 / abs(q5)
    minp = sign * (abs(q5)**(1/3))
    if minp**3 - q**5 < 0:
        minp = int(minp)
    else:
        minp = int(minp) + 1
    for p in range(minp,minp+1000):
        if p**3-q**5 == (p+q)**2:
            print(p,q)

  Posted by Larry on 2023-10-08 09:20:35
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 (10)
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