I am looking for an algorithm that will allow you to add up squares and determine the individuals. OK...that doesn't make much sense. Here's an example. There are 4 options. The values to the options are 1, 2, 4, and 8 respectively. If the total of the options is 14, what routine would let me know that the 2nd, 3rd, and 4th option were picked?