igcd() and ilcm() are the gcd and lcm of integers. mod_inverse(a, m)
is the inverse of a modulo m (for a rational a, its inverse in the
field). integer_nthroot(y, n) returns list(root, exact) with root the
floor of the n-th root; integer_log(y, x) returns list(e, exact) with
x^e <= y < x^(e + 1). trailing(n) counts trailing zero bits and
num_digits(n, base) counts digits. arity(f) is the number of arguments
of an R function.