OFFSET
1,2
COMMENTS
MATHEMATICA
q[n_] := IntegerQ[HarmonicMean[Select[Divisors[n], BitAnd[n, #] == # &]]]; Select[Range[10^6], q[#] && (OddQ[#] || ! q[#/2]) &]
PROG
(PARI) div(n) = select(x->(bitor(x, n) == n), divisors(n));
is1(n) = {my(d = div(n)); denominator(#d/sum(i = 1, #d , 1/d[i])) == 1; }
is(n) = is1(n) && (n%2 || !is1(n/2));
CROSSREFS
KEYWORD
nonn,base,more
AUTHOR
Amiram Eldar, May 04 2023
STATUS
approved