Dr. Vincente Ferrer, Mathematiker