added as_int checks + changed reference text

added as_int to definition of divisors() as well.