0,3

Antti Karttunen, Table of n, a(n) for n = 0..5040

Index entries for sequences related to factorial base representation

Index entries for sequences that are permutations of the natural numbers

a(0) = 0; for n >= 1: if A257680(A225901(n)) = 0 [i.e., n is one of the terms of A153880], then a(n) = 2*a(A266193(n)), otherwise [when n is one of the terms of A273670], a(n) = 1 + 2*a(A273663(n)).

(Scheme, with memoization-macro definec)

(definec (A273665 n) (cond ((zero? n) n) ((zero? (A257680 (A225901 n))) (* 2 (A273665 (A266193 n)))) (else (+ 1 (* 2 (A273665 (A273663 n)))))))

Inverse: A273666.

Cf. A153880, A225901, A257680, A266193, A273663, A273670.

Related or similar permutations: A255565, A273667.

Sequence in context: A114319 A125151 A302024 * A212646 A103866 A268711

Adjacent sequences: A273662 A273663 A273664 * A273666 A273667 A273668

nonn,base

Antti Karttunen, May 30 2016

approved