login
Inverse of the permutation A257470.
1

%I #5 Apr 30 2015 22:08:29

%S 0,1,2,5,3,8,6,11,4,14,9,17,7,20,12,23,26,29,15,32,10,35,18,38,41,44,

%T 21,47,13,50,24,53,27,56,30,59,16,62,33,65,68,71,36,74,19,77,39,80,42,

%U 83,45,86,22,89,48,92,95,98,51,101,25,104,54,107

%N Inverse of the permutation A257470.

%H <a href="/index/Per#IntegerPermutation">OEIS Index entries for sequences related to permutations of the nonnegative integers.</a>

%o (PARI) vecsort(A257470[1..-1],,1)[1..150]-vector(150,i,1-A257470[1]) \\ Assuming that A257470 is a vector with enough terms of that sequence. The adjustment -vector(...) is only necessary (due to PARI's indexing conventions) if the vector starts with a(0)=0.

%K nonn

%O 0,3

%A _M. F. Hasler_, Apr 25 2015