I have a long list and one element in that list is:
U[1, 3] U[1, 4] U[1, 5] U[2, 2] U[3, 1]
All entries of the list have the same structure of products of U[i,j]'s. In the current instance this is a product of 5 terms but it could be a product of n terms.
Is there a way to extract from the "monomial" U[1, 3]U[1, 4]U[1, 5]U[2, 2]U[3, 1] the first entries (1,1,1,2,3) and the second entries (3,4,5,2,1) of each factor of the monomial?