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

Home > Just Math
Integer Pair and Prime Constant II (Posted on 2010-01-23) Difficulty: 3 of 5
Determine all possible value(s) of a positive prime constant P such that the equation: 2X + 3P = Y2 has precisely two distinct solutions in (X, Y), where each of X and Y is a positive integer.

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

Comments: ( Back to comment list | You must be logged in to post comments.)
Solution computer solution | Comment 1 of 3
After creating a list of prime numbers under 10000, the first 28 powers of 2, and the first 15000 perfect squares, I ran the following python code, and came up with one solution.

P=11 ... (X, Y) = (4, 7) and (8, 17)

2^4 + 3*11 = 16 + 33 = 49 = 7^2
2^8 + 3*11 = 256 + 33 = 289 = 17^2

for p in primes:
    total=0
    values=[]
    for x2 in powers_of_two:
        y2=x2+3*p
        if squares.count(y2):
            total+=1
            values.append([powers_of_two.index(x2)+1,squares.index(y2)+1])
    if total==2:
        print(p,values)

  Posted by Justin on 2010-01-24 16:12:14
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 (3)
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