The pair force interaction potential that allows one to describe a deviation from spherical symme try, which is typical for hexagonal close packed structures, is constructed using the "spherically symmetric" Mie potential that depends only on the interatomic distance. The parameters of the considered potential, which ensure the stability of hexagonal close packed lattices, are obtained for a wide range of metals, erbium. It is shown that for this pair interaction potential the hexagonal close packed structure is energeti cally more favorable than the face centered cubic structure. The proposed potential can be used to perform computational experiments and analytical investigations.