Fermats theorem Numerical