OFFSET
0,3
LINKS
EXAMPLE
The first terms, alongside their ternary expansions, are:
n a(n) ter(a(n))
-- ---- ---------
0 0 0
1 1 1
2 3 10
3 2 2
4 6 20
5 9 100
6 4 11
7 10 101
8 7 21
9 18 200
10 5 12
11 12 110
12 11 102
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Apr 06 2022
STATUS
approved