Researchers have tried to link problems with the brain either through trauma or malformation to extraordinary mental abilities - one of the theories being that damage to one area prompts compensation in another.
BBC: How does a human calculator do it?