OFFSET
1,2
COMMENTS
From Robert Israel, Aug 04 2019: (Start)
n is in the sequence if and only if 2*n is in the sequence.
Contains 2^k+1 for all k. (End)
LINKS
Robert Israel, Table of n, a(n) for n = 1..2500
EXAMPLE
27 in binary is 11011. The substrings of this, each with a distinct odd numerical value, (and their decimal equivalents) are 1 (1), 11 (3), 101 (5), 1011 (11), 1101 (13), 11011 (27). Since 3 is not coprime to 27, then 27 is not in this sequence.
However, 21 in binary is 10101. The distinct odd substrings are 1, 101 (5), and 10101 (21). Since 1, 5, and 21 are all coprime to each other, then 21 is in this sequence.
MAPLE
f:= proc(n) local L, J, S, i, j, k;
L:= convert(n, base, 2);
J:= select(t -> L[t]=1, [$1..nops(L)]);
S:= map(t -> add(2^(k-1)*t[k], k=1..nops(t)), {seq(seq(L[J[i]..J[j]], i=1..j), j=1..nops(J))});
ilcm(op(S))=convert(S, `*`)
end proc:
select(f, [$1..300]); # Robert Israel, Aug 04 2019
CROSSREFS
KEYWORD
base,nonn
AUTHOR
Leroy Quet, Aug 16 2009
EXTENSIONS
More terms from Zak Seidov, Aug 17 2009
Corrected by Robert Israel, Aug 04 2019
STATUS
approved