A Deterministic Algorithm for Solving n = fu 2 + gυ 2 in Coprime Integers u and υ