login
A122198
Permutation of natural numbers: a recursed variant of A122155.
4
0, 1, 2, 3, 4, 7, 6, 5, 8, 15, 14, 13, 12, 9, 10, 11, 16, 31, 30, 29, 28, 25, 26, 27, 24, 17, 18, 19, 20, 23, 22, 21, 32, 63, 62, 61, 60, 57, 58, 59, 56, 49, 50, 51, 52, 55, 54, 53, 48, 33, 34, 35, 36, 39, 38, 37, 40, 47, 46, 45, 44, 41, 42, 43, 64, 127, 126, 125, 124, 121
OFFSET
0,3
COMMENTS
Maps between A096115 and A096111.
FORMULA
a(0)=0, otherwise a(n) = A122155(A053644(n)+a(A053645(n))).
PROG
(Scheme:) (define (A122198 n) (if (< n 1) n (A122155 (+ (A053644 n) (A122198 (A053645 n))))))
CROSSREFS
Inverse: A122199.
Sequence in context: A270196 A299327 A231551 * A122155 A106454 A270195
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 25 2006
STATUS
approved