A characterization of certain real quadratic fields | Synapse