English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

In war in two countries, let 3 left from one and 1 from enemy.they decide to comit suicide. Sr. 1 is Captain and they die at alternate places. 1 dies first, then 3 ,2 and 4 left at the end. (always 1 dies first) In this case to survive you should be at sr.4. If there are 'n' people where should you stand to survive?

2007-01-16 06:09:03 · 4 answers · asked by cbhatnagar07 1 in Science & Mathematics Mathematics

4 answers

The pattern is as follows:
f(2) = 2
f(3) = 2
f(4) = 4
f(5) = 2
f(6) = 4
f(7) = 6
f(8) = 8
f(9) = 2
f(10) = 4
f(11) = 6
f(12) = 8
f(13) = 10
f(14) = 12
f(15) = 14
f(16) = 16
f(17) = 2
...

Basically, you have 1 even number, then 2 even numbers, then 4 even numbers, then 8 even numbers, etc.

f(n)=2*floor( n + 1 - 2^floor( log(n+1) / log(2) ))

2007-01-16 06:31:16 · answer #1 · answered by Puzzling 7 · 3 0

even as i became a sturdy bit youthful, I did. I save in recommendations status in a save even as i became 12 or so and only freezing in position, being beaten by the passage of time. quite understanding that the particular second... hell, 2d, i became experiencing might want to in no way ensue back. existence is fleeting. once you die... properly, no man or woman is responsive to. i actually am egnostic. I firmly have self assurance that faith is a few thing that human beings use to help them with each and each day existence quite. the considered no guiding rigidity is really scary. We, as people, are fearful of the unknown... issues we are able to not come across. Religions talk of religion... faith is an unquestioning SURENESS of a few thing, with none reality behind it. I actually have a difficulty with this, as you would possibly want to to boot. i think you. it truly is scary, overwhelming, and can want to be type of... properly, devastating. the in reality suggestion i visit grant you with is to push those recommendations down. Do some thing that distracts you and also you delight in and keep in mind that each and each second might want to properly be everyone's very last. tell human beings you adore them, chuckle lots, take disadvantages, drop your inhibitions, don't be fearful of issues, because in the great, this one existence is all you acquire.

2016-11-24 21:28:19 · answer #2 · answered by Anonymous · 0 0

This depends on whether n is odd or even. if n is odd then you should opt (n-1)th place. If n is even opt for nth place

2007-01-16 18:52:04 · answer #3 · answered by Sridhar MA 1 · 0 0

at n

2007-01-16 08:14:33 · answer #4 · answered by Anonymous · 0 0

fedest.com, questions and answers