if a clock chimes after the first minute?
Saturday, December 26th, 2009 at
2:02 pm
if a clock chimes after the first minute and again after 2 more minutes have passed and again after another 4 minutes have passed and again after another 8 minutes have passed then again after another 16 minutes have passed and so on, how many times will the clock have chimed in 30 days. need help with getting to the answer
can you break it in a simply way?
Tagged with: clock • google • script type • text javascript
Like this post? Subscribe to my RSS feed and get loads more!
I previously said the answer was around 15.
The answer is 16.
1=2^0, 2=2^1, 4=2^2, 8=2^3, 32768=2^15.
the next number is bigger than the number of minutes in 30 days.
You add one to 15 for 1=2^0.
First you look at how many minutes are in 30 days:
24 x 60 x 30 = 43,200
Next, you figure out what the maximum progression that falls under that:
1,2,4,8,16,32,64… etc.
Once you find the number that exceeds the total minute value you for the month, you then count the number of values that were before it, giving you your answer.