Algebraic integers and distributions on the N-torus