← RoseCode

ROSECODE 328

Minimal odds

sinan · Math ·

Let x² - D·y² = 4 where D is not a square number and x, y are positive integers. Find the minimal solution (the one with the smallest positive x,y pair) with the biggest odd y value for D < 1000. Answer format: x^2-D*y^2 Example: 1523^2-61*195^2 for D < 100 [My timing: 4s]