PDA

View Full Version : [SOLVED] How Do I Interpret This?



Lster
May 21st, 2008, 04:49 PM
Hi!

I'm attempting Project Euler Problem 66 but find the wording particularly difficult to understand. It uses the term "minimal solution" which is confusing me the most. I can find loads of solutions but none work!

Thank you,
Lster

Npl
May 21st, 2008, 05:02 PM
for a given D, find all (x,y) that satisfy x^2 + D*y^2. Then pick the smallest (positive) x from those tuples. Thats the "minimal Solution in x", call it x(D)

You then need to do the same for each D <= 1000 and then pick the largest value of a x(D)

Lster
May 21st, 2008, 05:13 PM
Thanks; that's cleared everything up!