where z is a digit