I came up with this sequence as part of a question asking for a sequence of continuous Riemann integrable functions which converges to a function which is not Riemann integrable.
My idea was to use the fact that $\lim_{n\to \infty} e^{-n(x-a)^2}$ is the discontinuous function which is $0$ everywhere except for $x=a$, where it is $1$.
Let $e_n$ be any enumeration of the rationals in $[0,1]$. Then define a sequence $$f_n=\sum_{i=1}^n e^{-\pi n^4 (x-e_i)^2}$$
Then each $f_n$ is continuous and Riemann integrable with integral $\int_{-\infty}^{\infty} f_n=\frac 1n$ (the $\pi n^4$ in the exponential is there to make this integral nice and approach $0$, don't know if it's necessary at all). The question then is: Does this sequence converge to the Dirichlet function? And if it does, how would one prove it?
I've basically gotten nowhere. I know that I just need to show that is $x$ is irrational or is in $(-\infty,0) \cup (1,\infty)$ then $\lim_{n\to \infty} f_n(x) =0$ and that if $x$ is rational and in $[0,1]$ then $\lim_{n\to \infty} f_n(x) =1$. I just have no idea how to show either of these things, or even if they're true at all.
Any help at all would be appreciated