[go: up one dir, main page]

login
Rank transform of the sequence floor(2n/3); complement of A187683.
3

%I #5 Dec 04 2016 19:46:24

%S 1,2,4,5,7,8,9,11,13,14,15,17,18,20,22,23,24,26,27,28,30,31,33,35,36,

%T 37,39,40,42,43,44,46,47,48,50,52,53,55,56,57,59,61,62,64,65,66,68,70,

%U 71,72,74,75,76,78,79,81,83,84,85,87,88,90,91,92,94,96,97,99,100,101,103,105,106,108,109,110,112,113,114,116,118,119,120,122,123,125,127,128,129,131,132,133,135,136,138

%N Rank transform of the sequence floor(2n/3); complement of A187683.

%C See A187224.

%t seqA = Table[Floor[2n/3], {n, 1, 220}]

%t seqB = Table[n, {n, 1, 220}];(*A000027*)

%t jointRank[{seqA_,

%t seqB_}] := {Flatten@Position[#1, {_, 1}],

%t Flatten@Position[#1, {_, 2}]} &[

%t Sort@Flatten[{{#1, 1} & /@ seqA, {#1, 2} & /@ seqB}, 1]];

%t limseqU =

%t FixedPoint[jointRank[{seqA, #1[[1]]}] &,

%t jointRank[{seqA, seqB}]][[1]] (*A187683*)

%t Complement[Range[Length[seqA]], limseqU] (*A187684*)

%t (*by _Peter J. C. Moses_, Mar 12 2011*)

%Y Cf. A187224, A187684.

%K nonn

%O 1,2

%A _Clark Kimberling_, Mar 12 2011