login
A393835
Lexicographically earliest sequence of distinct nonnegative integers such that for any n >= 0, A393834(n, a(n)) = 1.
1
0, 2, 1, 6, 4, 7, 3, 5, 8, 18, 10, 19, 12, 14, 13, 20, 16, 21, 9, 11, 15, 17, 22, 24, 23, 26, 25, 54, 28, 55, 30, 32, 31, 56, 34, 57, 36, 38, 37, 42, 40, 43, 39, 41, 44, 58, 46, 59, 48, 50, 49, 60, 52, 61, 27, 29, 33, 35, 45, 47, 51, 53, 62, 72, 64, 73, 66, 68
OFFSET
0,2
COMMENTS
A self-inverse permutation of the nonnegative integers.
This sequence is to A393834 what A004488 is to A153490.
FORMULA
a(n) < 3^k iff n < 3^k for any k >= 0.
EXAMPLE
The first terms, scattered on the variant of Sierpinski carpet A393834 are:
# # # # # # # # 8
# # # 7 # #
# # # 6 # # # # #
# # # # 5 #
# # 4 # #
# # # 3 # #
# 2 # # # # # # #
# 1 # # # #
0 # # # # # # # #
PROG
(PARI) \\ See Links section.
CROSSREFS
KEYWORD
nonn,base
AUTHOR
Rémy Sigrist, Apr 03 2026
STATUS
approved