Consider $\Omega = \mathbb{N}, \mathcal{F} = 2^{\mathbb{N}}$ and the probability measure $\mathbb{P}$ defined by:
\begin{align*} \mathbb{P}[k] &= 2^{-k}, \; \; k = 1,2, \ldots \\ \end{align*}
Let $Y$ be the random variable:
\begin{align*} Y(k) &= \frac{2^{k+1}}{k^2} \\ EY &= \int \frac{2^{k+1}}{k^2} dP = \sum\limits_{k=1}^\infty \frac{2}{k^2} = \frac{\pi^2}{3} \\ \end{align*}
Let $\mathcal{F}_n$ be the filtration:
\begin{align*} \mathcal{F}_n = \sigma(\{1\}, \{2\}, \ldots, \{n-1\}, \{n, n+1, \ldots\}) \\ \end{align*}
Find an expression for $X_n = E[Y | \mathcal{F}_n]$
Could someone give me a hint on how to approach this one? Thanks!
(1) $X_n$ needs to be $\mathcal F_n$-measurable, meaning only that it must be constant on $\{n,n+1,\ldots\}$.
(2) you need to have $E[X_n\cdot 1_B]=E[Y\cdot 1_B]$ for each $B\in\mathcal F_n$. For $B=\{n,n+1,\ldots\}$ this means the constant value of $X_n$ mentioned in (1) must be $$ b_n:={\sum_{k=n}^\infty 2k^{-2}\over \sum_{k=n}^\infty 2^{-k}}=2^n\sum_{k=n}^\infty k^{-2}. $$ For $B=\{k\}$ (where $k$ is an element of $\{1,2,\ldots,n-1\}$) this means $X_n(k) = 2^{k+1}k^{-2}$.