factor mathematical definition