← All 70 questions
Question 63·Sidney Sussex College·2025·The proof is a one-line parity count, but the interview weight sits on modelling the party cleanly, checking the claim numerically, and saying what survives generalisation.
Graph theory and the handshake lemma: model the party as a simple graph and force the number of odd-degree vertices to be even by double-counting degrees.
About four minutes on the board: model, worked six-person example, parity proof, brute-force check, corollaries.
Live video, shared whiteboard. Everything under BOARD is written with the pen; everything under SAY is spoken over it, at the same time. Never write a line in silence, and never say a line you have not put on the board.
At a party, some people shake hands with each other. Prove that the number of people who have shaken hands an odd number of times must be even.
Answer: The odd set O={v:deg⁡(v) odd} has even size, because |O|≡∑vdeg⁡(v)=2|E|≡0(mod2).

The whiteboard, beat by beat

1 · Orient · beat 1 of 7

Name the people as vertices before counting anything

G=(V,E): person=vertex, shake=edge
deg⁡(v)=number of hands person v shook,|V|=n
simple graph assumed
What you say, out loud

I will turn the party into a graph: one vertex per person, one edge for each handshake that actually happened.

Two modelling assumptions go on the board first: nobody shakes their own hand, and a pair either has shaken or has not. If the interviewer wants repeated shakes, I will say later that the same proof still stands.

The quantity to control is the number of vertices of odd degree, so let me name that set before touching it.

Why this beat exists: Naming the model and its two assumptions unprompted is what the examiner is listening for; the proof itself is short.
2 · Set up · beat 2 of 7

Count the handshakes twice: over edges, and over hands

S=∑v∈Vdeg⁡(v)versus|E|
S=2|E|(each edge counted twice)
O={v∈V:deg⁡(v) is odd},goal: |O|≡0(mod2)
What you say, out loud

There are two ledgers of the same event: the edge list counts each handshake once, the degree sum counts it twice, once in each participant's total.

So the sum of all degrees is exactly two times the number of handshakes. That is an even number, whatever the party looked like.

Everything left to do is to push that single parity fact through to the people whose personal totals are odd.

Why this beat exists: The double-count S = 2|E| is the whole engine; writing the goal as a congruence fixes the target shape of the proof.
3 · Draw · beat 3 of 7

A concrete six-person party with its nine handshakes

E={AB,AC,AD,AE,BC,BD,CF,DE,EF},|E|=9
(deg⁡A,deg⁡B,deg⁡C,deg⁡D,deg⁡E,deg⁡F)=(4,3,3,3,3,2)
S=4+3+3+3+3+2=18=2⋅9,O={B,C,D,E},|O|=4
party of 6, nine handshakesABCDEFdegreesA: 4 evenB: 3 oddC: 3 oddD: 3 oddE: 3 oddF: 2 evenodd: B,C,D,Esum = 18 = 2*9
The worked party: nine handshakes give degrees 4,3,3,3,3,2, so the degree sum is 18 = 2 times 9 and the odd set {B,C,D,E} has size 4 - the claim is true here and visibly not vacuous.
What you say, out loud

Before proving anything, one party drawn out in full: six people on a hexagon, nine handshake edges between them.

Reading off each vertex gives degrees 4, 3, 3, 3, 3, 2, and they add to 18, exactly twice the nine edges.

Now let me count the odd ones. B, C, D and E have odd totals, so four people, and four is even, as promised. The amber vertices in the picture are exactly that set.

Why this beat exists: The example is deliberately one where |O| is nonzero, so the claim is visibly not vacuous.
4 · Compute · beat 4 of 7

Split the sum by parity and pin the odd block

S=∑v∈Odeg⁡(v)⏟Todd+∑v∉Odeg⁡(v)⏟Teven
2|Teven term by term,2|S=2|E|⇒2|Todd
Todd≡|O|(mod2)⇒|O|≡0(mod2)
What you say, out loud

Split the degree sum into the people in O and the people outside it. The even block is a sum of even numbers, so it is even term by term.

The whole sum is 2 times the number of edges, so the odd block must also be even - the two blocks have the same parity.

But a sum of odd numbers is even exactly when it has an even number of terms. And the odd block has one odd term per member of O. So the size of O is even.

Why this beat exists: The step T_odd is congruent to |O| mod 2 is where the argument lives; saying 'a sum of k odd terms is even iff k is even' is the justification.
5 · Check numerically · beat 5 of 7

Brute force: 33867 small graphs, zero counterexamples

1≤n≤6:33867 graphs,|O| odd in 0
n=4: |O|∈{0,2,4} with counts 8,48,8n=5: 64,640,320
K3: deg⁡=(2,2,2), |O|=0, |E|=3
What you say, out loud

I ran the claim past every small party: all labelled simple graphs on up to six vertices, 33867 of them, and not one has an odd number of odd-degree vertices.

The distribution is worth knowing too. On four vertices, 8 graphs have nobody odd, 48 have exactly two odd people, and 8 have all four odd. So two is the commonest case by a wide margin, not zero.

And the triangle keeps me honest about what the theorem does not say: it has three handshakes, an odd number, yet nobody has odd degree. The even object is the count of odd people, never the count of handshakes.

Why this beat exists: Reporting the actual distribution (8,48,8) rather than 'it checks out' is the difference between a numeric check and a slogan.
6 · Justify · beat 6 of 7

