Algebraic numbers and harmonic analysis