Add factorial, gcd, and lcm.