A309734 Inverse permutation to A309668.
1, 2, 5, 4, 3, 10, 9, 8, 7, 6, 11, 20, 19, 18, 17, 16, 15, 14, 13, 25, 12, 23, 22, 21, 40, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 53, 26, 50, 49, 24, 47, 46, 45, 44, 43, 42, 41, 81, 79, 39, 76, 75, 74, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61
Offset: 1
Examples
A309668(5) = 3, hence a(3) = 5.
Links
Crossrefs
Cf. A309668.
Programs
-
Maple
S:= [$1..100]: for n from 1 while S <> [] do for i from 1 to nops(S) do s:= S[i]; if ilog2(n*s+n-1) > ilog2(n*s-1) then A[s]:= n; S:= subsop(i=NULL,S); break fi od od: seq(A[i],i=1..100); # Robert Israel, Apr 23 2020