Problem. With people and equally likely birthdays, what is the probability that two share a birthday? 23 people already give more than .

double birthdayCollision(int k, int d) { double p = 1; for (int i = 0; i < k; i++) p *= (double)(d - i) / d; return 1 - p; }
int birthdayHalf(int d) { int k = 0; while (birthdayCollision(k, d) < 0.5) k++; return k; }
ConsequenceValue
people for 50% (23 for 365)
random 64-bit hashes of stringscollision likely once
hashing mod a prime with itemscollision probability : use two moduli or 64 bits (Hashing)
Pollard’s rhofinds a factor after steps, by the same bound