OFFSET
1,3
COMMENTS
LINKS
Wikipedia, Contraharmonic mean.
FORMULA
Sum_{k=1..n} a(k)/175506(k) ~ n^2/3. - Amiram Eldar, Dec 07 2023
MAPLE
antiHMean := proc(L)
add(i^2, i=L)/add(i, i=L) ;
end proc:
A175505 := proc(n)
local kset, k ;
kset := [1] ;
for k from 2 to n do
if igcd(k, n) = 1 then
kset := [op(kset), k] ;
end if;
end do:
antiHMean(kset) ;
numer(%) ;
end proc: # R. J. Mathar, Sep 26 2013
MATHEMATICA
f[n_] := 2Plus @@ (Select[ Range@n, GCD[ #, n] == 1 &]^2)/(n*EulerPhi@n); f[1] = 1; Numerator@Array[f, 65] (* Robert G. Wilson v, Jul 01 2010 *)
PROG
(PARI) a(n) = {my(f = factor(n)); numerator(if(n == 1, 1, 2*n/3 + (1/3) * prod(i = 1, #f~, 1 - f[i, 1])/eulerphi(f))); } \\ Amiram Eldar, Dec 07 2023
CROSSREFS
KEYWORD
nonn,frac
AUTHOR
Jaroslav Krizek, May 31 2010, Jun 01 2010
EXTENSIONS
More terms from Robert G. Wilson v, Jul 01 2010
STATUS
approved