Question: Finding an element in a list that satisfies a property

 Say that I have an ordered list of numbers. I want to find the element/s in this list such that the difference between this element and the one that follows it is the maximum distance between each and every pair of consecutive elements in the list.

ie/

I've found the maximum difference between consecutive members of the list by the following;

M:=sort(M);
H:=max({seq(M[i]-M[i-1],i=2..nops(M))});

I now want to know which specific M[i-1] in the list has the property H.

Please Wait...