guys i'm to write an application program that gets a filename and number form the command line and print all possible pairs of numbers such that a<b< number and (a^2 +b^2 +1)/ab is an integer
e.g number = 1000
filename = integers.txt
output is
(1,2)
(2,5)
(5,13)
(13,34)
(34,89)
(89,233)
(233,610)
from this example the integer is always three.but the problem is i can't come with an algorith to produce the output.you help will be much appreciated guys
e.g number = 1000
filename = integers.txt
output is
(1,2)
(2,5)
(5,13)
(13,34)
(34,89)
(89,233)
(233,610)
from this example the integer is always three.but the problem is i can't come with an algorith to produce the output.you help will be much appreciated guys
Comment