Nepedia
Back to Discover
Fluent Reader
🔢

Handshaking lemma

math Maturity 11-13 Next article →

Imagine you are at a party where everyone is greeting each other. Some people might shake hands with one person, while others shake hands with three or five people. The handshaking lemma is a clever math rule about these greetings. It says that in any group, the number of people who shake an odd number of hands must be an even number. You can never have just three people who have shaken an odd number of hands. This rule works because every single handshake involves exactly two people.

6n-graf
6n-graf

In math, we use a special language to describe these connections. We call the people or points "vertices." We call the lines or handshakes "edges." The "degree" of a vertex is simply the number of edges touching it. There is a very important formula called the degree sum formula. It says that if you add up the degrees of every vertex, the total is always twice the number of edges. This happens because every edge has two ends, so each edge contributes twice to the total sum.

6n-graf
6n-graf

A famous mathematician named Leonhard Euler discovered this while solving a puzzle. He looked at the Seven Bridges of Königsberg in a city that is now called Kaliningrad. He wanted to know if someone could walk across all seven bridges exactly once. He turned the city into a graph with vertices and edges. Euler found the graph had four vertices with an odd degree. Since four is an even number, the rule was satisfied, but the bridges could not be crossed in a single tour without repeating one.

6n-graf
6n-graf

This simple rule helps solve many other hard problems in math. It is used in a puzzle called Sperner's lemma about coloring small triangles. It also helps explain the mountain climbing problem. In that problem, two people start at different ends of a hill and try to meet. The math shows they can stay at the same height as they move. Even the game of Hex uses this logic. The rule helps prove that a game of Hex can never end in a draw.

Sperner2d
Sperner2d
Mountain climbing problem
Mountain climbing problem

Math rules like this help us see patterns in the world around us. Whether we are looking at bridges, triangles, or board games, the connections matter. The handshaking lemma shows how counting things in two different ways can reveal a truth. It links the way we count individual points to the way we count the lines between them. By understanding these connections, we can solve puzzles that seem impossible at first. It turns a simple greeting into a powerful tool for discovery.

Sperner2d
Sperner2d
430 words

Where will your curiosity go next?

Keep exploring at your chosen reading level.

🖼️ Images & Media (4)
File:6n-graf.svg
6n-graf.svg
File:Sperner2d.svg
Sperner2d.svg
File:Mountain climbing problem.gif
Mountain climbing problem.gif
File:Infinite graph one direction.svg
Infinite graph one direction.svg
More to explore

What is Nepedia?

A free, ad-free encyclopedia for children. Every article is written at five reading levels, so the same page works for a five-year-old and a fifteen-year-old — use the level switcher above to see this one change. No account needed to read.