OFFSET
0,3
COMMENTS
This sequence appears to be a permutation of the nonnegative integers.
LINKS
Rémy Sigrist, Table of n, a(n) for n = 0..6560
Rémy Sigrist, PARI program for A340253
Rémy Sigrist, Ternary plot of the sequence for n = 0..3^5
EXAMPLE
The first terms, alongside their ternary representation, are:
n a(n) ter(a(n))
-- ---- ---------
0 0 0
1 1 1
2 2 2
3 5 12
4 8 22
5 6 20
6 3 10
7 4 11
8 7 21
9 16 121
10 25 221
11 19 201
12 10 101
13 13 111
14 22 211
15 21 210
16 12 110
17 9 100
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
AUTHOR
Rémy Sigrist, Jan 02 2021
STATUS
approved