Its dawn of the planet of apes and somehow an ape got into an armed spaceship. He is trying to launch a missile by clicking random buttons on the board.
There are three buttons on the board: , and . A missile will be launched if the ape presses Red, Green, Blue consecutively in sequence. What is the expected number of missiles that he will launch if in total he pressed buttons while in the spaceship?
Choose the closest integer as your answer.
Example:
Suppose he pressed the following buttons in sequence: , then missiles will be launched.
Assumptions:
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
We define two random variables:
M : Let M be the number of missiles launched in 1000 button pressed.
M i : Let M i be the event that ith press was R , (i+1)th press was G and (i+2)th press was B
We can say that:
M = M 1 + M 2 + . . . + M 9 9 8
Using linearity of expectation :
E [ M ] = E [ M 1 ] + E [ M 2 ] + . . . + E [ M 9 9 8 ]
E [ M ] = 9 9 8 ∗ ( 3 1 ) 3
E [ M ] = 3 6 . 9 6 which is closest to 40