DATA:
Let $f:\mathbb{Z}\setminus \{0\}\rightarrow \mathbb{N}$ be a function defined by $$f(n) = \{k~:~n=2^km,~m\in \cal{O}\},$$ where $\cal{O}$ is the set of odd integers.
Let $v:\mathbb{Q}\setminus \{0\}\rightarrow \mathbb{Z}$ be a function defined by $$v\pmatrix{\frac{a}{b}}=f(a)-f(b).$$
QUESTION:
Is $v$ well-defined?
KNOWN:
Let $X$ be a set and $\sim$ be an equivalence relation on $X$. Let $f:X\rightarrow Y$. If $\forall x,x'\in X$ we have that $x\sim x' \implies f(x)=f(x')$, then $f$ defines a function $X_{/\sim}\rightarrow Y$ by $[x] \mapsto f(x)$. In this case, we say $f$ is "well defined" on the quotient $X_{/\sim}$.