We know that the probability of a person not having the same birthday as you is $\frac{364}{365}$ which is independent from person to person. Meaning the probability of having r people not having the same birthday as me is $(\frac{364}{365})^r$. now the probability that at least one person has the same birthday as me is 1-$(\frac{364}{365})^r$.
What is the smallest r that makes the probability greater than or equal to $\frac{1}{2}$
What i did was substituted random values for r in the calculator and found r to be $252$. I am looking for a reason why it is this number.
You want $$1-\left(\frac{364}{365}\right)^r \geq \frac{1}{2}.$$ Rearrange this inequality to obtain $$\frac{1}{2}\geq \left(\frac{364}{365}\right)^r.$$ Take $\log$ of both sides: $$-\log(2) \geq r\log\left(\frac{364}{365}\right),$$ so $$r \geq -\frac{\log(2)}{\log\left(\frac{364}{365}\right)},$$ which by wolfram alpha equals 252.7.