MathDB
Problems
Contests
National and Regional Contests
USA Contests
USA - College-Hosted Events
Princeton University Math Competition
2020 Princeton University Math Competition
2
2
Part of
2020 Princeton University Math Competition
Problems
(1)
2020 PUMaC Team 2
Source:
1/1/2022
Gary is baking cakes, one at a time. However, Gary’s not been having much success, and each failed cake will cause him to slowly lose his patience, until eventually he gives up. Initially, a failed cake has a probability of
0
0
0
of making him give up. Each cake has a
1
/
2
1/2
1/2
of turning out well, with each cake independent of every other cake. If two consecutive cakes turn out well, the probability resets to
0
0
0
immediately after the second cake. On the other hand, if the cake fails, assuming that he doesn’t give up at this cake, his probability of breaking on the next failed cake goes from p to
p
+
0.5
p + 0.5
p
+
0.5
. If the expected number of successful cakes Gary will bake until he gives up is
p
/
q
p/q
p
/
q
, for relatively prime
p
,
q
p, q
p
,
q
, find
p
+
q
p + q
p
+
q
.
combinatorics