OFFSET
0,1
COMMENTS
This sequence can be extended to negative indexes by setting a(-n) = -A343605(n) for any n > 0.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..10000
EXAMPLE
The first terms, in base 10 and in balanced ternary (where T denotes the digit -1), alongside A065363(n), are:
n a(n) bter(n) bter(a(n)) A065363(n)
-- ---- ------- ---------- ----------
0 2 0 1T 0
1 3 1 10 1
2 6 1T 1T0 0
3 7 10 1T1 1
4 10 11 101 2
5 15 1TT 1TT0 -1
6 8 1T0 10T 0
7 9 1T1 100 1
8 16 10T 1TT1 0
9 11 100 11T 1
10 12 101 110 2
11 19 11T 1T01 1
12 22 110 1T11 2
PROG
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Apr 22 2021
STATUS
approved