[go: up one dir, main page]

login
A334999
Permutation of nonnegative integers that converts A162911 into A162912.
2
1, 3, 2, 5, 6, 7, 4, 9, 14, 11, 8, 13, 10, 15, 12, 17, 22, 19, 16, 21, 26, 23, 20, 25, 30, 27, 24, 29, 18, 31, 28, 33, 38, 35, 32, 37, 58, 39, 36, 41, 46, 43, 40, 45, 34, 47, 44, 49, 54, 51, 48, 53, 42, 55, 52, 57, 62, 59, 56, 61, 50, 63, 60
OFFSET
1,2
COMMENTS
For n > 0, A162911(a(n)) = A162912(n), as well as A162911(A054429(n)) = A162912(n). There is a self-inverse permutation, b, such that a(b(n)) = A054429(n), and a(n) = A054429(b(n)).
PROG
(R)
nmax <- 31
A334998 <- 1; A334999 <- 1
for(n in 1:31) {
A334998[2*n ] <- 2*A334999[n]+1
A334998[2*n+1] <- 2*n
A334999[2*n ] <- 2*n+1
A334999[2*n+1] <- 2*A334998[n]
}
CROSSREFS
Cf. A334998 (inverse), A054429, A162911, A162912.
Sequence in context: A153153 A175058 A250090 * A154437 A305428 A269376
KEYWORD
nonn
AUTHOR
Yosu Yurramendi, May 19 2020
STATUS
approved