Hash_f_mod