TFA explains the trick somewhat oddly, to make the math angle more obvious. Here's a (random) video of someone doing it a more usual presentation of the effect:
https://www.youtube.com/watch?v=Xau8Ng4aQ6Y
Not the world's greatest magic trick or anything, but I don't think it's as transparently obvious to figure out as several commenters are suggesting.