P
Peter Noneley
Hello,
I have a list of options that can be chosen in combination, such as
Small+Pink+Hat.
Each option has been given a unique value.
If I add up the values I get a total that can only have been created
by one combination, such as 2+8+32=42
[My Question]
If I am given a number such as 42, how do I mathematically decode it
into the values, 2 and 8 and 32 ?
Example List of Options
2 Small
4 Large
8 Pink
16 Blue
32 Hat
64 Coat
Thank you
Peter
I have a list of options that can be chosen in combination, such as
Small+Pink+Hat.
Each option has been given a unique value.
If I add up the values I get a total that can only have been created
by one combination, such as 2+8+32=42
[My Question]
If I am given a number such as 42, how do I mathematically decode it
into the values, 2 and 8 and 32 ?
Example List of Options
2 Small
4 Large
8 Pink
16 Blue
32 Hat
64 Coat
Thank you
Peter