A154437 Permutation of nonnegative integers: A059893-conjugate of A154435.
0, 1, 3, 2, 5, 6, 7, 4, 13, 10, 11, 12, 9, 14, 15, 8, 21, 26, 27, 20, 25, 22, 23, 24, 29, 18, 19, 28, 17, 30, 31, 16, 53, 42, 43, 52, 41, 54, 55, 40, 45, 50, 51, 44, 49, 46, 47, 48, 37, 58, 59, 36, 57, 38, 39, 56, 61, 34, 35, 60, 33, 62, 63, 32, 85, 106, 107, 84, 105, 86, 87
Offset: 0
Links
Programs
-
R
maxn <- 63 # by choice a <- c(1,3,2) for(n in 2:maxn){ a[2*n+1] <- 2*a[n] if(n%%2 == 0) a[2*n] <- 2*a[n+1] + 1 else a[2*n] <- 2*a[n-1] + 1 } (a <- c(0,a)) # Yosu Yurramendi, Feb 23 2020
Comments