Enter your age, and find its value in binary.
A lit candle indicates a 1, and unlit one indicates a 0.
Oldest person is 122, don't put anything higher as it is not possible.
A lit candle indicates a 1, and unlit one indicates a 0.
Oldest person is 122, don't put anything higher as it is not possible.
For example, if the person were 26 years old, the binary representation of their age is 11010.
We can see this by calculating what each binary digit represents within the overall number:
We can see this by calculating what each binary digit represents within the overall number:
- = 110102
- = (1 x 24) + (1 x 23)+ (0 x 22) + (1 x 21) + (0 x 20)
- = (1 x 16) + (1 x 8) + (0 x 4) + (1 x 2) + (0 x 1)
- = 16 + 8 + 0 + 2 + 0
- = 2610