login
The OEIS Foundation is supported by donations from users of the OEIS and by a grant from the Simons Foundation.

 

Logo


Hints
(Greetings from The On-Line Encyclopedia of Integer Sequences!)
A269357 Permutation of natural numbers: a(1) = 1, a(2n) = 2*a(n), a(2n+1) = A269380(A250469(2n+1)). 5
1, 2, 3, 4, 5, 6, 7, 8, 23, 10, 11, 12, 13, 14, 15, 16, 9, 46, 17, 20, 31, 22, 25, 24, 21, 26, 27, 28, 19, 30, 29, 32, 49, 18, 71, 92, 37, 34, 39, 40, 41, 62, 43, 44, 107, 50, 47, 48, 119, 42, 51, 52, 35, 54, 89, 56, 101, 38, 53, 60, 61, 58, 63, 64, 115, 98, 67, 36, 173, 142, 55, 184, 33, 74, 75, 68, 131, 78, 77, 80, 167 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

This is a variant of A269355, from which it differs for the first time at n=18.

LINKS

Antti Karttunen, Table of n, a(n) for n = 1..16384

Index entries for sequences that are permutations of the natural numbers

FORMULA

a(1) = 1, after which, for even n, a(n) = 2*a(n/2) and for odd n, a(n) = A269355(n) = A269380(A250469(n)).

Other identities. For all n >= 1:

A000035(a(n)) = A000035(n). [This permutation preserves the parity of n.]

PROG

(Scheme, with memoization-macro definec)

(definec (A269357 n) (cond ((<= n 1) n) ((even? n) (* 2 (A269357 (/ n 2)))) (else (A269380 (A250469 n)))))

CROSSREFS

Inverse: A269358.

Cf. A000035, A250469, A269380, A269355, A269172.

Sequence in context: A240963 A053408 A269355 * A335900 A096986 A031097

Adjacent sequences:  A269354 A269355 A269356 * A269358 A269359 A269360

KEYWORD

nonn

AUTHOR

Antti Karttunen, Mar 03 2016

STATUS

approved

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

License Agreements, Terms of Use, Privacy Policy. .

Last modified September 17 16:49 EDT 2021. Contains 347487 sequences. (Running on oeis4.)