The largest possible 5-digit number is 99999 Divide 99999 by 6, get 16666.5. So the largest integer that does not exceed that is 16666. So we multiply 16666 by 6, getting 99996. Edwin