Mathematics · Interactive tool
Five Binary Membership Cards
Recover a number from membership in five binary-position cards.
Your inputs
Result
Calculated output
Enter inputs to calculate.
n=b0+2b1+4b2+8b3+16b4. bi is 1 if the number belongs to card i+1 and 0 otherwise. All-zero membership gives 0; numbers 1–31 have at least one selected card.