%I #4 Mar 31 2012 13:21:20
%S 0,1,2,3,4,5,6,17,8,11,20,13,14,10,15,29,9,32,24,12,38,37,74,18,22,90,
%T 27,30,62,36,39,50,19,26,25,28,161,118,16,68,53,42,84,41,34,44,45,48,
%U 51,80,97,33,52,153,49,54,89,40,43,188,57,7,98,124,55,31,125,66,23
%N Distinct values of A166040 in the order of appearance.
%C This is a permutation of nonnegative integers if all integers >= 0 occur in A166040 at least once. In that case A166099 gives the inverse permutation.
%H A. Karttunen, <a href="/A166098/b166098.txt">Table of n, a(n) for n = 0..1000</a>
%H <a href="/index/Per#IntegerPermutation">Index entries for sequences that are permutations of the natural numbers</a>
%Y a(n) = A166040(A166097(n)). See also A166087.
%K nonn
%O 0,3
%A _Antti Karttunen_, Oct 08 2009