--- from: http://rosettacode.org/wiki/P-Adic_square_roots note: mathematics