Suborder Function

Author

Eric W. Weisstein
April 17, 2006

This notebook downloaded from http://mathworld.wolfram.com/notebooks/NumberTheory/SuborderFunction.nb.

For more information, see Eric's MathWorld entry http://mathworld.wolfram.com/SuborderFunction.html.

©2006 Wolfram Research, Inc. except for portions noted otherwise

Code

Suborder[a_,n_]:=If[n>1&&GCD[a,n]==1,Min[MultiplicativeOrder[a,n,{-1,1}]],0]

Enumeration

Table[Suborder[a,n],{a,2,5},{n,0,20}]//ColumnForm