I am trying to understand p-adic integers $\mathbb{Z}_p$ and want to ask two questions:
- For a fixed rational number $\frac{a}{b}$ and a prime $p$, I can write $p$-adic expansion of the fraction after some calculations, most of the time.(For example $\cfrac{2}{5} \in \mathbb{Z}_3$ since it is equal to $1+3+2.3^2+3^3+\dots \in \mathbb{Z}_3$ ). However, I do not know a general algorithm. So, my question is, for any odd number $n$, how can I show that $\cfrac{1}{n} \in \mathbb{Z}_2?$
- What is the structure of $p^k \mathbb{Z}_p$ for some positive integer $k$? Is it the ring of power series $\displaystyle p^k \sum_{n=0}^{\infty} a_n p^n = \sum_{n=k}^{\infty} a_n p^n?$
$$f(x) \equiv 0 \mod p$$ $$f'(x) \not \equiv 0 \mod p$$
So, for your choice you want to show $x=\frac{a}{b}$ is in $\mathbb{Z}_p$, then all we need to do is rearrange it into $$f(x) = bx-a = 0$$ and check the two above conditions.
There is more to say, since just failing to satisfy those conditions doesn't necessarily mean it's not a p-adic integer. It's probably best to check out the proof for Hensel's lemma to get a better understanding since that itself shows from those two starting conditions how to construct the base p expansion of a p-adic integer.