MathCastle
Counting & ProbabilityHardCircles & Lines

Circles & Lines · Hard problem

Five people line up for a photo, but Ann and Ben refuse to stand next to each other. How many arrangements are there?