OK, I'm completely lost on this. Define the $p$-adic integers $\mathbb{Z}_p$ as the projective limit $$\lim_{\leftarrow} \mathbb{Z}/p^n \mathbb{Z}.$$ So, if $a \in \mathbb{Z}_p$, then $a$ can be represented by an infinite sequence of numbers $(a_n)_{n \in \mathbb{Z}_{>0}}$, right? So if $a=(a_1, a_2, \cdots) \in \mathbb{Z}_p$, then $$a \in \mathbb{Z}/p\mathbb{Z} \times \mathbb{Z}/p^2\mathbb{Z} \times \cdots,$$ with $a_{n+1} \equiv a_n \mod p^n$. So $a_2 \equiv a_1 \mod p$, $a_3 \equiv a_2 \mod p^2,$ so $a_3 \equiv a_1 \mod p,$ and so on (right?). So if I understand it correctly, when you determine $a_1$, all the other $a_i's$ are fixed. So my first question is: how do you determine this $a_1$?
Also, I don't grasp the concept of the $p$-adic extension (now with $\mathbb{Q}_p$ as an example).Let $p$ be prime, $x \in \mathbb{Q}_p$ and $v = \nu_p(x)$, the $p$-adic valuation of $x$. Then there exists a sequence of integers $0 \leq a_i \leq p-1$ for $i \geq v$ such that $$ x = \sum_{i=v}^{\infty} a_ip^i.$$ This really doesn't make any sense to me, as an element $x \in \mathbb{Q}_p$ is defined to be an infinite sequence of numbers, while $\sum_{i=v}^{\infty} a_ip^i$ clearly has dimension $1$, i.e. it's just a 'regular' number.
I think my misunderstanding of the latter is also the reason why I don't get this: let $p \neq 2$ be a prime and $a \in \mathbb{Z}_p^{\times}$. We define $\Big(\frac{a}{p}\Big)$ to be the legendre symbol $\Big(\frac{a'}{p}\Big)$, with $a' \in \mathbb{Z}$ and $a' \equiv a \mod p$. Again, as $a \in \mathbb{Z}_p^{\times}$ is an infinte sequence of numbers, how can $a \mod p$ be equal to another integer modulo $p$? Can someone clear up my confusion or tell me where I went wrong? Thanks!
Btw, you should use a different notation with the first $a_i$'s
Say $x \in \mathbb{Z}_p$ and it's in fact a sequence of $x_i \in \mathbb{Z}/p^i$, $i \ge 1$ so that $x_{i+1} \equiv x_i \mod p^{i}$. OK, for $x_1$ you can choose a representative $a_0$ from $0$ to $p-1$ (it's a residue mod $p$). Now $x_2$ is a residue mod $p^2$ so you can take a representative between $0$ and $p^2-1$. Write it in base $p$. It has to be of the form $a_0+ a_1 p$ ( same $a_0$ since $x_2 \equiv x_1 \mod p$). Now move over to $x_3$, choose a representative between $0$ and $p^3-1$ uniquely, you write it in base $p$, it must have an expression as $a_0 + a_1 p + a_2 p^2$ ( the $a_0$, $a_1$ are the same since $x_3 \equiv x_2 \mod p^2$ ).
In the end, $x$ corresponds to an infinite sum $a_0 + a_1 p + \cdots$, determined by the condition $a_0 + \cdots + a_{k-1} p^{k-1} \equiv x_k$
Obs: We are not using at all that $p$ is prime, it's not required at this stage, and you can even have $p=10$, when things are even easier. There you can see that $-1 = 9 + 9 \cdot 10 + 9 \cdot 100 + \cdots $