The unlikely friendship that uncovered an untrained Indian mathematician’s genius