MatheMagic Card Trick


MatheMagic Card Trick is 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.

Web Site

Source Code


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.

Thanks to Vijit Sharma and family for introducing Rajiv and Fitz to this math magic trick

By Rajiv Pant

Rajiv Pant राजीव पंत 潘睿哲