OFFSET
1,5
COMMENTS
1. The reduced residue system modulo n is the set of integers k between 1 and n which are coprime to n. The geometric mean of the positive integers a_1,...,a_n is the n-th root of a_1*...*a_n. 2. The arithmetic mean of the reduced residue system modulo n is A065033.
MATHEMATICA
gm[l_] := Module[{k, p}, k = Length[l]; p = Product[l[[i]], {i, 1, k}]; p^(1/k)]; rp[n_] := Module[{a, i}, a = {1}; For[i = 2, i < n, i++, If[GCD[i, n] == 1, a = Append[a, i]]]; a];
CROSSREFS
KEYWORD
nonn
AUTHOR
Joseph L. Pe, Nov 30 2002
STATUS
approved