Too many valentines

Jack is an immortal handsome young man who lives in a galaxy far far away. This galaxy, however celebrates valentine's day as well.

Jack, being the heartthrob he is, gets a new valentine every year but decides to keep the ones he had his previous years as well. However, Jack is a bit of a geek and doesn't want just anybody to be his valentine. So he devises a test to make sure that he would only celebrate valentine's day that year if each and every one of his dates can solve a problem posed by him.

Jack numbers each of his valentine's from 1 1 to n n [during year n] and also takes n n pieces of paper and writes down these numbers. He then takes n n envelopes and randomly puts each paper into an envelope and numbers the envelopes randomly as well. He would then give his valentine's each a chance to go find the envelope with their number in it. However, each of them are only allowed to open n 2 \frac{n}{2} envelopes and have to place the numbers back in the same envelope after they're done. They must then close the envelope. They are not allowed to communicate until everyone's turn is over.

Jack will only celebrate valentine's day with all of his n n dates if every single one of them can find their number. If atleast one of his valentine's is unable to find their envelope, he will cancel all his dates.

Given that all of Jack's valentine's are smart and use the best possible approach, what is the probability that Jack will not cancel all his dates towards the end of his immortal lifetime? (as n n approaches \infty )


The answer is 0.306852.

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.

1 solution

Vishnu Bhagyanath
Feb 14, 2016

The optimum strategy would be for valentine i i to start with envelope i i which contains the number r k r_{k} (May or may not be equal to i i ) and go to envelope r k r_{k} and continue this cycle till she either opens n 2 \frac{n}{2} envelopes or finds the number. Since each envelope contains only one number inside, it will eventually form a chain of length between 1 1 and n n which loops back to the envelope you started with.

The probability of the chain length being a a is a 1 a × a 2 a 1 × . . . × 2 3 × 1 2 × 1 = 1 a \frac{a-1}{a} \times \frac{a-2}{a-1} \times . . . \times \frac{2}{3} \times \frac {1}{2} \times 1= \frac{1}{a} Since each person is only allowed to open n 2 \frac{n}{2} envelopes, we simply need to evaluate the probability of a chain length greater than n 2 \frac{n}{2} occuring and subtract it from 1 1

P = 1 lim n x = n 2 + 1 n 1 x P = 1 - \lim_{n \Rightarrow \infty} \sum_{x=\frac{n}{2} +1}^{n} \frac{1}{x} P = 1 l n ( 2 ) P = 1-ln(2)

I've seen this type of problem before. What is it called?

Alexander Koran - 5 years, 4 months ago

Log in to reply

A slightly generalized version of the 100 Prisoners Problem

Vishnu Bhagyanath - 5 years, 4 months ago

Log in to reply

Thank you!

Alexander Koran - 5 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...