def default_hash(i: int, x: int, n: int):
    """Return a hash value for x.

    Arguments:
        i: hash function index within family
        x: value to be hashed
        n: domain
    """
    return (x + i) % n