Line three:
(k+2)((k+1)! - 1) / (k+2)(k+1)! + (k+1) / (k+2)! = ((k+2)! - 1) / (k+2)!
The only part that changed, from this to line 4, was the first fraction: (k+2)((k+1)! - 1) / (k+2)(k+1)!
because I multiplied it by (k+2)/(k+2), I just simplified it.
So the numerator is now:
(k+2)((k+1)! - 1) = (k+2)(k+1)! - 1(k+2) = (k+2)! - k - 2
The denominator now is:
(k+2)(k+1)! = (k+2)!
The main thing here was knowing that, in general, (n+1)*n! = (n+1)!
so, for example, 3*2! = 3*2*1 = 3!
and in our case, (k+2)(k+1)! = (k+2)!
Hope that helps,
cheers