I want to know if all number pair equals each other that selected from a specified number set.
For example:
There is a set $A=\{5,3,6,2\}$ and to check the variable equalities requires to check the boolean result comparing each number to others. This method requires $C(5,2)=10$ comparisions. I need a short method to know this.
e.g:
$5*3*6*2=180$ and if $\sqrt[4]{180}$ is an integer number it can be said all are equal but this is not a correct way for all numbers.
Now I want to ask if there is a formulation such as multiply all values and check equality to a number or like it to make it easy?
It is not a correct way for all numbers". – Ali Tor Apr 16 '16 at 17:05