\bmod does not work in Wikipedia's substitute for TeX. The "b" is supposed to mean "binary", and it should mean that the amount of space before and after "mod" is what is appropriate for a binary operator in mathematical notation. That space does not appear there.
Look at this section:
https://en.wikipedia.org/wiki/Dominical_letter#Formula_derived_from_Gauss.27s_algorithm