How to prove that $$g:\Bbb R^3 \to \Bbb R^3 \in G = \{g \, | \, \text{ for each } g \text{ exists } n\in\mathbb{Z} : r(g(x),g(y)=2^n r(x,y) \}$$ for each $x,y\in \Bbb R^3, r$ is an euclidean distance) is a bijection? Have no idea.
I have the task to prove that $G$ is a group or isn't. Here is the task : $r$ is a euclidean metric of space $L = \Bbb R^3$. Does $G$ - multiplicity of transformations of $L$ (for each $g\in G$ exist $n\in\mathbb Z : r(g(x),g(y))=2^n r(x,y)$ for each $x,y\in L$) form a group?
My teacher said that first of all it's necessary to prove if it is a bijection or not, and if it is closed or not.