OFFSET
0,3
COMMENTS
Equivalently, the positions of ones in the top row of A163904.
From Jeffrey Shallit, Jan 18 2026: (Start)
k is in the sequence if and only if the automaton given in the Shallit link accepts the binary representation of k.
k is in the sequence if and only if it is the encoding of the possible contents of pin 2 when carrying out the optimal algorithm for the Hanoi tower problem on infinitely many disks. For example, the fact that 6 is in the sequence, but not 5, indicates that pin 2 holds disks 1 and 2 at some point, but never disks 0 and 2. - Jeffrey Shallit, Feb 09 2026
LINKS
Antti Karttunen, Table of n, a(n) for n = 0..609
Jeffrey Shallit, Automaton accepting members of A165404.
CROSSREFS
KEYWORD
nonn
AUTHOR
Antti Karttunen, Sep 19 2009
STATUS
approved
