A brilliant, misanthropic math genius is inexplicably drawn into an unusual friendship with a laboratory dog.