IBM Research

PUZZLE   IBM-295

The sock drawer

IBM Research · Ponder This · 2022-11

IBM Ponder This #295 · November 2022

A sock drawer has b socks of exactly two types: a comfortable socks, and ba non-comfortable socks. When choosing socks, one picks two socks at random (uniformly) from the drawer.

If a=15 and b=21, the probability of choosing two comfortable socks is exactly 12. Assuming the sock drawer is magical and can contain a=568345 and b=803761, we also get the probability of 12.

Your goal: find a,b such that the probability for two comfortable socks is exactly 1974170, and such that this is the minimal solution with b having at least 100 digits (minimal with respect to the size of b).

A bonus "*" will be given for finding the minimal D such that there are exactly 16 pairs a,b giving the probability 1D with b having less than 100 digits.

Solution

Best opened after a real attempt

To be added.