(In reply to Oops...
by John zadeh)
What Magician B has to do is take the sum of the audience's numbers and add this sum to the highest of these numbers.
(and if the sum is over 100 return and resume the count from 1)
Then, from that number Magician B has to add a number (1-24) that represents the relative magnitude of the permutation.
For example, if the numbers and order chosen was:
1,4,9,54, Magician B adds 68 (1+4+9+54=68) to 54, which = 122, and return the count to 22 (because the sum is over 100). Then
the magician adds 2 to 22 (because 1-4-9-54 represents the 2nd smallest permutation) to get a total of 24. 24 is the number that Magician B should choose.
In the case that magician B has a arrangement such as 95,1,2,3 (the sum being 101), where the sum value will be a number already chosen (in this case 1) then the magician should move to
the next available value. In this case they should move to 4. And add 18 to get 22. 22 will be Magician B's cue number.
In this way, Magician A should not have a problem determining Magician B's cue number. In the example above with 95,1,2,3,10
as the numbers, it is obvious that 10 was not included as one of the audiences numbers (10 added to 95, in itself, would mean that the sum value will be at least 5 - which the 1, 2, or 3 are less than).
Am I on to something, or am I just confused. I have a feeling that the answer should be represented with a more mathematical approach.