We have 7 colors of the rainbow and 100 numbers, each color can be associated with a number between 0 to 100 or 1 to 100.
For example (BLUE, 48)
How many bits do we need to represent all possible combinations?
For 7 colors we need 2^3=8
But for the 100 numbers do we need 2^7=128 (which encompasses 100).
Do we need 128 + 8 bits?
Do we need 128 bits alone because 128-100-7=21 extra bits
Do we need less than that?
Thank you.
pic unrelated
Not sure I really understand your question but ill respond regardless
You kinda answered it yourself..
2^3 for 8 combos.. thats 3 bits
2^7 = 128, so 7 bits there
you could to 10 bits, first 3 for color, next 7 for numbers.
does this make sense, if not reword your question so I can understand it better.
you have 7 colours and 100 numbers
the number of possible combinations is 700
[math]2^9 < 700 < 2^{10}[/math]
you need 10 bits.
what the fuck is this for btw?
>>7795814
Thank you