You are viewing a single comment's thread. Return to all comments →
Hello Jurgen! Thank you for your question! Here are the answers:
1) {a,b,p} is a tuple in this problem, which means, order does matter. So in your example all solutions are different.
2) p doesn't have to be prime. Only p1 and p2 are primes as mentioned in the problem statement.
Seems like cookies are disabled on this browser, please enable them to open this website
Project Euler #157: Solving the diophantine equation 1/a +1/b = p/10^n
You are viewing a single comment's thread. Return to all comments →
Hello Jurgen! Thank you for your question! Here are the answers:
1) {a,b,p} is a tuple in this problem, which means, order does matter. So in your example all solutions are different.
2) p doesn't have to be prime. Only p1 and p2 are primes as mentioned in the problem statement.