R: Birthday Problem

An interesting and classic probability question is the birthday problem.

The birthday problem asks how many individuals are required to be in one location so there is a probability of 50% that at least two individuals in the group have the same birthday.

To solve:

If there are just 23 people in one location there is a 50.7% probability there will be at least one pair with the same birthday.