It is my birthday today
Last year I had 5 candles
4 were lit the last was not
But today, I'll light them all
How old am I turning today?
HINT: I am not turning 5 today and...
Next year I'll have 6 candles, but I'll only light the first
It is my birthday today
Last year I had 5 candles
4 were lit the last was not
But today, I'll light them all
How old am I turning today?
HINT: I am not turning 5 today and...
Next year I'll have 6 candles, but I'll only light the first
You're turning
11111 (Or 31)! This is because you light your candles in binary: last year you turned 30 (11110) so you only lit the first four candles.
Today you are turning
31
Since
you are lighting your candles in binary, $11110 = 30; 11111 = 31; 100000 = 32$
I've got a different solution, that is very close to the current one, but a little bit different. (and fits of course)
He is turning
30. Every candle that is lit stands for 6 years. Every candle that is not lit stands for 5 years. (5 candles lit is 5x6=30) And next year he becomes 31 (1 candle lit, 5 not. 1x6+5x5=31)
You're turning
31
Since the analogy is in
binary and the candles represent face values of the numbers,
you light the first 4
Next year you'll turn
32
and only light the first candle and not the other 5.