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