The party problem ยท Ramsey theory

How many people make this certain?

At a party, find three who all know each other, or three who are all strangers to each other. How many guests guarantee one of these groups?

The answer6

Know each otherStrangers

Five people

Can fail
No trio has three solid or three dashed lines.

Six people

Always enough
Amy, Cara, and Fay are all strangers.