8

I have a series of lists in the form below:
list={ {1,1} , {2,2}, {3,{3,1},{3,2},{31,{31,1},{32,2}}} }
Its a nested list which the dimension is changing case to case. I want to manipulate the list to have an output like this:
LIST={{1,1},{2,2},{3,3,1},{3,3,2},{3,31,31,1},{3,31,32,2}}
I am t...