Harmonic analysis, approximation theory, and number theory