For a subset of real numbers \(S\), let \(\mathbf{1}_S : \mathbb{R} \to \{0, 1\}\) be the **indicator function** of \(S\), defined as \(\mathbf{1}_S(x) = 1\) if \(x \in S\) and \(\mathbf{1}_S(x) = 0\) otherwise.

Prove or disprove: for every real function \(f : \mathbb{R} \to \mathbb{R}\), there exists subsets of real numbers \(A_1, A_2, A_3, \ldots\) and real numbers \(c_1, c_2, c_3, \ldots\) such that

\[\displaystyle\large{ f(x) = \sum_{n=1}^\infty c_n \mathbf{1}_{A_n}(x) }\]

for all real \(x\).

**Clarification**: When I posted this problem, I didn't know the answer. Now, I found the answer, but I find it interesting (like most set theory stuff), so I'll let you to figure it out.

## Comments

There are no comments in this discussion.