Which is the formula for the hash function?

The hash function can be described as − h(k) = k mod n Here, h(k) is the hash value obtained by dividing the key value k by size of hash table n using the remainder.
For More Information Please Refer:

You May Also Like to Read: