Let $B = \{ b_{1},b_{2},\cdots , b_{n} \}$ be a basis of the free abelian group $A_{n}$ of rank $n$.
If $d_{1}$, $d_{2}$, $\cdots$, $d_{n}$ are $n$ nonzero integers, then I need to prove that the set $\{ d_{1}b_{1},\, d_{2}b_{2}, \cdots , d_{n}b_{n} \}$ is a basis for $A_{n}$ if and only if $d_{i} \in \{ -1, 1\}$ for all $i$.
Here is my attempt thus far:
$(\implies)$ Suppose that $D = \{ d_{1}b_{1},\, d_{2}b_{2}, \cdots , d_{n}b_{n} \}$ is a basis for $A_{n}$. Then, for any $x \in A_{n}$, $\exists$ a unique representation $x = a_{1}(d_{1}b_{1}) + a_{2}(d_{2}b_{2}) + \cdots + a_{n}(d_{n}b_{n})$, where $d_{i}b_{i} \in D $, $a_{i} \in \mathbb{Z}$, $a_{i} \neq 0$ and $d_{i}b_{i} \neq d_{j}b_{j}$ for $i \neq j$.
Since $B$ is also a basis for $A_{n}$, for that same $x$, we have the unique representation in that basis $x = c_{1}b_{1} + c_{2}b_{2}+\cdots + c_{n}b_{n}$, where $b_{i} \in B$, $c_{i} \in \mathbb{Z}$, $c_{i} \neq 0$, and $b_{i} \neq b_{j}$ for $i \neq j$.
Thus, $a_{1}(d_{1}b_{1}) + a_{2}(d_{2}b_{2}) + \cdots + a_{n}(d_{n}b_{n}) = c_{1}b_{1} + c_{2}b_{2}+\cdots + c_{n}b_{n}$, which implies that $a_{i}d_{i} = c_{i}$ $\forall i$ from $i=1$ to $n$.
That's as far as I got on that side - there must be something I'm missing here that isn't allowing me to see how $d_{i} = \pm 1$ only. Therefore, any help would be very much appreciated!
$(\Longleftarrow)$ In this direction, I really have no idea. Just that if $d_{i} \in \{ -1,1\}$, then the set $D$ becomes $\{\pm b_{1}, \pm b_{2}, \cdots, \pm b_{n} \}$. If I were to express any $x \in A_{n}$ as $x =c_{1}b_{1} + c_{2}b_{2}+\cdots + c_{n}b_{n}$, how could I use that to show that $\pm b_{i}$ would also work?
Thank you.