Inverse of p-adic numbers with nonzero valuation