1,2

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

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

Index entries for sequences that are permutations of the natural numbers

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.]

(Scheme, with memoization-macro definec)

(definec (A269358 n) (cond ((<= n 1) n) ((even? n) (* 2 (A269358 (/ n 2)))) (else (A268674 (A269379 n)))))

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

nonn

Antti Karttunen, Mar 03 2016

approved