OFFSET
1,4
MATHEMATICA
Table[SelectFirst[Range[EulerPhi[n]], PowerMod[3, # , n]==1&, 0], {n, 80}] (* The program uses the SelectFirst function from Mathematica version 10 *) (* Harvey P. Dale, Aug 18 2015 *)
PROG
(Magma) [0] cat [Modorder(3, n): n in [2..100]]; // Vincenzo Librandi, Apr 01 2014
CROSSREFS
KEYWORD
nonn
AUTHOR
N. J. A. Sloane and Amarnath Murthy, May 08 2002
STATUS
approved