View on GitHub

mathemagiccardtrick

A fun and simple number revealing magic trick using math

mathemagiccardtrick

A fun and simple number revealing magic trick using math. Use the page generate-cards.html to generate your cards to print. Read how-it-is-done-and-tips.html for instructions on how to perform the magic trick.

Here is the link to the blog post about this on rajiv.com.


Source Code

The source code is at github.com/rajivpant/mathemagiccardtrick


Credits

Thanks to Vijit Sharma and family for introducing Rajiv and Fitz to this math magic trick. Rajiv and Fitz coauthored the JavaScript here that generates the cards. Fitz figured out the generalized algorithmic pattern of numbers to be generated that works for each card and for any number of cards.