that's an linear index to calculate the real index `z` in the modulo system.