OFFSET
1,1
COMMENTS
See A355857 for the smallest number that shares n out of n+1 bits with the divisor binary concatenation.
LINKS
Michael De Vlieger, Plot of a(n) expanded in binary, black pixels indicating 1's and white 0's, with n on the x-axis and 2^y increasing from bottom to top.
Scott R. Shannon, Divisor products for the first 1217 terms. These are all the terms up to 100000000.
EXAMPLE
39 is a term as 39 = 100111_2 = 13 * 3 = 1101_2 * 11_2, and "100111" has five bits out of six in common with "110111".
539 is a term as 539 = 1000011011_2 = 49 * 11 = 110001_2 * 1011_2 and "1000011011" has nine out of ten bits in common with "1100011011".
See the attached text file for other examples.
MATHEMATICA
Select[Range[6000], Function[{m, d}, 0 < Count[Map[Join @@ IntegerDigits[{##}, 2] & @@ {#, m/#} &, Divisors[m]], _?(Length[#] == Length[d] && Total[BitXor @@ {#, d}] == 1 &)]] @@ {#, IntegerDigits[#, 2]} &] (* Michael De Vlieger, Jul 21 2022 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
Scott R. Shannon and Michael De Vlieger, Jul 19 2022
STATUS
approved