Fix a prime pp. The ring of pp-adic is the inverse limit

Zp=limnZ/pnZ.\mathbb Z_p=\varprojlim_n \mathbb Z/p^n\mathbb Z.

An element is a compatible (an)(a_n), where ana_n is a residue class modulo pnp^n and an+1an(modpn)a_{n+1}\equiv a_n\pmod{p^n}. Addition and multiplication are coordinatewise.

Equivalently, Zp\mathbb Z_p is the completion of Z\mathbb Z for the norm defined by the . Its natural topology is compact, Hausdorff, and totally disconnected. Under addition it is therefore a .