Mathematics and psychology