OFFSET
0,2
COMMENTS
This sequence is a variant of the Doudna sequence (A005940); here we consider runs of nonzero digits in ternary expansions, there in binary expansions.
This sequence is a bijection from the nonnegative integers to the positive integers with inverse A366348.
We can devise a similar sequence for any fixed base b >= 2:
- the case b = 2 corresponds (up to the offset) to the Doudna sequence (A005940),
- the case b = 3 corresponds to the present sequence,
- the case b = 10 corresponds to A290389.
LINKS
FORMULA
EXAMPLE
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Oct 07 2023
STATUS
approved