OFFSET
1,1
COMMENTS
All primes p are in the sequence since the only pair of divisors of p is {1, p} and since the smallest p = 2 has more bits than 1; all larger primes written in binary will require at least 2 bits to represent p. Thus A000040 is a subsequence of this sequence. - Michael De Vlieger, Dec 30 2015
LINKS
Antti Karttunen, Table of n, a(n) for n = 1..10000
EXAMPLE
From Michael De Vlieger, Dec 30 2015: (Start)
Consider pairs of divisors {d, d'} of n, both integers such that d * d' = n:
2 is a term, since the only pair of divisors of 2 written in binary are {1, 10}, with unequal numbers of bits.
3 is a term, since the only pair of divisors of 3 written in binary are {1, 11}, with unequal numbers of bits.
8 is a term, since the pair of divisors of 8 written in binary are {1, 100} and {10, 100}, both with unequal numbers of bits.
12 is a term, since the elements of {1, 1100}, {10, 110}, and {11, 100} are both unequal in length in all cases.
...
(End)
MATHEMATICA
Position[#, k_ /; k == 0] &@ Map[Length, Table[Flatten@ Map[Differences@ IntegerLength[#, 2] &, Transpose@ {#, n/#}] &@ TakeWhile[Divisors@ n, # <= Sqrt@ n &], {n, 100}] /. k_ /; k > 0 -> Nothing] // Flatten (* Michael De Vlieger, Dec 30 2015 *)
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Dec 28 2015
STATUS
approved