OFFSET
0,3
COMMENTS
Two integers can be added without carries in balanced ternary if they have no equal nonzero digit at the same position.
If we restrict ourselves to positive integers and allow duplicates, then we obtain A236313.
This sequence can be seen as a variant of A278742; however, the present sequence is not strictly increasing.
Will every nonnegative integer appear in the sequence?
LINKS
EXAMPLE
The first terms, alongside the balanced ternary expansions of a(n) and b(n) = Sum_{k = 0..n-1} a(k), are:
n | 0 1 2 3 4 5 6 7 8 9 10
a(n) | 0 1 2 5 3 15 4 6 41 9 18
bter(b(n)) | 0 0 1 10 10T 11T 100T 1010 1100 100TT 101TT
bter(a(n)) | 0 1 1T 1TT 10 1TT0 11 1T0 1TTTT 100 1T00
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Dec 21 2023
STATUS
approved