A secret society has 100 members, each assigned a unique hat with a number from 1 to 100. They stand in a circle, and each member can see everyone else's number but not their own. On a signal, each member must simultaneously guess their own number. Before the ceremony, they can agree on a strategy, but once it begins, no communication is allowed.
What strategy allows the maximum number of members to guarantee they guess correctly, regardless of how the numbers are distributed?
Enter the maximum number of members who can guarantee correct guesses
Show solution
The key insight is that the members can use a **parity agreement** based on the sum of all numbers.
**Strategy:**
Before the ceremony, the society agrees:
- Member #1 will be the "sacrifice" and guess such that the total sum of all guesses equals 1+2+⋯+100=2100⋅101=5050 modulo some agreed value.
- Each other member guesses based on what they see.
More precisely:
- Each member can see 99 of the 100 numbers.
- The true sum of all numbers must be 5050.
- Member i (for i≥2) computes: "I see numbers with sum Si. Therefore, the missing number (mine) must be 5050−Si."
- This works perfectly for members 2 through 100.
But what about Member #1? They also see 99 numbers with sum S1, and compute 5050−S1. However, there's a problem: Member #1 doesn't know if their computation is correct until they know what everyone else is guessing.
The resolution: **Member #1 is the designated sacrifice.** They can use their guess to "encode" information, but they cannot guarantee their own correctness. The other 99 members each see all numbers except their own, and since the sum is fixed, each can deduce their own number with certainty.
**Why exactly 99?**
- If all 100 tried to guarantee correctness, we'd need each person to independently determine their number from what they see. But person i sees everyone except themselves.
- The constraint is: n1+n2+⋯+n100=5050.
- This is one linear equation in 100 unknowns from any single person's perspective.
- If person i knows 99 of the values, they can solve for the 100th.
- But we cannot have all 100 people simultaneously solve for their own number using the same constraint, because there's a circularity: each person's deduction assumes the others are correct.
The answer is 99 members.