An effective p-adic analogue of a theorem of Thue III. The diophantine equation $y^2 = x^2 + k$