Rational square root of a nonperfect square