With the counting measure on $\mathbb{N}$, and the Lebesgue measure on $\mathbb{R}$, consider their product measure space and the function:
$f(x,n) = \begin{cases} -2^n & \text{ if $x\in[2^{-n}, 2^{-n+1})$ } \\ 2^n & \text{ if $x\in [0, 2^{-n})$} \\ 0 & \text {otherwise} \end{cases}$
I have a problem understanding how to compute the two iterated integrals. Could someone show me how to do one of them?