The arithmetic of the values of modular functions and the divisors of modular forms