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

Home > Just Math
(q2 + 1)/(pq -1) = Integer (Posted on 2009-12-25) Difficulty: 3 of 5
Find all possible pairs (p, q) of positive integers, with p ≤ q, such that (q2 + 1)/(pq - 1) is an integer.

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

Comments: ( Back to comment list | You must be logged in to post comments.)
Computer Solution | Comment 1 of 2
I ended up creating the following in Visual Basic, through Excel, and got three possible pairs for P and Q:

1     2
1     3
2     3

Sub Integer_Pairs()
    Listings = ""
    For P = 1 To 100
        If P = 1 Then Min = 2 Else Min = P
        For Q = Min To 100
            If ((Q * Q + 1) Mod (P * Q - 1)) = 0 Then Listings = Listings + Str(P) + "     " + Str(Q) + Chr(10)
        Next
    Next
    MsgBox (Listings)
End Sub
  Posted by Justin on 2009-12-25 19:52:20
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 (24)
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