Hello,

1) The length of an atom is 1.

2)a) If the length of w is n, the length of (w) is n+2.

2)b) If the length of w_1 is n_1 and the length of w_2 is n_2, the length of w_1^2w_2 is n_1+n_2+1.

2)c)...etc.

For the second problem, use the results of the first one.

Bye.