Why it can never break: one edge, two counters

add one edge uv:|O|↦|O|+2, |O|, or |O|−2
|O|≡∑v∈Vdeg⁡(v) ≡ 2|E|≡0(mod2)■
both eveneven and oddboth odduvadd edge uvuv+2 odduvadd edge uvuvno changeuvadd edge uvuv-2 odd|O| changes by -2, 0 or +2parity of |O| never changesblue: even degree, amber: odd degree
Adding one handshake moves |O| by -2, 0 or +2 according to the parities it meets, so the parity of |O| is invariant; it starts at 0 in the empty room, hence |O| stays even forever.
What you say, out loud

Here is the same proof as a motion picture, which is the version I would want on the whiteboard. Build the party one handshake at a time.

A new edge touches exactly two people. If both counters were even, they flip to odd and O grows by two. If one was even and one odd, it just swaps, and O does not move. If both were odd, they flip to even and O shrinks by two.

Start with an empty room, where zero people are odd. Every change to O is an even step, so its size stays even the whole way. And it is still even at the end of the party.

Why this beat exists: The edge-addition invariant is the independent second route required by the rubric: it proves the same congruence without naming the total sum.
7 · Conclude and generalise · beat 7 of 7

The lemma, its sharp edge, and where the model stops

 |O| even for every finite graph 
all n people odd⟺n even:0 graphs (n=3,5),1,8,1024 (n=2,4,6)
shake/loop add 2
parity survives: 0 breaks in 20000 trials
What you say, out loud

So the party statement is exactly the handshaking lemma: the number of odd-degree vertices is always even, and the proof is the single congruence chain on the board.

The generalisation has a sharp edge. A party where everyone has shaken an odd number of hands needs an even guest list. And enumeration agrees, it finds zero such graphs on three vertices and zero on five.

And the model's boundary: letting pairs shake repeatedly, or allowing a loop, changes nothing, because each such event still adds two to the total of all counters.

Why this beat exists: Closing by naming the lemma, one sharp case (odd n forbids all-odd parties) and one robustness case (loops and repeats) covers the three directions an examiner can push.

Where the interviewer pushes next

“Must two people at the party have shaken hands the same number of times?”
What you say, out loud

Yes, and it is the same parity-free squeeze: each degree lies between 0 and n-1, but a person of degree 0 and a person of degree n-1 cannot coexist in one party.

So n-1 values have to serve n people, and the pigeonhole principle closes it. My six person example shows the mechanism already. Four people share degree 3.

Enumeration of every graph on two through six vertices finds none with all degrees distinct.

deg⁡(v)∈{0,1,…,n−1},0 and n−1 cannot both occur
n−1 values, n people ⇒ a repeat
enumeration: 0 such graphs, 2≤n≤6
“Can exactly one person have shaken hands an odd number of times?”
What you say, out loud

Never - that is the theorem speaking, and the smallest nonzero case is two: a single handshake between a pair, degrees 1 and 1.

On three people the split is 2 graphs with nobody odd and 6 graphs with exactly two odd; the count 1 for the odd set simply does not appear.

n=2: one edge gives deg⁡=(1,1),|O|=2
n=3: |O|∈{0,2} with counts 2,6over all 8 graphs
“What changes if a pair shakes twice, or someone shakes their own hand?”
What you say, out loud

Nothing, which is worth checking rather than asserting. A repeated shake adds one to two counters again; a loop adds two to a single counter.

Either way the total of all counters stays even, and each person's parity behaves as before. So the odd set keeps even size. I also ran a randomised check, 20000 parties with loops and repeats, and it found no violation.

repeat shake:+1+1,loop:+2⇒∑vdeg⁡(v)≡0(mod2) still
simulation: 20000 trials,0 violations

Traps on this question

  • Writing ∑vdeg⁡(v)=|E|: every edge must be paid for twice, once at each hand, or the whole parity chain collapses.
  • Assuming the party graph is connected, or that everyone shook at least one hand - the proof uses neither, and on four vertices 8 of the 64 graphs have |O|=0 including the empty party.
  • Concluding that the number of handshakes is even: the worked example has |E|=9 and the triangle has |E|=3 with |O|=0; only the count of odd people is forced even.
  • Claiming all n people can have distinct handshake counts 0,1,…,n−1: degree 0 and degree n−1 cannot coexist, and enumeration finds 0 such graphs for 2≤n≤6.
  • Saying a typical party has nobody odd or that parities split about half: at n=4 the counts for |O|=0,2,4 are 8,48,8, so the two-odd case is six times as common as zero.

What gets written on the assessor’s form

  • The candidate modelled the party as a simple graph and stated the no-loops, at-most-one-shake-per-pair assumptions before proving anything.
  • The candidate double-counted ∑vdeg⁡(v)=2|E| rather than case-splitting on handshake patterns, and used it as the engine of the proof.
  • The candidate tested the claim on a worked six-person example, read |O|=4 off the drawn degrees, and noted the claim is not vacuous.
  • The candidate reduced the goal to the congruence chain |O|≡∑deg⁡(v)≡2|E|≡0(mod2) and justified each link out loud.
  • When pushed to generalise, the candidate separated what survives (loops, repeated shakes, disconnected parties) from what fails (all degrees distinct, all people odd for odd n), citing small-case counts.