Let $\Omega$ be a set and $(B_n;~n\in \Bbb{N})$ it's partition. We define $G=\sigma(B_n)=\{\bigsqcup_{n\in L} B_n: L\subset \Bbb{N}\}$. Consider a random variable $V=\sum_{n\in \Bbb{N}}n1_{B_n}$ where $V:(\Omega,G)\rightarrow (E,\epsilon)$. I need to show that $\sigma(V)=G$.
I know that by definition $\sigma(V)=\{\Lambda \subset \Omega: V^{-1}(B)=\Lambda~~\text{for some}~~B\in \epsilon\}$. Now I thought that I can take $\Lambda\in \sigma(V)$ which means that $V^{-1}(B)=\Lambda$. But then clearly $\Lambda=\bigsqcup_{n\in L} B_n$ for some $L\subset \Bbb{N}$. Now let me take $C\in G$ which means that $G=\bigsqcup_{n\in L} B_n$. But then I somehow do not see how to continue to show that $C\in \sigma(V)$. I think in this direction we need to use the definition of $V$ but I somehow do not see how I should do it. Maybe my idea is also totally wrong.
Can maybe someone help me further?