Unisequences and nearest integer continued fraction midpoint criteria for Pell's equation. Matthews, Keith R. (2009) Journal of Integer Sequences [electronic only]