Let and . The (closed) Hamming ball with centre and radius is

Note the volume is