This paper takes the p-adic representation of integers as the research object to realize the distance measurement of integers in the p-adic metric space. The authors firstly apply the Euclidean algorithm to infer the coefficients of a positive integer in polynomial representation, whose corresponding negative integer can be obtained with the help of the similar solution method of binary complement; secondly, the coefficients are respectively mapped into from mod p to mod the n-th power of p laye
1