Algebraic number theory is both the study of number theory by algebraic methods and the theory of algebraic numbers.