Elements of the Theory of Numbers