Year-end appeal: Please make a donation to the OEIS Foundation to support ongoing development and maintenance of the OEIS. We are now in our 61st year, we have over 378,000 sequences, and we’ve reached 11,000 citations (which often say “discovered thanks to the OEIS”).
%I #6 Aug 13 2016 11:10:27
%S 0,1,3,4,2,5,7,9,10,11,13,15,8,16,17,18,12,19,6,20,21,22,14,23,25,27,
%T 28,29,31,33,34,35,37,39,40,41,42,43,44,45,46,47,49,51,52,53,55,57,26,
%U 58,59,61,32,63,64,65,66,67,68,69,36,70,71,73,38,75,50,76,77,79,56,81,30,82,83,85,60,87,88,89,90,91,92,93,62,94,95,96,72,97,48
%N Permutation of natural numbers: a(0) = 0, a(A255411(n)) = A153880(a(n)), a(A256450(n)) = A273670(n).
%H Antti Karttunen, <a href="/A275848/b275848.txt">Table of n, a(n) for n = 0..5039</a>
%H <a href="/index/Fa#facbase">Index entries for sequences related to factorial base representation</a>
%H <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>
%F a(0) = 0; for n >= 1: if A257680(n) = 0 [when n is one of the terms of A255411] then a(n) = A153880(a(A257684(n))), otherwise [when n is one of the terms of A256450], a(n) = A273670(A273662(n)).
%o (Scheme, with memoization-macro definec)
%o (definec (A275848 n) (cond ((zero? n) n) ((zero? (A257680 n)) (A153880 (A275848 (A257684 n)))) (else (A273670 (A273662 n)))))
%Y Inverse: A275847.
%Y Cf. A153880, A255411, A256450, A257680, A257684, A273662, A273670.
%Y Similar permutations: A273668 (a more recursed variant), A275845, A275846.
%K nonn,base
%O 0,3
%A _Antti Karttunen_, Aug 13 2016