$p$-Adic Expansion of Integers and Rationals