I am working through a set of notes on Algebraic Number theory, and I find myself attempting to construct some examples of Cauchy sequences not converging in $\mathbb{Q}$, with respect to the p-adic topology.
To share my work thus far, [the work below does not offer the answer, left in for posterity's sake, see @Lubin 's response below]
I considered the following sequence, $\{a_n\}_{n=1}^\infty$, where $a_n = \sum_{k=1}^{n} p^k$, with respect to the p-adic topology. This is certainly Cauchy, as the difference between subsequent terms is $|a_n-a_{n-1}| = \frac{1}{p^n}$. As I understand it, the limit of the $a_n$'s is certainly not in $\mathbb{Q}$, namely, $\sum_{k=1}^{\infty} p^k$ does not lie in the rationals. Does this example hold up?
[Additionally, I have found one (related) example at the following link, also on Stack Exchange. Showing that Q is not complete with respect to the p-adic absolute value ]
To state my question: Is my initial example sound? Is there another sequence I should consider that more elegantly illustrates this concept?
The $p$-adic series $\sum_{k=1}^\infty p^k$ can be evaluated by high-school methods, to $p/(1-p)$, which of course is a rational number.
Indeed, you have the same situation as for decimal expansion of reals: if the $p$-adic expansion is (eventually) periodic, i.e. periodic in the tail, then it represents a rational number. Thus, to get an irrational element of $\Bbb Z_p$ or $\Bbb Q_p$, you need to have a nonperiodic expansion.
If you’re starting out, let me make a recommendation to you. Don’t think of a $7$-adic number as an expansion $a_0+a_1\cdot7+a_2\cdot7^2+\cdots$, but rather as an infinite $7$-ary (base-seven) expansion, running (potentially) infinitely to the left, rather than to the right. Now, once you have an addition and multiplication table for numbers in the $7$-ary notation, you can do additions, subtractions, and multiplications just as you learned in elementary school. Division, I confess, is set up differently, but you should be able to work that out.