(i) If d ≡ 1 (mod 8) or d ≡ 2 (mod 4) or d ≡ 3 (mod 4), then ε_{1} = ε_{4}; (ii) if d ≡ 5 (mod 8), then ε_{1} = ε_{4} if u_{4} is even, whereas if u_{4} is odd, then ε_{1} = ε_{4}^{3}; (iii) if d ≡ 0 (mod 4), then ε_{1} = ε_{4} if u_{4} is even, whereas if u_{4} is odd, then ε_{1} = ε_{4}^{2}.

Enter d (1 < d < 10^{10}, d nonsquare):

Last modified 15th May 2017 Return to main page