OFFSET
1,2
COMMENTS
The multiplicative order of a mod m, gcd(a,m) = 1, is the smallest natural number d for which a^d = 1 (mod m).
FORMULA
EXAMPLE
a(2) = |{5, 15}| = 2, a(3) = |{5, 10, 16, 20, 40, 80}| = 6, a(4) = |{17, 51, 85, 255}| = 4, a(5) = |{13, 16, 26, 39, 48, 52, 78, 104, 156, 208, 312, 624}| = 12, ...
MATHEMATICA
Table[DivisorSigma[0, n^4-1]-DivisorSigma[0, n^2-1], {n, 70}] (* Harvey P. Dale, Nov 30 2011 *)
PROG
(PARI) a(n) = if(n == 1, 0, numdiv(n^4-1) - numdiv(n^2-1)); \\ Amiram Eldar, Jan 25 2025
CROSSREFS
KEYWORD
easy,nonn,changed
AUTHOR
Vladeta Jovovic, Feb 08 2001
STATUS
approved