It's new because I saw it for the first time today.
There is a huge basket with a capacity of holding "X" balls in it. Initially, there is 1 ball in the basket. In the first second, 1 ball is dropped in, in 2nd second, 2 balls are dropped, in 3rd second, 4 balls are dropped, in 5th second, 8 balls are dropped and so on. At the end of 1 hour, the basket is totally filled.
Questions:
At what time was the basket half full?
What is "X"?
And you'll have explain your answer when you solve it (IF you can solve it). Not just copy-paste
I won't answer it, to leave the fun for others, but a better version i like:
You have an empty basket, and infinite balls, labelled 1, 2, 3, ....
at 1 min to midnight, you put in balls #1 -> #10, and take out ball #1
at 1/2 mins to midnight, you put in balls #11 -> #20, and take out ball #2
...
at 1/n mins to midnight, you put in balls #10n-9 -> #10n, and take out ball #n
...
The question is, how many balls are in the basket at midnight??
It will be full when 2^(3600-1) balls have dropped in and half full when, of course, 2^(3600-2) have dropped in, that is, one second before. The problem is that neither my calculator or Excel can deal with such a huge number. I leave it to any one of you.
...este projecto dos Deuses que os homens teimam em arruinar...
It will be full when 2^(3600-1) balls have dropped in and half full when, of course, 2^(3600-2) have dropped in, that is, one second before. The problem is that neither my calculator or Excel can deal with such a huge number. I leave it to any one of you.
If you're answering my post, then your answer is incorrect (Read carefully ) And if you're answering sql_lall's post... no, you're not answering his post.
Initially, there is 1 ball in the basket. In the first second, 1 ball is dropped in, in 2nd second, 2 balls are dropped, in 3rd second, 4 balls are dropped, in 5th second, 8 balls are dropped and so on. At the end of 1 hour, the basket is totally filled.
You mean "...in 4th (and not 5th) second, 8 balls are dropped and so on." or what?
Thanks
...este projecto dos Deuses que os homens teimam em arruinar...
the basket is full at 1 second before 1 hour, so at 3599 seconds.
X=2^3600 (this is to big to show here, 1084 numbers! )
initialy there is 1 ball in. every second there will come 2^(n-1) ball, where n is the time in seconds.
So after 3 seconds X = 1 + 2^(1-1) + 2^(2-1) + 2^(3-1), which is equel to 2^3
It's new because I saw it for the first time today.
There is a huge basket with a capacity of holding "X" balls in it. Initially, there is 1 ball in the basket. In the first second, 1 ball is dropped in, in 2nd second, 2 balls are dropped, in 3rd second, 4 balls are dropped, in 5th second, 8 balls are dropped and so on. At the end of 1 hour, the basket is totally filled.
Questions:
At what time was the basket half full?
What is "X"?
And you'll have explain your answer when you solve it (IF you can solve it). Not just copy-paste
it was half full 1 second before the hour (59min 59 secs)
X is twice the half full amount (lol)
Sounds like a maths problem from a school. You should be able to work out a formula for it...
Feeling like a fly on the inside of a closed window (Thunk!)
If I post a lot, it is because I am bored at work! ;D Or stuck...
* Anything I post can be only my opinion. Advice etc is up to you to persue...
The basket is never half full.
Once you've dropped the first ball in the basket, you are always adding an even number of balls.
So the basket always contains an odd number of balls {2X + 1 is always odd}.
So, for it ever to be half full, you would have to add a half a ball at some point in time, {since half an Odd number 2X + 1 is X + .5, where X is an integral number}
It will be full when 2^(3600-1) balls have dropped in and half full when, of course, 2^(3600-2) have dropped in, that is, one second before. The problem is that neither my calculator or Excel can deal with such a huge number. I leave it to any one of you.
I have been trying to respond Mendhak question so far and I have noticed that there are some of us that take the answers mistakenly as corresponding to Sql lall post. Let us put some order on this and accept the rule that each post should only address one single subject. I suggest that Sql lall starts a new thread with his problem and leave this only for those of us who have been dedicating their time and effort to find the right answer to the problem presented by Mendhak, who was the one to start this thread. Thank you all.
...este projecto dos Deuses que os homens teimam em arruinar...
I'll take a stab at this. I think that since the question said 1,2,3,5 seconds and NOT 4, then could it be that balls are only added to the basket if the number of seconds is a prime number?
There are 504 prime numbers below 3600, (including 1), therefore since the number of balls added each time doubles the amount, the additon that is made before the last one must be when the basket is half full.
I think that since the question said 1,2,3,5 seconds and NOT 4, then could it be that balls are only added to the basket if the number of seconds is a prime number? There are 504 prime numbers below 3600, (including 1), therefore since the number of balls added each time doubles the amount, the additon that is made before the last one must be when the basket is half full. This happens at 3583 seconds, or 59min 43sec and X = 5.2374E+151
I think Andy P gave a correct answer if Mendhak meant prime numbers indeed. If so, it was not clear at all to me – reason why I posted on the 1st of the current month the question "You mean "...in 4th (and not 5th) second, 8 balls are dropped and so on." or what?", but unfortunately this was not answered and my efforts were diverted. It shouldn´t be so.
...este projecto dos Deuses que os homens teimam em arruinar...
I'll take a stab at this. I think that since the question said 1,2,3,5 seconds and NOT 4, then could it be that balls are only added to the basket if the number of seconds is a prime number?
Since 1 is not truly a prime number, this could be some other pattern.
If the sequence 1 2 3 5 8 13 21 34 etc is correct, then it follows the Fibonacci sequence, and the total number balls will be 131072, and the basket will be half full after 1597 seconds, which is 26min 37sec
Yes, you should have read the post carefully. And I think that the question was formulated well. AndyP has the right answer, because we're working with the Fibonacci sequence here.