At a movie theater, the manager announces that they will give a free ticket to the first person in line whose birthday is the same as someone who has already bought a ticket. You have the option of getting in line at any time. Assuming that you don't know anyone else's birthday, that birthdays are distributed randomly throughout the year, etc., what position in line gives you the greatest chance of being the first duplicate birthday?
from http://www.ocf.berkeley.edu/~wwu/riddles/hard.shtml
(In reply to
Function by Tristan)
Your formula must be the same as the one I got because they give the same numbers:
[(n1)*365!]/[(365^n)*(366n)!]
In general for an r day year
[(n1)*r!]/[(r^n)*(r+1n)!]
The best position for an r day year is to round up the positive root of the polynomial equation x(x1)=r
If this root is a whole number, n, then n and n+1 are tied for the best.
Jer

Posted by Jer
on 20040331 12:16:10 