exercițiul 1 va rog frumos , oref 15 puncte , urgentttt

1) S = 2^2 + 3^2 + 4^2 = 4 + 9 + 16 = 29
b) S = 2^3 + 3^3 + 4^3 = 8 + 27 + 64 = 99