Formula to browse through combinations - MathOverflow [closed]most recent 30 from http://mathoverflow.net2013-05-23T13:17:28Zhttp://mathoverflow.net/feeds/question/87116http://www.creativecommons.org/licenses/by-nc/2.5/rdfhttp://mathoverflow.net/questions/87116/formula-to-browse-through-combinationsFormula to browse through combinationsrockoroll2012-01-31T07:47:50Z2012-01-31T07:47:50Z
<p>Hi,</p>
<p>Can anyone give me an idea of how to be able to browse through a set of combinations?</p>
<p>Lets say that I have 3 objects that can hold 3 different values and I want to browse through these. How do I know which is the next combination? I will always know how many values every object can hold and they can always hold the same number of values and therefore I also know total number of combinations. So if I am on combination (3, 2, 1), how do I know that the next combination is (3, 2, 2)?</p>
<p>Object O1 O2 O3</p>
<p>Comb. 1. 1 1 1
Comb. 2. 2 1 1
Comb. 3. 2 2 1
.
.
.
.
Comb. 27. 3 3 3</p>