A detective contemplated an equation while invented a new invention to a friend.