login
A302793
Permutation of nonnegative integers: a(0) = 0; for n >= 1, a(n) = A193231(1+A193231(n-1)), where A193231(n) is blue code of n.
4
0, 1, 3, 5, 2, 6, 4, 7, 15, 17, 8, 11, 9, 13, 10, 12, 14, 18, 16, 19, 20, 21, 23, 30, 22, 25, 51, 24, 26, 27, 28, 31, 29, 39, 32, 35, 33, 37, 45, 36, 38, 41, 43, 85, 42, 46, 44, 47, 40, 49, 54, 48, 50, 60, 52, 55, 53, 58, 56, 59, 34, 61, 63, 57, 62, 66, 64, 67, 75, 69, 71, 65, 70, 73, 78, 72, 74, 102, 76, 79, 77, 81
OFFSET
0,3
FORMULA
a(0) = 0; for n >= 1, a(n) = A193231(1+A193231(n-1)).
PROG
(PARI)
A193231(n) = { my(x='x); subst(lift(Mod(1, 2)*subst(Pol(binary(n), x), x, 1+x)), x, 2) }; \\ From A193231
A302793(n) = if(!n, n, A193231(1+A193231(n-1)));
CROSSREFS
Cf. A302794 (inverse).
Cf. also A268717, A302027.
Sequence in context: A198099 A016657 A372143 * A010782 A333111 A139584
KEYWORD
nonn,base
AUTHOR
Antti Karttunen, Apr 26 2018
STATUS
approved