In this case, couldn't you encode the inputs as 7-bit numbers? (90 would fit in a 7-bit value)
You could then connect the 2-3 7-bit numbers together as a 21-bit unique value which represents the input state.
you could encode the inputs from the values 0000001 to 1011010 (1 to 90)
and you could treat no input as value 0000000
Then you can create codes like this, treated as 21 bit values:
2, 4, 90: 1011010 0000100 0000010
6, 32: 0000000 0100000 0000110
note that the numbers are pushed in from the right, so that in a 2-input combination it will be nice and neat with the leading zeroes
You could then connect the 2-3 7-bit numbers together as a 21-bit unique value which represents the input state.
you could encode the inputs from the values 0000001 to 1011010 (1 to 90)
and you could treat no input as value 0000000
Then you can create codes like this, treated as 21 bit values:
2, 4, 90: 1011010 0000100 0000010
6, 32: 0000000 0100000 0000110
note that the numbers are pushed in from the right, so that in a 2-input combination it will be nice and neat with the leading zeroes