OFFSET
0,3
LINKS
EXAMPLE
The code can be constructed by the rule: a(n+1) is either the least number obtained from a(n) by toggling one or more 1-bits off if no such number is yet in the sequence, otherwise the least number not yet in sequence that can be obtained from a(n) by toggling one 0-bit on:
n a(n)
0 0
1 1
2 11
3 10
4 110
5 100
6 101
7 111
8 1111
9 1000
10 1001
11 1011
12 1010
13 1110
14 1100
15 1101
16 11101
17 10000
18 10001
19 10011
20 10010
21 10110
22 10100
23 10101
24 10111
25 11111
26 11000
27 11001
28 11011
29 11010
30 11110
31 11100
32 111100
33 100000
PROG
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, May 23 2018
STATUS
approved