Sum of random 0 and 1 Let $x_i$ be uniformly distributed random variables in the interval $[0,a]$, with $a>0$.
Let f(x) be equal to 1 if x=0, and 0 otherwise.
Let $$S(a)=\sum_{n=1}^\infty f(x_n)$$
What is S(1)?
What is $\lim_{a->0} S(a)$ from positive side?

First note the following equality of events: 
$$
\big \{ \sum\nolimits_{n = 1}^\infty  {f(X_n )}  > 0 \big \}  =  \cup _{n = 1}^\infty  \{ f(X_n ) = 1\}.
$$
Now, for each $n$,
$$
{\rm P}[f(X_n) = 1] = {\rm P}[X_n = 0] = 0.
$$
Hence,
$$
{\rm P}\big[\sum\nolimits_{n = 1}^\infty  {f(X_n )}  > 0\big] = {\rm P}[ \cup _{n = 1}^\infty  \{ f(X_n ) = 1\} ] \le \sum\nolimits_{n = 1}^\infty  {{\rm P}[f(X_n ) = 1]}  = 0.
$$
So, for any $a>0$, ${\rm P}[S(a)>0] = 0$, hence $S(a)=0$ with probability $1$.
