Algebraic Techniques and the Mechanization of Number Theory