A Surprising Magic Trick, Its Mathematical Background, and Some Generalizations | Synapse