Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Pigeonhole principle
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
=== Hand shaking === If {{math|''n''}} people can shake hands with one another (where {{math|''n'' > 1}}), the pigeonhole principle shows that there is always a pair of people who will shake hands with the same number of people. In this application of the principle, the "hole" to which a person is assigned is the number of hands that person shakes. Since each person shakes hands with some number of people from 0 to {{math|''n'' − 1}}, there are {{math|''n''}} possible holes. On the other hand, either the "0" hole, the {{math|"''n'' − 1"}} hole, or both must be empty, for it is impossible (if {{math|''n'' > 1}}) for some person to shake hands with everybody else while some person shakes hands with nobody. This leaves {{math|''n''}} people to be placed into at most {{math|''n'' − 1}} non-empty holes, so the principle applies. This hand-shaking example is equivalent to the statement that in any [[Graph (discrete mathematics)|graph]] with more than one [[Vertex (graph theory)|vertex]], there is at least one pair of vertices that share the same [[Degree (graph theory)|degree]].<ref>{{Cite web|last=Pandey|first=Avinash|title=D3 Graph Theory - Interactive Graph Theory Tutorials|url=https://d3gt.com/unit.html?pigeonhole|access-date=2021-01-12|website=d3gt.com|language=en}}</ref> This can be seen by associating each person with a vertex and each [[Edge (graph)|edge]] with a handshake.{{Citation needed|date=February 2025}}
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)