Refining the conditions on the Fermat quotient