# There are two students born exactly in one day of year. How to prove? [duplicate]

I remember once in our Statistics class, our professor mentioned an interesting problem, that is:

In our class, consisting of 30 students, I bet that there are two students born on an exact day of year.

It was quite clear to all of us that he will lose the bet, but then he asked all the students to write out their birth date on the board and surprisingly three of us were born in the same day of year!

It was very interesting to us. He wrote the proof to his statement, showing that If there are 40 students in one classroom, the probability that at least two students are born in the same day of year is over 90 percent (as I recall).

A few days ago, I told my friends about this, they all laughed at me saying it is impossible. I tried to give them the proof but I failed. I've forgotten everything!

I guess it is a famous problem in statistics, can anyone provide the proof or any link to any docs providing the proof to this statement?