Assume S and K are rational numbers.
So F is a function from the rational numbers to the rational numbers. Assume K > 0 (corresponding results when K < 0) By using google spreadsheets, I came up with following result:
Let p any rational numbers not equal to -K.
Define $p_{k+1} = F(p_{k})$, with $p_{1} = F(p)$
Then {$p_k$} is a Cauchy sequence, and it has a rational number limit if and only if that number is
$\sqrt{S}$
Is there a proof of this without recourse to the real number field?
Alternatively, what mathematical machinery exists to explain this?
Here is the spreadsheet: