If you want to learn how that magic multiplier value was derived, look up how to derive Perfect Hash Functions for a known set of values.
I'm not sure which method was used for this specific set of values, but from googling it's seen advances in the past decade.