OFFSET
1,1
COMMENTS
Binary digits of m are a permutation of binary digits of n.
Conjecture: there is X such that among integers bigger than X more than 50% are in the sequence.
Since a set is an unordered collection of distinct elements, one should say "same multiset (or bag) of binary digits as n." - Daniel Forgues, Mar 31 2016
LINKS
Robert Israel, Table of n, a(n) for n = 1..10000
EXAMPLE
18 and 24 have the same set of binary digits: 10010 and 11000, same smallest prime factor 2, and same largest prime factor 3, so both 18 and 24 are in the sequence.
MAPLE
N:= 10: # to get all terms < 2^N
H:= proc(n) local F, B;
F:= numtheory:-factorset(n);
B:= sort(convert(n, base, 2));
[min(F), max(F), op(B)];
end proc:
T:= {}:
for n from 1 to 2^N-1 do
h:= H(n);
if assigned(R[h]) then T:= T union {n, R[h]}
else R[h]:= n
fi
od:
sort(convert(T, list)); # Robert Israel, Apr 01 2016
MATHEMATICA
nn = 360; TakeWhile[Union@ Flatten@ Table[Select[Complement[Range[3 n], {n}], And[Length@ Union[DigitCount[#, 2] & /@ {#, n}] == 1, Length@ Union[{First@ #, Last@ #} &@ Map[First, FactorInteger@ #] & /@ {#, n}] == 1] &] /. i_ /; MissingQ@ i -> Nothing, {n, nn}], # <= nn &] (* Michael De Vlieger, Apr 01 2016, Version 10.2 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Alex Ratushnyak, Jul 23 2012
STATUS
approved