The Math of Socks in the Dark