OFFSET
1,1
COMMENTS
Numbers m such that the arithmetic mean of the divisors of m is an integer but the harmonic mean of the divisors of m is not an integer.
Numbers m such that A(m) = A000203(m)/A000005(m) is an integer but H(m) = m * A000005(m)/A000203(m) is not an integer.
Corresponding values of A(m): 2, 3, 4, 6, 7, 6, 6, 9, 10, 7, 8, 9, 12, 10, 15, 9, 16, 12, 12, 19, 15, 14, 21, 12, 22, ...
Corresponding values of H(m): 3/2, 5/3, 7/4, 11/6, 13/7, 7/3, 5/2, 17/9, 19/10, 20/7, 21/8, 22/9, ...
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
MAPLE
harm:= proc(S) local s; nops(S)/add(1/s, s=S) end proc:
filter:= proc(n) local S;
S:= numtheory:-divisors(n);
(convert(S, `+`)/nops(S))::integer and not harm(S)::integer
end proc:
select(filter, [$1..200]); # Robert Israel, May 04 2025
MATHEMATICA
Select[Range[100], Divisible[DivisorSigma[1, #], DivisorSigma[0, #]] && !Divisible[# * DivisorSigma[0, #], DivisorSigma[1, #]] &] (* Amiram Eldar, Nov 01 2019 *)
PROG
(Magma) [m: m in [1..10^5] | IsIntegral(SumOfDivisors(m) / NumberOfDivisors(m)) and not IsIntegral(m * NumberOfDivisors(m) / SumOfDivisors(m))];
CROSSREFS
KEYWORD
nonn
AUTHOR
Jaroslav Krizek, Oct 31 2019
STATUS
approved
