Let's ignore leap years and define likely as >50% probability.
Ask HN: A random maths problem we started discussing at work
1–10 of 16 posts
Re: Ask HN: A random maths problem we started discussing at work
#2Re: Ask HN: A random maths problem we started discussing at work
#3But, it's worth noting that if this interests you, Project Euler almost certainly will as well and is worth checking it out if you don't already know about it:
EDIT: So if you're wondering why I got a different brute force result from other users, it's because I had a stupid bug. I was looking at the ratio of meeting the criteria to the ratio of not meeting it, not the ratio of meeting it to total.
Re: Ask HN: A random maths problem we started discussing at work
#423 people is a 50% chance, 57 is a 99% chance, 367 is 100% chance (including leap years).
Re: Ask HN: A random maths problem we started discussing at work
#5Re: Ask HN: A random maths problem we started discussing at work
#6Here's a link to the wikipedia entry on the birthday problem. http://en.wikipedia.org/wiki/Birthday_problem
Re: Ask HN: A random maths problem we started discussing at work
#7This solves the problem for you. http://en.wikipedia.org/wiki/Birthday_problem 23 people is a 50% chance, 57 is a 99% chance, 367 is 100% chance (including leap years).
Re: Ask HN: A random maths problem we started discussing at work
#8http://en.wikipedia.org/wiki/Coupon_collector%27s_problem
The formula in the article (1/2 + n*gamma + n log n) gives 2365 for the expected number, but this is different than "at least 50% chance".
Re: Ask HN: A random maths problem we started discussing at work
#9Re: Ask HN: A random maths problem we started discussing at work
#10This is the coupon collector's problem. http://en.wikipedia.org/wiki/Coupon_collector%27s_problem The formula in the article (1/2 + n*gamma + n log n) gives 2365 for the expected number, but this is different than "at least 50% chance".
Thanks for the link!