Handle smaller transition vectors: we only need it as long as the
largest prime factor. Also print the vector.