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!)
A269358 Permutation of natural numbers: a(1) = 1, a(2n) = 2*a(n), a(2n+1) = A268674(A269379(2n+1)). 5
1, 2, 3, 4, 5, 6, 7, 8, 17, 10, 11, 12, 13, 14, 15, 16, 19, 34, 29, 20, 25, 22, 9, 24, 23, 26, 27, 28, 31, 30, 21, 32, 73, 38, 53, 68, 37, 58, 39, 40, 41, 50, 43, 44, 107, 18, 47, 48, 33, 46, 51, 52, 59, 54, 71, 56, 137, 62, 101, 60, 61, 42, 63, 64, 109, 146, 67, 76, 121, 106, 35, 136, 97, 74, 75, 116, 79, 78, 131, 80, 197 (list; graph; refs; listen; history; text; internal format)
OFFSET

1,2

COMMENTS

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

LINKS

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

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) = A269356(n) = A268674(A269379(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 (A269358 n) (cond ((<= n 1) n) ((even? n) (* 2 (A269358 (/ n 2)))) (else (A268674 (A269379 n)))))

CROSSREFS

Inverse: A269357.

Cf. A000035, A268674, A269379, A269356, A269171.

Sequence in context: A273735 A257735 A269356 * A115309 A171722 A146029

Adjacent sequences:  A269355 A269356 A269357 * A269359 A269360 A269361

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 July 27 15:49 EDT 2021. Contains 346308 sequences. (Running on oeis4.)