There seems to be something wrong with the above sequence. When I implement the definition, I get lots of terms that don't appear in the online sequence. In addition, even the example seems wrong, since 1011 in base 2 is 11, not 19. Am I misunderstanding something? Best, Harvey