Number-theoretic techniques in the theory of Lie groups and differential geometry