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 correspondin