Let $(X_n, d_n)$ be a sequence of metric spaces. Show that the function $ d: X \times X \to \mathbb R^+$ on the product space $X: = \prod_n X_n$ defined by
$$d ((x_n)_{n = 1}^\infty, (y_n)_{n=1}^\infty ) := \sum_{ n=1}^\infty 2^{-n} \frac{ d_n(x_n,y_n)} { 1+ d_n (x_n,y_n) } $$
is a metric on $X$ which generates the product topology on $X$.
I showed that $d$ is actually a metric, which was easy. To show that this metric generates the product topology I think I need to show:
(i) Each ball $ B((x_n)_{n=1}^\infty , \epsilon )$ is open in the product topology.
(ii) For any $B(x_n , \epsilon) \subset X_n$, $\pi_n ^{-1} (B(x_n , \epsilon)) \subset X$ is the union of finite intersections of balls in $(X, d)$.
But I couldn't even get started to do (i). Any help is appreciated.