Your task is simple, determine the minimum number of people required in the room so that two have same birthday with probability greater than or equal to 'p'. (Assume there are 365 days in every year)

When i look at the sample soluction it says probability(a)=log(1/1-p) can you please explain this.Also would be great if you can refer me any video where the Birthday Paradox is being solved using the same method(making use of logarithm )

Please check this link https://www.geeksforgeeks.org/birthday-paradox/ for the maths.