OFFSET
1,1
COMMENTS
LINKS
Amiram Eldar, Table of n, a(n) for n = 1..10000
MATHEMATICA
binNivQ[n_] := Divisible[n, DigitCount[n, 2, 1]]; q[n_] := binNivQ[n] && ! (EvenQ[n] && binNivQ[n/2]); Select[Range[2, 1000, 2], q]
PROG
(PARI) isbinniv(n) = !(n % hammingweight(n));
is(n) = !(n%2) && isbinniv(n) && !isbinniv(n/2);
CROSSREFS
KEYWORD
nonn,easy,base
AUTHOR
Amiram Eldar, Jun 22 2023
STATUS
approved