Expression simplification step doubt

How E(x) became equal to n(1 + 1/2 + 1/3 + …) from (1 + n/n-1 + n/n-2 + …) ?

@ankurguria
hello ankur,
take n common from from second expression u will get first.