I was ill and didn't manage to attend a few classes on number theory. Now, I'm struggling to prove a theorem that was presented during the lectures I didn't addend and intentionally ,,left as an exercise'' by the lecturer:
define function $d_p:\mathbb{Z}\times\mathbb{Z}\rightarrow \mathbb{R}$ such that $d_p(a,b)=p^{-v_p(a-b)}$, where $v_p$ is the $p$-adic exponent of $a - b$. Prove that the following properties are true:
- $d_p(a,b)=0\Leftrightarrow a-b=0$
- $d_p(a,b)\ge 0$
- $d_p(a,c)\le d_p(a,b)+d_p(b,c)$
- $d_p(a,b)=d_p(b,a)$
I'm sorry to say the only thing I thought of was writing numbers $a$ and $b$ in the following form: $a=p^{\alpha}\frac{m}{n}$ and $b=p^{\beta}\frac{z}{x}$. Then, I guess, we have:
$$ a-b=p^{\alpha}\left(\frac{m}{n}-p^{\beta-\alpha}\frac{z}{x}\right)$$
but I don't know if it's of any use in proving any of the four properties.
I'm not looking for a complete solution - I know you guys don't want to do all the work for me, but could somebody drop me at least some hint?
Let me address the properties in order. Note that you must also note that you're taking the convention that $p^{-\infty} = 0$, since $v_p(0) = \infty$ (if you have left $v_p(0)$ undefined, you'll need to separately define $d(a,a) = 0$ for any $a$). Here are some leading questions/suggestions that should help you out. Below, I'll say "$p$ divides $n$ $m$ times" to mean that $n = p^m n'$, where $(n',p) = 1$; in other words, I'm saying that $v_p(n) = m$.