OFFSET
1,1
LINKS
Michael De Vlieger, Table of n, a(n) for n = 1..11424 (Contains the reversed binary values of the first 1000 terms of A118252.)
EXAMPLE
The sequence begins 1,0,1,1,1,0,0,1,0,0,0,1,0,1,0,1,1,1,0,1,0,0,1,1. Now A118252(8) = 12, which is represented by the 0,0,1,1 at the end of the sequence. The binary representation of 13 (1011 in binary and reversed) and 14 (0111 in binary and reversed) both occur earlier in the sequence. But the binary representation of 15 (1111 in binary and reversed) does not occur earlier in the sequence, so (1,1,1,1) is added to the end of the sequence. And A118252(9) becomes 15.
MATHEMATICA
a = {1}; b = {1}; Do[k = b[[i - 1]] + 1; While[SequenceCount[Flatten@ a, Set[d, Reverse@ IntegerDigits[k, 2]]] != 0, k++]; a = Join[a, d]; AppendTo[b, k], {i, 2, 23}]; a (* Michael De Vlieger, Aug 21 2017 *)
CROSSREFS
KEYWORD
easy,nonn,base
AUTHOR
Leroy Quet, Apr 18 2006
EXTENSIONS
More terms from Joshua Zucker, Jul 27 2006
STATUS
approved