A basis of open sets in the p-adic integers is
Indeed this is the set of with , equivalently ; these neighborhoods become arbitrarily small. Reduction identifies with , so each has index .
If a subgroup is open, a neighborhood of zero of the displayed form lies inside . Thus for some , and is finite.
Conversely suppose the abstract index is the finite integer . The quotient is a finite abelian group of order , so Lagrange's theorem gives for every . Write with . Multiplication by the p-adic unit is a bijection of , its inverse being multiplication by . Consequently
The subgroup is a union of open cosets of , and is therefore open. This proves the characterization of open subgroups of the p-adic integers:
No prior assumption of closedness is required for the finite-index direction.