As far as I can tell, the second method is simply finding how many ways to have two people have the same birthday. It doesn't seem to relate to probability in the way that you think.

2 People

AB

3 People

AB

BC

AC

4 People

AB BC

AC BD

AD CD

And so on. I'm no expert on probability however, so my explanation may be flawed.