On computing the factors of generalized Vandermonde determinants