I'm looking for some techniques or ideas for constructing a real-valued function $ f $ with the following properties:
- $ f $ is smooth, say $ C^\infty $, but at the very least, continuous on $ \mathbb{R} $.
- $ f $ is even
- $ f $ has roots at only the points $ \sqrt{k^2+kl+l^2} $, $ (k,l)\in{\mathbb{Z}}^2 $
The quadratic $ k^2+kl+l^2 $ takes nonzero values $ 1,3,4,7,12,13,19,21,... $ and appears to be sequence OEIS A244819.
A simpler example is $ \sin(\pi x^2) $, which vanishes when $ x = \sqrt{k} $, $ k \in{\mathbb{Z}} $.
Any pointers to references is much appreciated. Thanks!