OFFSET
0,8
COMMENTS
For a given n, a(n) is half the sum for h ranging over the set of least positive residues coprime with n of |h-h'|, where h' is the (unique) number in the same set such that hh'=1 (mod n).
If h and h' are chosen randomly from [1,n] then the expected value of |h-h'|/2 is n/6. So it is plausible that a(n) ~ n*phi(n)/6 and numerical evidence seems to support that.
LINKS
Ivan Neretin, Table of n, a(n) for n = 0..10000
M. Dondi, Plot of A075443(n)/phi(n) (Euler's totient function) against the line y=x/6 in the range [0,100].
M. Dondi, Plot of A075443(n)/phi(n) (Euler's totient function) against the line y=x/6 in the range [0,1000].
M. Dondi, Plot of A075443(n)/phi(n) (Euler's totient function) against the line y=x/6 in the range [0,10000].
M. Dondi, Plot of A075443(n)/phi(n) (Euler's totient function) against the line y=x/6 in the range [0,10000] showing only one point out of every 5.
MATHEMATICA
a[n_] := Sum[If[GCD[h, n]==1, Abs[h-PowerMod[h, -1, n]], 0], {h, 1, n}]/2
CROSSREFS
KEYWORD
nonn
AUTHOR
Michele Dondi (bik.mido(AT)tiscalinet.it), Sep 18 2002
EXTENSIONS
Edited by Dean Hickerson, Sep 20 2002
STATUS
approved