Mathematical way of getting set of numbers from one number
<p>I am using javascript, but I think that the idea applies across all languages. The idea is if you have 1 of 4 numbers you can get the other numbers. Something like this:</p>

<pre><code>1 = 234
2 = 134
3 = 124
4 = 123
</code></pre>

<p>If you have 1 you output 234, and etc. whats the most efficient way to do this? Do you have to use arrays, loops?</p>

<p><strong>something like:</strong></p>

<pre><code>var fruits = ["#apple", "#orange", "#peach"];
for (i = 0; i &lt;= fruits.length-1; i++) {
    $(fruits[i]).show;
    $(fruits[WANT TO BE not i]).hide;//on loop would want to be other number besides i
    $(fruits[WANT TO BE not i]).hide;//on loop would want to be other number besides i
}
</code></pre>
