OFFSET
0,3
COMMENTS
As a flat sequence, this is a permutation of the nonnegative integers with inverse A360414.
LINKS
FORMULA
EXAMPLE
Table T(n, k) begins:
n n-th row
-- ------------------
0 0
1 1
2 2, 3
3 4
4 5, 6, 9
5 7, 10
6 8, 11, 12
7 13
8 14, 15, 18, 27
9 16, 19, 28
10 17, 20, 21, 29, 30
11 22, 31
12 23, 24, 32, 33, 36
.
Table T(n, k) begins (with terms given in base 3):
n n-th row in base 3
-- -------------------------
0 0
1 1
2 2, 10
3 11
4 12, 20, 100
5 21, 101
6 22, 102, 110
7 111
8 112, 120, 200, 1000
9 121, 201, 1001
10 122, 202, 210, 1002, 1010
11 211, 1011
12 212, 220, 1012, 1020, 1100
PROG
(PARI) See Links section.
CROSSREFS
KEYWORD
nonn,base,tabf
AUTHOR
Rémy Sigrist, Feb 06 2023
STATUS
approved