When n=k k(k-1)/2 as true.
We prove n=k+1
I.e we prove.
(k+1)(k)/2
When increasing the amount of people in the room from n=k to n=k+1, k hands must be shaken.
So we prove:
k(k-1)/2 + k = (k+1)(k)/2
LHS
k(k-1) + 2k / 2
= k^2 - k + 2k / 2
= k^2 + k /2
= k(k+1)/2
= RHS, as required.