1,2

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

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

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) = A269355(n) = A269380(A250469(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 (A269357 n) (cond ((<= n 1) n) ((even? n) (* 2 (A269357 (/ n 2)))) (else (A269380 (A250469 n)))))

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

nonn

Antti Karttunen, Mar 03 2016

approved