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 #12 Aug 12 2013 03:58:30
%S 1,3,2,4,6,5,9,8,7,11,10,12,14,13,17,16,15,21,20,19,18,24,23,22,26,25,
%T 29,28,27,31,30,32,34,33,37,36,35,41,40,39,38,44,43,42,48,47,46,45,53,
%U 52,51,50,49,57,56,55,54,60,59,58,62,61,65,64,63,69,68,67,66
%N Simple self-inverse permutation of natural numbers: List each block of A005811(n) numbers from A173318(n-1)+1 to A173318(n) in reverse order.
%C This permutation maps between such irregular tables as A101211 and A227736 which are otherwise identical, except for the order in which the lengths of runs have been listed. In other words, A227736(n) = A101211(a(n)) and vice versa, A101211(n) = A227736(a(n)).
%H Antti Karttunen, <a href="/A227741/b227741.txt">Table of n, a(n) for n = 1..1001</a>
%H <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>
%F a(n) = A173318(A227737(n)) - A227740(n).
%o (Scheme) (define (A227741 n) (- (A173318 (A227737 n)) (A227740 n)))
%Y Cf. A227742 (gives the fixed points).
%Y Cf. also A227737, A227740, A005811, A173318.
%K nonn
%O 1,2
%A _Antti Karttunen_, Jul 25 2013