Find all sets of positive integers A, B, and C which satisfy
1/A = 1/B + 1/C.
(In reply to
Pattern (re: hmmm...) by TomM)
The algorithm at the end of my last reply generates all triples that satisfy the initial equation, including triples that Charlie weeded out because they are multiples of other triples (4,2,2) or because c < b (2,6,3). To weed these out, add steps
1A) If c < b return to step 1)
2A) If d > 1 return to step 1)
|
Posted by TomM
on 2003-07-20 07:15:11 |