The Moser-de Bruijn sequence is the increasing sequence of nonnegative integers that are sums of distinct nonnegative integer powers of 4, including the empty sum 0. The first few are 0, 1, 4, 5, 16, 17, 20, 21, 64, 65, 68, 69, 80, 81, 84, ... (OEIS A000695). These numbers have the same digit sum in binary and quaternary, and identical representations in binary and negabinary.
Moser-de Bruijn Sequence
See also
Binary, Negabinary, QuaternaryExplore with Wolfram|Alpha
References
Allouche, J.-P. and Shallit, J. "The Ring ofReferenced on Wolfram|Alpha
Moser-de Bruijn SequenceCite this as:
Weisstein, Eric W. "Moser-de Bruijn Sequence." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/Moser-deBruijnSequence.html