login
The OEIS is supported by the many generous donors to the OEIS Foundation.

 

Logo
Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
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 (list; graph; refs; listen; history; text; internal format)
OFFSET
0,3
COMMENTS
Maps between A096111 and A096115.
LINKS
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))))))
(PARI) a(n) = if(n == 0, 0, my(A = n, B = 2^logint(A, 2), C = B); while(!(A == B), A = 2*B - A; B = 2^logint(A, 2); C += B); C) \\ Mikhail Kurkov, Mar 12 2024
CROSSREFS
Inverse: A122198.
Sequence in context: A305417 A231550 A106453 * A270196 A299327 A231551
KEYWORD
nonn
AUTHOR
Antti Karttunen, Aug 25 2006
STATUS
approved

Lookup | Welcome | Wiki | Register | Music | Plot 2 | Demos | Index | Browse | More | WebCam
Contribute new seq. or comment | Format | Style Sheet | Transforms | Superseeker | Recents
The OEIS Community | Maintained by The OEIS Foundation Inc.

License Agreements, Terms of Use, Privacy Policy. .

Last modified April 19 15:34 EDT 2024. Contains 371794 sequences. (Running on oeis4.)