OFFSET
1,2
COMMENTS
MATHEMATICA
seqA = Table[Floor[n/2], {n, 1, 180}] (* A004526 *)
seqB = Table[n, {n, 1, 80}]; (* A000027 *)
jointRank[{seqA_, seqB_}] := {Flatten@Position[#1, {_, 1}],
Flatten@Position[#1, {_, 2}]} &[Sort@Flatten[{{#1, 1} & /@ seqA,
{#1, 2} & /@ seqB}, 1]];
limseqU = FixedPoint[jointRank[{seqA, #1[[1]]}] &, jointRank[{seqA, seqB}]][[1]] (* A026371 *)
Complement[Range[Length[seqA]], limseqU] (* A026372 *)
(* by Peter J. C. Moses, Mar 10 2011 *)
CROSSREFS
KEYWORD
nonn
AUTHOR
STATUS
approved