Here is the problem:
Suppose $n$ people are at a party, and some number of them shake hands. At the end of the party, each guest $G_i$, $1 \leq i \leq n$ shares that they shook hands $x_i$ times. Assume there were a total of $h \geq 0$ handshakes at the party. Use induction on $h$ to prove that:
$x_i + \cdots + x_n = 2h$
I am a little confused about the best way to solve this problem. Performing induction on $h$, means that I will assign my base case for $h=1$. The base case then suggests:
$x_i + \cdots + x_n = 2h$
$x_i + \cdots + x_n = 2$
I am I correct to assume that this means that for my base case for $1$ handshake, that there are 2 ($x_1$ + $x_2$) people who shook hands?
Based on this assumption, my next step would be to assume $h=k, \ \forall \ k \in \mathbb{Z} $. Performing induction on $h$, I would then let $h=(k+1)$ and I want to show that the left side of the equation is equivalent to $2(k+1)$:
$x_i + \cdots + x_n + 2 = 2(k+1)$
^This is the step I'm not really certain of. Since I know that when I add one additional hand shake, that means I am adding $2$ people to the situation... so, would adding $2$ to the left side be a fair way to show this induction? If I do this, then I easily come up with:
$2k + 2 = 2(k+1)$
$ 2k + 2 = 2k + 2$
Which is a true statement, so then I would have (hopefully...) proved this by induction.
What do you guys think? I have traditionally only performed induction on more straight forward math-y problems, so I'm not really sure if I am headed down the right rabbit hole on this one. I am currently in an Introduction to Proofs course at my University. This is a homework problem- I am obviously not looking for someone to do my homework for me (since that wouldn't bode well for my next exam...) but I just want to seek out some advice for my approach to this problem.
Thanks for looking!
This is the right idea. Your base case is correct, and your argument is the right one, modulo some technical points: