%I #13 Jul 19 2021 21:20:10
%S 0,1,2,2,3,3,4,4,4,5,5,5,6,6,6,7,7,7,8,8,8,9,9,9,10,10,10,10,11,11,11,
%T 11,12,12,12,12,13,13,13,13,14,14,14,14,15,15,15,15,16,16,16,16,17,17,
%U 17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,22,22,22,22,23
%N a(0)=0, after which each n occurs A084556(n) times.
%C Also minimum i such that A084555(i) >= n.
%C For n>=1, a(n) tells that the n-th term in A030298 belongs to the a(n):th lexicographically ordered permutation.
%H A. Karttunen, <a href="/A084557/b084557.txt">Table of n, a(n) for n = 0..40327</a>
%H <a href="/index/Per#perm">Index entries for sequences related to permutations</a>
%H <a href="/index/Se#sequences_which_agree_for_a_long_time">Index entries for sequences which agree for a long time but are different</a>
%Y Differs from A084500 first time at the 605th term, where A084500(605) = 130, while A084557(605) = 131.
%K nonn
%O 0,3
%A _Antti Karttunen_, Jun 02 2003