A247077 Composite numbers for which the harmonic mean of proper divisors is an integer.
1645, 88473, 63626653506
Offset: 1
Examples
The proper divisors of 1645 are [1,5,7,35,47,235,329] and their harmonic mean is 7/(1/1 + 1/5 + 1/7 + 1/35 + 1/47 + 1/235 + 1/329) = 5.
Crossrefs
Programs
-
Mathematica
Select[Range[2,100000],(IntegerQ[HarmonicMean[Most[Divisors[#]]]] && Not[PrimeQ[#]])&] (* Daniel Lignon, Nov 17 2014 *)
-
PARI
lista(nn) = forcomposite (n=2, nn, my(d=divisors(n)); if (denominator((#d-1)/sum(i=1, #d-1, 1/d[i])) == 1, print1(n, ", "))); \\ Michel Marcus, Nov 17 2014
-
PARI
isok(n) = n > 1 && !isprime(n) && (n*(numdiv(n)-1)) % (sigma(n)-1) == 0; \\ Daniel Suteu, Feb 05 2021
Extensions
a(3) from Hiroaki Yamanouchi, Nov 20 2014
Comments