A348922 Numbers that are both infinitary and noninfinitary harmonic numbers.
45, 60, 54600, 257040, 1801800, 2789640, 4299750, 47297250, 1707259680, 4093362000
Offset: 1
Examples
45 is a term since the infinitary divisors of 45 are 1, 5, 9 and 45, and their harmonic mean is 3, and the noninfinitary divisors of 45 are 3 and 15, and their harmonic mean is 5.
Crossrefs
Programs
-
Mathematica
f[p_, e_] := Module[{b = IntegerDigits[e, 2], m}, m = Length[b]; Product[If[b[[j]] > 0, 1 + p^(2^(m - j)), 1], {j, 1, m}]]; isigma[1] = 1; isigma[n_] := Times @@ f @@@ FactorInteger[n]; id[1] = 1; id[n_] := Times @@ Flatten[2^DigitCount[#, 2, 1]& /@ FactorInteger[n][[;; , 2]] ]; pow2Q[n_] := n == 2^IntegerExponent[n, 2]; Select[Range[3*10^5], !pow2Q[DivisorSigma[0, #]] && IntegerQ[# * (d = id[#])/(s = isigma[#])] && IntegerQ[# * (DivisorSigma[0, #] - d)/(DivisorSigma[1, #] - s)] &]
Comments