AFAIK it's from Fermat's little theorem. a^p = a (mod p)
or a^(p-1) = 1 (mod p) with p is prime and a is an integer and coprime with p. 2147483647 +. 16807 1 1 p: 2147483647 1 Hallo bill lam, je schreef op 10-04-09 10:41: > In At play with J 8.3, the author said "2147483647|16807^2147483646 is > equal 1". When I tried to verify it, > 2147483647|16807^2147483646 > |NaN error > | 2147483647 |16807^2147483646 > 2147483647|16807^2147483646x > |limit error > | 2147483647|16807 ^2147483646 > > Did the author just prove it instead of try it? Or that can only be > run in APL\360? > > -- =@@i ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
