Canonical: https://knowlpedia.com/shared-foundations/p-adic-integers/

# p-adic integers

The compact ring obtained as the inverse limit of the residue rings modulo powers of a prime.

Fix a prime \(p\). The ring of **\(p\)-adic [integers](https://knowlpedia.com/shared-foundations/integers/)** is the inverse limit
\[
\mathbb Z_p=\varprojlim_{n\ge 1} \mathbb Z/p^n\mathbb Z.
\]
An element is a compatible [sequence](https://knowlpedia.com/shared-foundations/sequence/) \((a_n)\), where \(a_n\) is a residue class modulo \(p^n\) and \(a_{n+1}\equiv a_n\pmod{p^n}\). Addition and multiplication are coordinatewise.

## Topology

Equivalently, \(\mathbb Z_p\) is the completion of \(\mathbb Z\) for the norm defined by the [\(p\)-adic valuation](https://knowlpedia.com/shared-foundations/p-adic-valuation/). Its natural topology is compact, Hausdorff, and totally disconnected. Under addition it is therefore a [locally compact group](https://knowlpedia.com/topology/locally-compact-group/).
